module Stratosphere.Route53Profiles.ProfileAssociation (
ProfileAssociation(..), mkProfileAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ProfileAssociation
=
ProfileAssociation {ProfileAssociation -> ()
haddock_workaround_ :: (),
ProfileAssociation -> Maybe (Value Text)
arn :: (Prelude.Maybe (Value Prelude.Text)),
ProfileAssociation -> Value Text
name :: (Value Prelude.Text),
ProfileAssociation -> Value Text
profileId :: (Value Prelude.Text),
ProfileAssociation -> Value Text
resourceId :: (Value Prelude.Text),
ProfileAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (ProfileAssociation -> ProfileAssociation -> Bool
(ProfileAssociation -> ProfileAssociation -> Bool)
-> (ProfileAssociation -> ProfileAssociation -> Bool)
-> Eq ProfileAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProfileAssociation -> ProfileAssociation -> Bool
== :: ProfileAssociation -> ProfileAssociation -> Bool
$c/= :: ProfileAssociation -> ProfileAssociation -> Bool
/= :: ProfileAssociation -> ProfileAssociation -> Bool
Prelude.Eq, Int -> ProfileAssociation -> ShowS
[ProfileAssociation] -> ShowS
ProfileAssociation -> String
(Int -> ProfileAssociation -> ShowS)
-> (ProfileAssociation -> String)
-> ([ProfileAssociation] -> ShowS)
-> Show ProfileAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProfileAssociation -> ShowS
showsPrec :: Int -> ProfileAssociation -> ShowS
$cshow :: ProfileAssociation -> String
show :: ProfileAssociation -> String
$cshowList :: [ProfileAssociation] -> ShowS
showList :: [ProfileAssociation] -> ShowS
Prelude.Show)
mkProfileAssociation ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> ProfileAssociation
mkProfileAssociation :: Value Text -> Value Text -> Value Text -> ProfileAssociation
mkProfileAssociation Value Text
name Value Text
profileId Value Text
resourceId
= ProfileAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, profileId :: Value Text
profileId = Value Text
profileId,
resourceId :: Value Text
resourceId = Value Text
resourceId, arn :: Maybe (Value Text)
arn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProfileAssociation where
toResourceProperties :: ProfileAssociation -> ResourceProperties
toResourceProperties ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53Profiles::ProfileAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"ResourceId" 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
resourceId]
([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
"Arn" (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)
arn,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON ProfileAssociation where
toJSON :: ProfileAssociation -> Value
toJSON ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= [(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
"ResourceId" 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
resourceId]
([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
"Arn" (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)
arn,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Arn" ProfileAssociation where
type PropertyType "Arn" ProfileAssociation = Value Prelude.Text
set :: PropertyType "Arn" ProfileAssociation
-> ProfileAssociation -> ProfileAssociation
set PropertyType "Arn" ProfileAssociation
newValue ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= ProfileAssociation {arn :: Maybe (Value Text)
arn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Arn" ProfileAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Name" ProfileAssociation where
type PropertyType "Name" ProfileAssociation = Value Prelude.Text
set :: PropertyType "Name" ProfileAssociation
-> ProfileAssociation -> ProfileAssociation
set PropertyType "Name" ProfileAssociation
newValue ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= ProfileAssociation {name :: Value Text
name = PropertyType "Name" ProfileAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
instance Property "ProfileId" ProfileAssociation where
type PropertyType "ProfileId" ProfileAssociation = Value Prelude.Text
set :: PropertyType "ProfileId" ProfileAssociation
-> ProfileAssociation -> ProfileAssociation
set PropertyType "ProfileId" ProfileAssociation
newValue ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= ProfileAssociation {profileId :: Value Text
profileId = PropertyType "ProfileId" ProfileAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
instance Property "ResourceId" ProfileAssociation where
type PropertyType "ResourceId" ProfileAssociation = Value Prelude.Text
set :: PropertyType "ResourceId" ProfileAssociation
-> ProfileAssociation -> ProfileAssociation
set PropertyType "ResourceId" ProfileAssociation
newValue ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= ProfileAssociation {resourceId :: Value Text
resourceId = PropertyType "ResourceId" ProfileAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" ProfileAssociation where
type PropertyType "Tags" ProfileAssociation = [Tag]
set :: PropertyType "Tags" ProfileAssociation
-> ProfileAssociation -> ProfileAssociation
set PropertyType "Tags" ProfileAssociation
newValue ProfileAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfileAssociation -> ()
arn :: ProfileAssociation -> Maybe (Value Text)
name :: ProfileAssociation -> Value Text
profileId :: ProfileAssociation -> Value Text
resourceId :: ProfileAssociation -> Value Text
tags :: ProfileAssociation -> Maybe [Tag]
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
tags :: Maybe [Tag]
..}
= ProfileAssociation {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ProfileAssociation
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
name :: Value Text
profileId :: Value Text
resourceId :: Value Text
..}