module Stratosphere.Route53.HostedZone (
        module Exports, HostedZone(..), mkHostedZone
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Route53.HostedZone.HostedZoneConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.Route53.HostedZone.HostedZoneTagProperty as Exports
import {-# SOURCE #-} Stratosphere.Route53.HostedZone.QueryLoggingConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.Route53.HostedZone.VPCProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HostedZone
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html>
    HostedZone {HostedZone -> ()
haddock_workaround_ :: (),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-hostedzoneconfig>
                HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneConfig :: (Prelude.Maybe HostedZoneConfigProperty),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-hostedzonetags>
                HostedZone -> Maybe [HostedZoneTagProperty]
hostedZoneTags :: (Prelude.Maybe [HostedZoneTagProperty]),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-name>
                HostedZone -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-queryloggingconfig>
                HostedZone -> Maybe QueryLoggingConfigProperty
queryLoggingConfig :: (Prelude.Maybe QueryLoggingConfigProperty),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-vpcs>
                HostedZone -> Maybe [VPCProperty]
vPCs :: (Prelude.Maybe [VPCProperty])}
  deriving stock (HostedZone -> HostedZone -> Bool
(HostedZone -> HostedZone -> Bool)
-> (HostedZone -> HostedZone -> Bool) -> Eq HostedZone
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HostedZone -> HostedZone -> Bool
== :: HostedZone -> HostedZone -> Bool
$c/= :: HostedZone -> HostedZone -> Bool
/= :: HostedZone -> HostedZone -> Bool
Prelude.Eq, Int -> HostedZone -> ShowS
[HostedZone] -> ShowS
HostedZone -> String
(Int -> HostedZone -> ShowS)
-> (HostedZone -> String)
-> ([HostedZone] -> ShowS)
-> Show HostedZone
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HostedZone -> ShowS
showsPrec :: Int -> HostedZone -> ShowS
$cshow :: HostedZone -> String
show :: HostedZone -> String
$cshowList :: [HostedZone] -> ShowS
showList :: [HostedZone] -> ShowS
Prelude.Show)
mkHostedZone :: HostedZone
mkHostedZone :: HostedZone
mkHostedZone
  = HostedZone
      {haddock_workaround_ :: ()
haddock_workaround_ = (), hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneConfig = Maybe HostedZoneConfigProperty
forall a. Maybe a
Prelude.Nothing,
       hostedZoneTags :: Maybe [HostedZoneTagProperty]
hostedZoneTags = Maybe [HostedZoneTagProperty]
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       queryLoggingConfig :: Maybe QueryLoggingConfigProperty
queryLoggingConfig = Maybe QueryLoggingConfigProperty
forall a. Maybe a
Prelude.Nothing, vPCs :: Maybe [VPCProperty]
vPCs = Maybe [VPCProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HostedZone where
  toResourceProperties :: HostedZone -> ResourceProperties
toResourceProperties HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Route53::HostedZone",
         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 -> HostedZoneConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneConfig" (HostedZoneConfigProperty -> (Key, Value))
-> Maybe HostedZoneConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HostedZoneConfigProperty
hostedZoneConfig,
                            Key -> [HostedZoneTagProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneTags" ([HostedZoneTagProperty] -> (Key, Value))
-> Maybe [HostedZoneTagProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HostedZoneTagProperty]
hostedZoneTags,
                            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
"Name" (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)
name,
                            Key -> QueryLoggingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryLoggingConfig" (QueryLoggingConfigProperty -> (Key, Value))
-> Maybe QueryLoggingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QueryLoggingConfigProperty
queryLoggingConfig,
                            Key -> [VPCProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VPCs" ([VPCProperty] -> (Key, Value))
-> Maybe [VPCProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VPCProperty]
vPCs])}
instance JSON.ToJSON HostedZone where
  toJSON :: HostedZone -> Value
toJSON HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = [(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 -> HostedZoneConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneConfig" (HostedZoneConfigProperty -> (Key, Value))
-> Maybe HostedZoneConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HostedZoneConfigProperty
hostedZoneConfig,
               Key -> [HostedZoneTagProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HostedZoneTags" ([HostedZoneTagProperty] -> (Key, Value))
-> Maybe [HostedZoneTagProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HostedZoneTagProperty]
hostedZoneTags,
               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
"Name" (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)
name,
               Key -> QueryLoggingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueryLoggingConfig" (QueryLoggingConfigProperty -> (Key, Value))
-> Maybe QueryLoggingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QueryLoggingConfigProperty
queryLoggingConfig,
               Key -> [VPCProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VPCs" ([VPCProperty] -> (Key, Value))
-> Maybe [VPCProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VPCProperty]
vPCs]))
instance Property "HostedZoneConfig" HostedZone where
  type PropertyType "HostedZoneConfig" HostedZone = HostedZoneConfigProperty
  set :: PropertyType "HostedZoneConfig" HostedZone
-> HostedZone -> HostedZone
set PropertyType "HostedZoneConfig" HostedZone
newValue HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = HostedZone {hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneConfig = HostedZoneConfigProperty -> Maybe HostedZoneConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HostedZoneConfig" HostedZone
HostedZoneConfigProperty
newValue, Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: ()
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
instance Property "HostedZoneTags" HostedZone where
  type PropertyType "HostedZoneTags" HostedZone = [HostedZoneTagProperty]
  set :: PropertyType "HostedZoneTags" HostedZone
-> HostedZone -> HostedZone
set PropertyType "HostedZoneTags" HostedZone
newValue HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = HostedZone {hostedZoneTags :: Maybe [HostedZoneTagProperty]
hostedZoneTags = [HostedZoneTagProperty] -> Maybe [HostedZoneTagProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [HostedZoneTagProperty]
PropertyType "HostedZoneTags" HostedZone
newValue, Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
instance Property "Name" HostedZone where
  type PropertyType "Name" HostedZone = Value Prelude.Text
  set :: PropertyType "Name" HostedZone -> HostedZone -> HostedZone
set PropertyType "Name" HostedZone
newValue HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = HostedZone {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" HostedZone
Value Text
newValue, Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
instance Property "QueryLoggingConfig" HostedZone where
  type PropertyType "QueryLoggingConfig" HostedZone = QueryLoggingConfigProperty
  set :: PropertyType "QueryLoggingConfig" HostedZone
-> HostedZone -> HostedZone
set PropertyType "QueryLoggingConfig" HostedZone
newValue HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = HostedZone {queryLoggingConfig :: Maybe QueryLoggingConfigProperty
queryLoggingConfig = QueryLoggingConfigProperty -> Maybe QueryLoggingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryLoggingConfig" HostedZone
QueryLoggingConfigProperty
newValue, Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
()
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
vPCs :: Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
vPCs :: Maybe [VPCProperty]
..}
instance Property "VPCs" HostedZone where
  type PropertyType "VPCs" HostedZone = [VPCProperty]
  set :: PropertyType "VPCs" HostedZone -> HostedZone -> HostedZone
set PropertyType "VPCs" HostedZone
newValue HostedZone {Maybe [HostedZoneTagProperty]
Maybe [VPCProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: HostedZone -> ()
hostedZoneConfig :: HostedZone -> Maybe HostedZoneConfigProperty
hostedZoneTags :: HostedZone -> Maybe [HostedZoneTagProperty]
name :: HostedZone -> Maybe (Value Text)
queryLoggingConfig :: HostedZone -> Maybe QueryLoggingConfigProperty
vPCs :: HostedZone -> Maybe [VPCProperty]
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
vPCs :: Maybe [VPCProperty]
..}
    = HostedZone {vPCs :: Maybe [VPCProperty]
vPCs = [VPCProperty] -> Maybe [VPCProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [VPCProperty]
PropertyType "VPCs" HostedZone
newValue, Maybe [HostedZoneTagProperty]
Maybe (Value Text)
Maybe HostedZoneConfigProperty
Maybe QueryLoggingConfigProperty
()
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
haddock_workaround_ :: ()
hostedZoneConfig :: Maybe HostedZoneConfigProperty
hostedZoneTags :: Maybe [HostedZoneTagProperty]
name :: Maybe (Value Text)
queryLoggingConfig :: Maybe QueryLoggingConfigProperty
..}