module Stratosphere.Transfer.Server.EndpointDetailsProperty (
EndpointDetailsProperty(..), mkEndpointDetailsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EndpointDetailsProperty
=
EndpointDetailsProperty {EndpointDetailsProperty -> ()
haddock_workaround_ :: (),
EndpointDetailsProperty -> Maybe (ValueList Text)
addressAllocationIds :: (Prelude.Maybe (ValueList Prelude.Text)),
EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text)),
EndpointDetailsProperty -> Maybe (Value Text)
vpcEndpointId :: (Prelude.Maybe (Value Prelude.Text)),
EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (EndpointDetailsProperty -> EndpointDetailsProperty -> Bool
(EndpointDetailsProperty -> EndpointDetailsProperty -> Bool)
-> (EndpointDetailsProperty -> EndpointDetailsProperty -> Bool)
-> Eq EndpointDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EndpointDetailsProperty -> EndpointDetailsProperty -> Bool
== :: EndpointDetailsProperty -> EndpointDetailsProperty -> Bool
$c/= :: EndpointDetailsProperty -> EndpointDetailsProperty -> Bool
/= :: EndpointDetailsProperty -> EndpointDetailsProperty -> Bool
Prelude.Eq, Int -> EndpointDetailsProperty -> ShowS
[EndpointDetailsProperty] -> ShowS
EndpointDetailsProperty -> String
(Int -> EndpointDetailsProperty -> ShowS)
-> (EndpointDetailsProperty -> String)
-> ([EndpointDetailsProperty] -> ShowS)
-> Show EndpointDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EndpointDetailsProperty -> ShowS
showsPrec :: Int -> EndpointDetailsProperty -> ShowS
$cshow :: EndpointDetailsProperty -> String
show :: EndpointDetailsProperty -> String
$cshowList :: [EndpointDetailsProperty] -> ShowS
showList :: [EndpointDetailsProperty] -> ShowS
Prelude.Show)
mkEndpointDetailsProperty :: EndpointDetailsProperty
mkEndpointDetailsProperty :: EndpointDetailsProperty
mkEndpointDetailsProperty
= EndpointDetailsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), addressAllocationIds :: Maybe (ValueList Text)
addressAllocationIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, subnetIds :: Maybe (ValueList Text)
subnetIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
vpcEndpointId :: Maybe (Value Text)
vpcEndpointId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, vpcId :: Maybe (Value Text)
vpcId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EndpointDetailsProperty where
toResourceProperties :: EndpointDetailsProperty -> ResourceProperties
toResourceProperties EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Transfer::Server.EndpointDetails",
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 -> 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
"AddressAllocationIds" (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)
addressAllocationIds,
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
"SecurityGroupIds" (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)
securityGroupIds,
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
"SubnetIds" (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)
subnetIds,
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
"VpcEndpointId" (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)
vpcEndpointId,
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
"VpcId" (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)
vpcId])}
instance JSON.ToJSON EndpointDetailsProperty where
toJSON :: EndpointDetailsProperty -> Value
toJSON EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: 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 -> 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
"AddressAllocationIds" (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)
addressAllocationIds,
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
"SecurityGroupIds" (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)
securityGroupIds,
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
"SubnetIds" (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)
subnetIds,
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
"VpcEndpointId" (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)
vpcEndpointId,
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
"VpcId" (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)
vpcId]))
instance Property "AddressAllocationIds" EndpointDetailsProperty where
type PropertyType "AddressAllocationIds" EndpointDetailsProperty = ValueList Prelude.Text
set :: PropertyType "AddressAllocationIds" EndpointDetailsProperty
-> EndpointDetailsProperty -> EndpointDetailsProperty
set PropertyType "AddressAllocationIds" EndpointDetailsProperty
newValue EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= EndpointDetailsProperty
{addressAllocationIds :: Maybe (ValueList Text)
addressAllocationIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AddressAllocationIds" EndpointDetailsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
instance Property "SecurityGroupIds" EndpointDetailsProperty where
type PropertyType "SecurityGroupIds" EndpointDetailsProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" EndpointDetailsProperty
-> EndpointDetailsProperty -> EndpointDetailsProperty
set PropertyType "SecurityGroupIds" EndpointDetailsProperty
newValue EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= EndpointDetailsProperty
{securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupIds" EndpointDetailsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
instance Property "SubnetIds" EndpointDetailsProperty where
type PropertyType "SubnetIds" EndpointDetailsProperty = ValueList Prelude.Text
set :: PropertyType "SubnetIds" EndpointDetailsProperty
-> EndpointDetailsProperty -> EndpointDetailsProperty
set PropertyType "SubnetIds" EndpointDetailsProperty
newValue EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= EndpointDetailsProperty {subnetIds :: Maybe (ValueList Text)
subnetIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetIds" EndpointDetailsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
instance Property "VpcEndpointId" EndpointDetailsProperty where
type PropertyType "VpcEndpointId" EndpointDetailsProperty = Value Prelude.Text
set :: PropertyType "VpcEndpointId" EndpointDetailsProperty
-> EndpointDetailsProperty -> EndpointDetailsProperty
set PropertyType "VpcEndpointId" EndpointDetailsProperty
newValue EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= EndpointDetailsProperty
{vpcEndpointId :: Maybe (Value Text)
vpcEndpointId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcEndpointId" EndpointDetailsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
instance Property "VpcId" EndpointDetailsProperty where
type PropertyType "VpcId" EndpointDetailsProperty = Value Prelude.Text
set :: PropertyType "VpcId" EndpointDetailsProperty
-> EndpointDetailsProperty -> EndpointDetailsProperty
set PropertyType "VpcId" EndpointDetailsProperty
newValue EndpointDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: EndpointDetailsProperty -> ()
addressAllocationIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
subnetIds :: EndpointDetailsProperty -> Maybe (ValueList Text)
vpcEndpointId :: EndpointDetailsProperty -> Maybe (Value Text)
vpcId :: EndpointDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= EndpointDetailsProperty {vpcId :: Maybe (Value Text)
vpcId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcId" EndpointDetailsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
haddock_workaround_ :: ()
addressAllocationIds :: Maybe (ValueList Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcEndpointId :: Maybe (Value Text)
..}