module Stratosphere.Route53.HostedZone.HostedZoneConfigProperty (
        HostedZoneConfigProperty(..), mkHostedZoneConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HostedZoneConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzoneconfig.html>
    HostedZoneConfigProperty {HostedZoneConfigProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzoneconfig.html#cfn-route53-hostedzone-hostedzoneconfig-comment>
                              HostedZoneConfigProperty -> Maybe (Value Text)
comment :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool
(HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool)
-> (HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool)
-> Eq HostedZoneConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool
== :: HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool
$c/= :: HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool
/= :: HostedZoneConfigProperty -> HostedZoneConfigProperty -> Bool
Prelude.Eq, Int -> HostedZoneConfigProperty -> ShowS
[HostedZoneConfigProperty] -> ShowS
HostedZoneConfigProperty -> String
(Int -> HostedZoneConfigProperty -> ShowS)
-> (HostedZoneConfigProperty -> String)
-> ([HostedZoneConfigProperty] -> ShowS)
-> Show HostedZoneConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HostedZoneConfigProperty -> ShowS
showsPrec :: Int -> HostedZoneConfigProperty -> ShowS
$cshow :: HostedZoneConfigProperty -> String
show :: HostedZoneConfigProperty -> String
$cshowList :: [HostedZoneConfigProperty] -> ShowS
showList :: [HostedZoneConfigProperty] -> ShowS
Prelude.Show)
mkHostedZoneConfigProperty :: HostedZoneConfigProperty
mkHostedZoneConfigProperty :: HostedZoneConfigProperty
mkHostedZoneConfigProperty
  = HostedZoneConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), comment :: Maybe (Value Text)
comment = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HostedZoneConfigProperty where
  toResourceProperties :: HostedZoneConfigProperty -> ResourceProperties
toResourceProperties HostedZoneConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: HostedZoneConfigProperty -> ()
comment :: HostedZoneConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Route53::HostedZone.HostedZoneConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"Comment" (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)
comment])}
instance JSON.ToJSON HostedZoneConfigProperty where
  toJSON :: HostedZoneConfigProperty -> Value
toJSON HostedZoneConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: HostedZoneConfigProperty -> ()
comment :: HostedZoneConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"Comment" (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)
comment]))
instance Property "Comment" HostedZoneConfigProperty where
  type PropertyType "Comment" HostedZoneConfigProperty = Value Prelude.Text
  set :: PropertyType "Comment" HostedZoneConfigProperty
-> HostedZoneConfigProperty -> HostedZoneConfigProperty
set PropertyType "Comment" HostedZoneConfigProperty
newValue HostedZoneConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: HostedZoneConfigProperty -> ()
comment :: HostedZoneConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
..}
    = HostedZoneConfigProperty {comment :: Maybe (Value Text)
comment = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Comment" HostedZoneConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}