module Stratosphere.EC2.ClientVpnEndpoint.TagSpecificationProperty (
TagSpecificationProperty(..), mkTagSpecificationProperty
) 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 TagSpecificationProperty
=
TagSpecificationProperty {TagSpecificationProperty -> ()
haddock_workaround_ :: (),
TagSpecificationProperty -> Value Text
resourceType :: (Value Prelude.Text),
TagSpecificationProperty -> [Tag]
tags :: [Tag]}
deriving stock (TagSpecificationProperty -> TagSpecificationProperty -> Bool
(TagSpecificationProperty -> TagSpecificationProperty -> Bool)
-> (TagSpecificationProperty -> TagSpecificationProperty -> Bool)
-> Eq TagSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagSpecificationProperty -> TagSpecificationProperty -> Bool
== :: TagSpecificationProperty -> TagSpecificationProperty -> Bool
$c/= :: TagSpecificationProperty -> TagSpecificationProperty -> Bool
/= :: TagSpecificationProperty -> TagSpecificationProperty -> Bool
Prelude.Eq, Int -> TagSpecificationProperty -> ShowS
[TagSpecificationProperty] -> ShowS
TagSpecificationProperty -> String
(Int -> TagSpecificationProperty -> ShowS)
-> (TagSpecificationProperty -> String)
-> ([TagSpecificationProperty] -> ShowS)
-> Show TagSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagSpecificationProperty -> ShowS
showsPrec :: Int -> TagSpecificationProperty -> ShowS
$cshow :: TagSpecificationProperty -> String
show :: TagSpecificationProperty -> String
$cshowList :: [TagSpecificationProperty] -> ShowS
showList :: [TagSpecificationProperty] -> ShowS
Prelude.Show)
mkTagSpecificationProperty ::
Value Prelude.Text -> [Tag] -> TagSpecificationProperty
mkTagSpecificationProperty :: Value Text -> [Tag] -> TagSpecificationProperty
mkTagSpecificationProperty Value Text
resourceType [Tag]
tags
= TagSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceType :: Value Text
resourceType = Value Text
resourceType,
tags :: [Tag]
tags = [Tag]
tags}
instance ToResourceProperties TagSpecificationProperty where
toResourceProperties :: TagSpecificationProperty -> ResourceProperties
toResourceProperties TagSpecificationProperty {[Tag]
()
Value Text
haddock_workaround_ :: TagSpecificationProperty -> ()
resourceType :: TagSpecificationProperty -> Value Text
tags :: TagSpecificationProperty -> [Tag]
haddock_workaround_ :: ()
resourceType :: Value Text
tags :: [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnEndpoint.TagSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Key
"ResourceType" 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
resourceType,
Key
"Tags" 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..= [Tag]
tags]}
instance JSON.ToJSON TagSpecificationProperty where
toJSON :: TagSpecificationProperty -> Value
toJSON TagSpecificationProperty {[Tag]
()
Value Text
haddock_workaround_ :: TagSpecificationProperty -> ()
resourceType :: TagSpecificationProperty -> Value Text
tags :: TagSpecificationProperty -> [Tag]
haddock_workaround_ :: ()
resourceType :: Value Text
tags :: [Tag]
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"ResourceType" 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
resourceType, Key
"Tags" 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..= [Tag]
tags]
instance Property "ResourceType" TagSpecificationProperty where
type PropertyType "ResourceType" TagSpecificationProperty = Value Prelude.Text
set :: PropertyType "ResourceType" TagSpecificationProperty
-> TagSpecificationProperty -> TagSpecificationProperty
set PropertyType "ResourceType" TagSpecificationProperty
newValue TagSpecificationProperty {[Tag]
()
Value Text
haddock_workaround_ :: TagSpecificationProperty -> ()
resourceType :: TagSpecificationProperty -> Value Text
tags :: TagSpecificationProperty -> [Tag]
haddock_workaround_ :: ()
resourceType :: Value Text
tags :: [Tag]
..}
= TagSpecificationProperty {resourceType :: Value Text
resourceType = PropertyType "ResourceType" TagSpecificationProperty
Value Text
newValue, [Tag]
()
haddock_workaround_ :: ()
tags :: [Tag]
haddock_workaround_ :: ()
tags :: [Tag]
..}
instance Property "Tags" TagSpecificationProperty where
type PropertyType "Tags" TagSpecificationProperty = [Tag]
set :: PropertyType "Tags" TagSpecificationProperty
-> TagSpecificationProperty -> TagSpecificationProperty
set PropertyType "Tags" TagSpecificationProperty
newValue TagSpecificationProperty {[Tag]
()
Value Text
haddock_workaround_ :: TagSpecificationProperty -> ()
resourceType :: TagSpecificationProperty -> Value Text
tags :: TagSpecificationProperty -> [Tag]
haddock_workaround_ :: ()
resourceType :: Value Text
tags :: [Tag]
..}
= TagSpecificationProperty {tags :: [Tag]
tags = [Tag]
PropertyType "Tags" TagSpecificationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
resourceType :: Value Text
haddock_workaround_ :: ()
resourceType :: Value Text
..}