module Stratosphere.Route53Profiles.ProfileResourceAssociation (
ProfileResourceAssociation(..), mkProfileResourceAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProfileResourceAssociation
=
ProfileResourceAssociation {ProfileResourceAssociation -> ()
haddock_workaround_ :: (),
ProfileResourceAssociation -> Value Text
name :: (Value Prelude.Text),
ProfileResourceAssociation -> Value Text
profileId :: (Value Prelude.Text),
ProfileResourceAssociation -> Value Text
resourceArn :: (Value Prelude.Text),
ProfileResourceAssociation -> Maybe (Value Text)
resourceProperties :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ProfileResourceAssociation -> ProfileResourceAssociation -> Bool
(ProfileResourceAssociation -> ProfileResourceAssociation -> Bool)
-> (ProfileResourceAssociation
-> ProfileResourceAssociation -> Bool)
-> Eq ProfileResourceAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProfileResourceAssociation -> ProfileResourceAssociation -> Bool
== :: ProfileResourceAssociation -> ProfileResourceAssociation -> Bool
$c/= :: ProfileResourceAssociation -> ProfileResourceAssociation -> Bool
/= :: ProfileResourceAssociation -> ProfileResourceAssociation -> Bool
Prelude.Eq, Int -> ProfileResourceAssociation -> ShowS
[ProfileResourceAssociation] -> ShowS
ProfileResourceAssociation -> String
(Int -> ProfileResourceAssociation -> ShowS)
-> (ProfileResourceAssociation -> String)
-> ([ProfileResourceAssociation] -> ShowS)
-> Show ProfileResourceAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProfileResourceAssociation -> ShowS
showsPrec :: Int -> ProfileResourceAssociation -> ShowS
$cshow :: ProfileResourceAssociation -> String
show :: ProfileResourceAssociation -> String
$cshowList :: [ProfileResourceAssociation] -> ShowS
showList :: [ProfileResourceAssociation] -> ShowS
Prelude.Show)
mkProfileResourceAssociation ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> ProfileResourceAssociation
mkProfileResourceAssociation :: Value Text
-> Value Text -> Value Text -> ProfileResourceAssociation
mkProfileResourceAssociation Value Text
name Value Text
profileId Value Text
resourceArn
= ProfileResourceAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, profileId :: Value Text
profileId = Value Text
profileId,
resourceArn :: Value Text
resourceArn = Value Text
resourceArn, resourceProperties :: Maybe (Value Text)
resourceProperties = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProfileResourceAssociation where
toResourceProperties :: ProfileResourceAssociation -> ResourceProperties
toResourceProperties ProfileResourceAssociation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileResourceAssociation -> ()
name :: ProfileResourceAssociation -> Value Text
profileId :: ProfileResourceAssociation -> Value Text
resourceArn :: ProfileResourceAssociation -> Value Text
resourceProperties :: ProfileResourceAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53Profiles::ProfileResourceAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name, Key
"ProfileId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
profileId,
Key
"ResourceArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
resourceArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResourceProperties" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resourceProperties]))}
instance JSON.ToJSON ProfileResourceAssociation where
toJSON :: ProfileResourceAssociation -> Value
toJSON ProfileResourceAssociation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileResourceAssociation -> ()
name :: ProfileResourceAssociation -> Value Text
profileId :: ProfileResourceAssociation -> Value Text
resourceArn :: ProfileResourceAssociation -> Value Text
resourceProperties :: ProfileResourceAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name, Key
"ProfileId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
profileId,
Key
"ResourceArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
resourceArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResourceProperties" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resourceProperties])))
instance Property "Name" ProfileResourceAssociation where
type PropertyType "Name" ProfileResourceAssociation = Value Prelude.Text
set :: PropertyType "Name" ProfileResourceAssociation
-> ProfileResourceAssociation -> ProfileResourceAssociation
set PropertyType "Name" ProfileResourceAssociation
newValue ProfileResourceAssociation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileResourceAssociation -> ()
name :: ProfileResourceAssociation -> Value Text
profileId :: ProfileResourceAssociation -> Value Text
resourceArn :: ProfileResourceAssociation -> Value Text
resourceProperties :: ProfileResourceAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
= ProfileResourceAssociation {name :: Value Text
name = PropertyType "Name" ProfileResourceAssociation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
haddock_workaround_ :: ()
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
instance Property "ProfileId" ProfileResourceAssociation where
type PropertyType "ProfileId" ProfileResourceAssociation = Value Prelude.Text
set :: PropertyType "ProfileId" ProfileResourceAssociation
-> ProfileResourceAssociation -> ProfileResourceAssociation
set PropertyType "ProfileId" ProfileResourceAssociation
newValue ProfileResourceAssociation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileResourceAssociation -> ()
name :: ProfileResourceAssociation -> Value Text
profileId :: ProfileResourceAssociation -> Value Text
resourceArn :: ProfileResourceAssociation -> Value Text
resourceProperties :: ProfileResourceAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
= ProfileResourceAssociation {profileId :: Value Text
profileId = PropertyType "ProfileId" ProfileResourceAssociation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
instance Property "ResourceArn" ProfileResourceAssociation where
type PropertyType "ResourceArn" ProfileResourceAssociation = Value Prelude.Text
set :: PropertyType "ResourceArn" ProfileResourceAssociation
-> ProfileResourceAssociation -> ProfileResourceAssociation
set PropertyType "ResourceArn" ProfileResourceAssociation
newValue ProfileResourceAssociation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileResourceAssociation -> ()
name :: ProfileResourceAssociation -> Value Text
profileId :: ProfileResourceAssociation -> Value Text
resourceArn :: ProfileResourceAssociation -> Value Text
resourceProperties :: ProfileResourceAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
= ProfileResourceAssociation {resourceArn :: Value Text
resourceArn = PropertyType "ResourceArn" ProfileResourceAssociation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceProperties :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceProperties :: Maybe (Value Text)
..}
instance Property "ResourceProperties" ProfileResourceAssociation where
type PropertyType "ResourceProperties" ProfileResourceAssociation = Value Prelude.Text
set :: PropertyType "ResourceProperties" ProfileResourceAssociation
-> ProfileResourceAssociation -> ProfileResourceAssociation
set PropertyType "ResourceProperties" ProfileResourceAssociation
newValue ProfileResourceAssociation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileResourceAssociation -> ()
name :: ProfileResourceAssociation -> Value Text
profileId :: ProfileResourceAssociation -> Value Text
resourceArn :: ProfileResourceAssociation -> Value Text
resourceProperties :: ProfileResourceAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
resourceProperties :: Maybe (Value Text)
..}
= ProfileResourceAssociation
{resourceProperties :: Maybe (Value Text)
resourceProperties = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceProperties" ProfileResourceAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceArn :: Value Text
..}