module Stratosphere.ApiGateway.RestApi.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
=
EndpointConfigurationProperty {EndpointConfigurationProperty -> ()
haddock_workaround_ :: (),
EndpointConfigurationProperty -> Maybe (Value Text)
ipAddressType :: (Prelude.Maybe (Value Prelude.Text)),
EndpointConfigurationProperty -> Maybe (ValueList Text)
types :: (Prelude.Maybe (ValueList Prelude.Text)),
EndpointConfigurationProperty -> Maybe (ValueList Text)
vpcEndpointIds :: (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, vpcEndpointIds :: Maybe (ValueList Text)
vpcEndpointIds = 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)
vpcEndpointIds :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
vpcEndpointIds :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApiGateway::RestApi.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,
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
"VpcEndpointIds" (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)
vpcEndpointIds])}
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)
vpcEndpointIds :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
vpcEndpointIds :: 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,
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
"VpcEndpointIds" (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)
vpcEndpointIds]))
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)
vpcEndpointIds :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
vpcEndpointIds :: 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)
vpcEndpointIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
vpcEndpointIds :: 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)
vpcEndpointIds :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
vpcEndpointIds :: 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 (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
vpcEndpointIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
vpcEndpointIds :: Maybe (ValueList Text)
..}
instance Property "VpcEndpointIds" EndpointConfigurationProperty where
type PropertyType "VpcEndpointIds" EndpointConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "VpcEndpointIds" EndpointConfigurationProperty
-> EndpointConfigurationProperty -> EndpointConfigurationProperty
set PropertyType "VpcEndpointIds" EndpointConfigurationProperty
newValue EndpointConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointConfigurationProperty -> ()
ipAddressType :: EndpointConfigurationProperty -> Maybe (Value Text)
types :: EndpointConfigurationProperty -> Maybe (ValueList Text)
vpcEndpointIds :: EndpointConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
vpcEndpointIds :: Maybe (ValueList Text)
..}
= EndpointConfigurationProperty
{vpcEndpointIds :: Maybe (ValueList Text)
vpcEndpointIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcEndpointIds" EndpointConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
types :: Maybe (ValueList Text)
..}