module Stratosphere.ApiGatewayV2.DomainName (
        module Exports, DomainName(..), mkDomainName
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApiGatewayV2.DomainName.DomainNameConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.ApiGatewayV2.DomainName.MutualTlsAuthenticationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DomainName
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html>
    DomainName {DomainName -> ()
haddock_workaround_ :: (),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html#cfn-apigatewayv2-domainname-domainname>
                DomainName -> Value Text
domainName :: (Value Prelude.Text),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html#cfn-apigatewayv2-domainname-domainnameconfigurations>
                DomainName -> Maybe [DomainNameConfigurationProperty]
domainNameConfigurations :: (Prelude.Maybe [DomainNameConfigurationProperty]),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html#cfn-apigatewayv2-domainname-mutualtlsauthentication>
                DomainName -> Maybe MutualTlsAuthenticationProperty
mutualTlsAuthentication :: (Prelude.Maybe MutualTlsAuthenticationProperty),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html#cfn-apigatewayv2-domainname-routingmode>
                DomainName -> Maybe (Value Text)
routingMode :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html#cfn-apigatewayv2-domainname-tags>
                DomainName -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (DomainName -> DomainName -> Bool
(DomainName -> DomainName -> Bool)
-> (DomainName -> DomainName -> Bool) -> Eq DomainName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DomainName -> DomainName -> Bool
== :: DomainName -> DomainName -> Bool
$c/= :: DomainName -> DomainName -> Bool
/= :: DomainName -> DomainName -> Bool
Prelude.Eq, Int -> DomainName -> ShowS
[DomainName] -> ShowS
DomainName -> String
(Int -> DomainName -> ShowS)
-> (DomainName -> String)
-> ([DomainName] -> ShowS)
-> Show DomainName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DomainName -> ShowS
showsPrec :: Int -> DomainName -> ShowS
$cshow :: DomainName -> String
show :: DomainName -> String
$cshowList :: [DomainName] -> ShowS
showList :: [DomainName] -> ShowS
Prelude.Show)
mkDomainName :: Value Prelude.Text -> DomainName
mkDomainName :: Value Text -> DomainName
mkDomainName Value Text
domainName
  = DomainName
      {haddock_workaround_ :: ()
haddock_workaround_ = (), domainName :: Value Text
domainName = Value Text
domainName,
       domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
domainNameConfigurations = Maybe [DomainNameConfigurationProperty]
forall a. Maybe a
Prelude.Nothing,
       mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
mutualTlsAuthentication = Maybe MutualTlsAuthenticationProperty
forall a. Maybe a
Prelude.Nothing,
       routingMode :: Maybe (Value Text)
routingMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DomainName where
  toResourceProperties :: DomainName -> ResourceProperties
toResourceProperties DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApiGatewayV2::DomainName",
         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
"DomainName" 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
domainName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [DomainNameConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DomainNameConfigurations"
                                 ([DomainNameConfigurationProperty] -> (Key, Value))
-> Maybe [DomainNameConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DomainNameConfigurationProperty]
domainNameConfigurations,
                               Key -> MutualTlsAuthenticationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MutualTlsAuthentication"
                                 (MutualTlsAuthenticationProperty -> (Key, Value))
-> Maybe MutualTlsAuthenticationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MutualTlsAuthenticationProperty
mutualTlsAuthentication,
                               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
"RoutingMode" (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)
routingMode,
                               Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON DomainName where
  toJSON :: DomainName -> Value
toJSON DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = [(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
"DomainName" 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
domainName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [DomainNameConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DomainNameConfigurations"
                    ([DomainNameConfigurationProperty] -> (Key, Value))
-> Maybe [DomainNameConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DomainNameConfigurationProperty]
domainNameConfigurations,
                  Key -> MutualTlsAuthenticationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MutualTlsAuthentication"
                    (MutualTlsAuthenticationProperty -> (Key, Value))
-> Maybe MutualTlsAuthenticationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MutualTlsAuthenticationProperty
mutualTlsAuthentication,
                  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
"RoutingMode" (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)
routingMode,
                  Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "DomainName" DomainName where
  type PropertyType "DomainName" DomainName = Value Prelude.Text
  set :: PropertyType "DomainName" DomainName -> DomainName -> DomainName
set PropertyType "DomainName" DomainName
newValue DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = DomainName {domainName :: Value Text
domainName = PropertyType "DomainName" DomainName
Value Text
newValue, Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
haddock_workaround_ :: ()
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "DomainNameConfigurations" DomainName where
  type PropertyType "DomainNameConfigurations" DomainName = [DomainNameConfigurationProperty]
  set :: PropertyType "DomainNameConfigurations" DomainName
-> DomainName -> DomainName
set PropertyType "DomainNameConfigurations" DomainName
newValue DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = DomainName {domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
domainNameConfigurations = [DomainNameConfigurationProperty]
-> Maybe [DomainNameConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [DomainNameConfigurationProperty]
PropertyType "DomainNameConfigurations" DomainName
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: ()
domainName :: Value Text
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "MutualTlsAuthentication" DomainName where
  type PropertyType "MutualTlsAuthentication" DomainName = MutualTlsAuthenticationProperty
  set :: PropertyType "MutualTlsAuthentication" DomainName
-> DomainName -> DomainName
set PropertyType "MutualTlsAuthentication" DomainName
newValue DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = DomainName {mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
mutualTlsAuthentication = MutualTlsAuthenticationProperty
-> Maybe MutualTlsAuthenticationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MutualTlsAuthentication" DomainName
MutualTlsAuthenticationProperty
newValue, Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RoutingMode" DomainName where
  type PropertyType "RoutingMode" DomainName = Value Prelude.Text
  set :: PropertyType "RoutingMode" DomainName -> DomainName -> DomainName
set PropertyType "RoutingMode" DomainName
newValue DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = DomainName {routingMode :: Maybe (Value Text)
routingMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoutingMode" DomainName
Value Text
newValue, Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" DomainName where
  type PropertyType "Tags" DomainName = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" DomainName -> DomainName -> DomainName
set PropertyType "Tags" DomainName
newValue DomainName {Maybe [DomainNameConfigurationProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: DomainName -> ()
domainName :: DomainName -> Value Text
domainNameConfigurations :: DomainName -> Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: DomainName -> Maybe MutualTlsAuthenticationProperty
routingMode :: DomainName -> Maybe (Value Text)
tags :: DomainName -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = DomainName {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" DomainName
newValue, Maybe [DomainNameConfigurationProperty]
Maybe (Value Text)
Maybe MutualTlsAuthenticationProperty
()
Value Text
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Value Text
domainNameConfigurations :: Maybe [DomainNameConfigurationProperty]
mutualTlsAuthentication :: Maybe MutualTlsAuthenticationProperty
routingMode :: Maybe (Value Text)
..}