module Stratosphere.ApiGateway.DomainName.EndpointConfigurationProperty (
        EndpointConfigurationProperty(..), mkEndpointConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EndpointConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html>
    EndpointConfigurationProperty {EndpointConfigurationProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html#cfn-apigateway-domainname-endpointconfiguration-ipaddresstype>
                                   EndpointConfigurationProperty -> Maybe (Value Text)
ipAddressType :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html#cfn-apigateway-domainname-endpointconfiguration-types>
                                   EndpointConfigurationProperty -> Maybe (ValueList Text)
types :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (EndpointConfigurationProperty
-> EndpointConfigurationProperty -> Bool
(EndpointConfigurationProperty
 -> EndpointConfigurationProperty -> Bool)
-> (EndpointConfigurationProperty
    -> EndpointConfigurationProperty -> Bool)
-> Eq EndpointConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EndpointConfigurationProperty
-> EndpointConfigurationProperty -> Bool
== :: EndpointConfigurationProperty
-> EndpointConfigurationProperty -> Bool
$c/= :: EndpointConfigurationProperty
-> EndpointConfigurationProperty -> Bool
/= :: EndpointConfigurationProperty
-> EndpointConfigurationProperty -> Bool
Prelude.Eq, Int -> EndpointConfigurationProperty -> ShowS
[EndpointConfigurationProperty] -> ShowS
EndpointConfigurationProperty -> String
(Int -> EndpointConfigurationProperty -> ShowS)
-> (EndpointConfigurationProperty -> String)
-> ([EndpointConfigurationProperty] -> ShowS)
-> Show EndpointConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EndpointConfigurationProperty -> ShowS
showsPrec :: Int -> EndpointConfigurationProperty -> ShowS
$cshow :: EndpointConfigurationProperty -> String
show :: EndpointConfigurationProperty -> String
$cshowList :: [EndpointConfigurationProperty] -> ShowS
showList :: [EndpointConfigurationProperty] -> ShowS
Prelude.Show)
mkEndpointConfigurationProperty :: EndpointConfigurationProperty
mkEndpointConfigurationProperty :: EndpointConfigurationProperty
mkEndpointConfigurationProperty
  = EndpointConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ipAddressType :: Maybe (Value Text)
ipAddressType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       types :: Maybe (ValueList Text)
types = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EndpointConfigurationProperty where
  toResourceProperties :: EndpointConfigurationProperty -> ResourceProperties
toResourceProperties EndpointConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointConfigurationProperty -> ()
ipAddressType :: EndpointConfigurationProperty -> Maybe (Value Text)
types :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApiGateway::DomainName.EndpointConfiguration",
         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
"IpAddressType" (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)
ipAddressType,
                            Key -> ValueList 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
"Types" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
types])}
instance JSON.ToJSON EndpointConfigurationProperty where
  toJSON :: EndpointConfigurationProperty -> Value
toJSON EndpointConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointConfigurationProperty -> ()
ipAddressType :: EndpointConfigurationProperty -> Maybe (Value Text)
types :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList 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
"IpAddressType" (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)
ipAddressType,
               Key -> ValueList 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
"Types" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
types]))
instance Property "IpAddressType" EndpointConfigurationProperty where
  type PropertyType "IpAddressType" EndpointConfigurationProperty = Value Prelude.Text
  set :: PropertyType "IpAddressType" EndpointConfigurationProperty
-> EndpointConfigurationProperty -> EndpointConfigurationProperty
set PropertyType "IpAddressType" EndpointConfigurationProperty
newValue EndpointConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointConfigurationProperty -> ()
ipAddressType :: EndpointConfigurationProperty -> Maybe (Value Text)
types :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
..}
    = EndpointConfigurationProperty
        {ipAddressType :: Maybe (Value Text)
ipAddressType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IpAddressType" EndpointConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
..}
instance Property "Types" EndpointConfigurationProperty where
  type PropertyType "Types" EndpointConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "Types" EndpointConfigurationProperty
-> EndpointConfigurationProperty -> EndpointConfigurationProperty
set PropertyType "Types" EndpointConfigurationProperty
newValue EndpointConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointConfigurationProperty -> ()
ipAddressType :: EndpointConfigurationProperty -> Maybe (Value Text)
types :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
..}
    = EndpointConfigurationProperty {types :: Maybe (ValueList Text)
types = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Types" EndpointConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
..}