module Stratosphere.Route53.HostedZone.HostedZoneTagProperty (
        HostedZoneTagProperty(..), mkHostedZoneTagProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HostedZoneTagProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetag.html>
    HostedZoneTagProperty {HostedZoneTagProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetag.html#cfn-route53-hostedzone-hostedzonetag-key>
                           HostedZoneTagProperty -> Value Text
key :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetag.html#cfn-route53-hostedzone-hostedzonetag-value>
                           HostedZoneTagProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (HostedZoneTagProperty -> HostedZoneTagProperty -> Bool
(HostedZoneTagProperty -> HostedZoneTagProperty -> Bool)
-> (HostedZoneTagProperty -> HostedZoneTagProperty -> Bool)
-> Eq HostedZoneTagProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HostedZoneTagProperty -> HostedZoneTagProperty -> Bool
== :: HostedZoneTagProperty -> HostedZoneTagProperty -> Bool
$c/= :: HostedZoneTagProperty -> HostedZoneTagProperty -> Bool
/= :: HostedZoneTagProperty -> HostedZoneTagProperty -> Bool
Prelude.Eq, Int -> HostedZoneTagProperty -> ShowS
[HostedZoneTagProperty] -> ShowS
HostedZoneTagProperty -> String
(Int -> HostedZoneTagProperty -> ShowS)
-> (HostedZoneTagProperty -> String)
-> ([HostedZoneTagProperty] -> ShowS)
-> Show HostedZoneTagProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HostedZoneTagProperty -> ShowS
showsPrec :: Int -> HostedZoneTagProperty -> ShowS
$cshow :: HostedZoneTagProperty -> String
show :: HostedZoneTagProperty -> String
$cshowList :: [HostedZoneTagProperty] -> ShowS
showList :: [HostedZoneTagProperty] -> ShowS
Prelude.Show)
mkHostedZoneTagProperty ::
  Value Prelude.Text -> Value Prelude.Text -> HostedZoneTagProperty
mkHostedZoneTagProperty :: Value Text -> Value Text -> HostedZoneTagProperty
mkHostedZoneTagProperty Value Text
key Value Text
value
  = HostedZoneTagProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties HostedZoneTagProperty where
  toResourceProperties :: HostedZoneTagProperty -> ResourceProperties
toResourceProperties HostedZoneTagProperty {()
Value Text
haddock_workaround_ :: HostedZoneTagProperty -> ()
key :: HostedZoneTagProperty -> Value Text
value :: HostedZoneTagProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Route53::HostedZone.HostedZoneTag",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Key" 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
key, Key
"Value" 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
value]}
instance JSON.ToJSON HostedZoneTagProperty where
  toJSON :: HostedZoneTagProperty -> Value
toJSON HostedZoneTagProperty {()
Value Text
haddock_workaround_ :: HostedZoneTagProperty -> ()
key :: HostedZoneTagProperty -> Value Text
value :: HostedZoneTagProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Key" 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
key, Key
"Value" 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
value]
instance Property "Key" HostedZoneTagProperty where
  type PropertyType "Key" HostedZoneTagProperty = Value Prelude.Text
  set :: PropertyType "Key" HostedZoneTagProperty
-> HostedZoneTagProperty -> HostedZoneTagProperty
set PropertyType "Key" HostedZoneTagProperty
newValue HostedZoneTagProperty {()
Value Text
haddock_workaround_ :: HostedZoneTagProperty -> ()
key :: HostedZoneTagProperty -> Value Text
value :: HostedZoneTagProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = HostedZoneTagProperty {key :: Value Text
key = PropertyType "Key" HostedZoneTagProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" HostedZoneTagProperty where
  type PropertyType "Value" HostedZoneTagProperty = Value Prelude.Text
  set :: PropertyType "Value" HostedZoneTagProperty
-> HostedZoneTagProperty -> HostedZoneTagProperty
set PropertyType "Value" HostedZoneTagProperty
newValue HostedZoneTagProperty {()
Value Text
haddock_workaround_ :: HostedZoneTagProperty -> ()
key :: HostedZoneTagProperty -> Value Text
value :: HostedZoneTagProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = HostedZoneTagProperty {value :: Value Text
value = PropertyType "Value" HostedZoneTagProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}