module Stratosphere.Synthetics.Canary.VPCConfigProperty (
VPCConfigProperty(..), mkVPCConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VPCConfigProperty
=
VPCConfigProperty {VPCConfigProperty -> ()
haddock_workaround_ :: (),
VPCConfigProperty -> Maybe (Value Bool)
ipv6AllowedForDualStack :: (Prelude.Maybe (Value Prelude.Bool)),
VPCConfigProperty -> ValueList Text
securityGroupIds :: (ValueList Prelude.Text),
VPCConfigProperty -> ValueList Text
subnetIds :: (ValueList Prelude.Text),
VPCConfigProperty -> Maybe (Value Text)
vpcId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (VPCConfigProperty -> VPCConfigProperty -> Bool
(VPCConfigProperty -> VPCConfigProperty -> Bool)
-> (VPCConfigProperty -> VPCConfigProperty -> Bool)
-> Eq VPCConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VPCConfigProperty -> VPCConfigProperty -> Bool
== :: VPCConfigProperty -> VPCConfigProperty -> Bool
$c/= :: VPCConfigProperty -> VPCConfigProperty -> Bool
/= :: VPCConfigProperty -> VPCConfigProperty -> Bool
Prelude.Eq, Int -> VPCConfigProperty -> ShowS
[VPCConfigProperty] -> ShowS
VPCConfigProperty -> String
(Int -> VPCConfigProperty -> ShowS)
-> (VPCConfigProperty -> String)
-> ([VPCConfigProperty] -> ShowS)
-> Show VPCConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VPCConfigProperty -> ShowS
showsPrec :: Int -> VPCConfigProperty -> ShowS
$cshow :: VPCConfigProperty -> String
show :: VPCConfigProperty -> String
$cshowList :: [VPCConfigProperty] -> ShowS
showList :: [VPCConfigProperty] -> ShowS
Prelude.Show)
mkVPCConfigProperty ::
ValueList Prelude.Text
-> ValueList Prelude.Text -> VPCConfigProperty
mkVPCConfigProperty :: ValueList Text -> ValueList Text -> VPCConfigProperty
mkVPCConfigProperty ValueList Text
securityGroupIds ValueList Text
subnetIds
= VPCConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupIds :: ValueList Text
securityGroupIds = ValueList Text
securityGroupIds,
subnetIds :: ValueList Text
subnetIds = ValueList Text
subnetIds, ipv6AllowedForDualStack :: Maybe (Value Bool)
ipv6AllowedForDualStack = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
vpcId :: Maybe (Value Text)
vpcId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VPCConfigProperty where
toResourceProperties :: VPCConfigProperty -> ResourceProperties
toResourceProperties VPCConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: VPCConfigProperty -> ()
ipv6AllowedForDualStack :: VPCConfigProperty -> Maybe (Value Bool)
securityGroupIds :: VPCConfigProperty -> ValueList Text
subnetIds :: VPCConfigProperty -> ValueList Text
vpcId :: VPCConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Synthetics::Canary.VPCConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"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..= ValueList Text
securityGroupIds,
Key
"SubnetIds" 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..= ValueList Text
subnetIds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv6AllowedForDualStack"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
ipv6AllowedForDualStack,
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 VPCConfigProperty where
toJSON :: VPCConfigProperty -> Value
toJSON VPCConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: VPCConfigProperty -> ()
ipv6AllowedForDualStack :: VPCConfigProperty -> Maybe (Value Bool)
securityGroupIds :: VPCConfigProperty -> ValueList Text
subnetIds :: VPCConfigProperty -> ValueList Text
vpcId :: VPCConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (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
"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..= ValueList Text
securityGroupIds,
Key
"SubnetIds" 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..= ValueList Text
subnetIds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv6AllowedForDualStack"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
ipv6AllowedForDualStack,
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 "Ipv6AllowedForDualStack" VPCConfigProperty where
type PropertyType "Ipv6AllowedForDualStack" VPCConfigProperty = Value Prelude.Bool
set :: PropertyType "Ipv6AllowedForDualStack" VPCConfigProperty
-> VPCConfigProperty -> VPCConfigProperty
set PropertyType "Ipv6AllowedForDualStack" VPCConfigProperty
newValue VPCConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: VPCConfigProperty -> ()
ipv6AllowedForDualStack :: VPCConfigProperty -> Maybe (Value Bool)
securityGroupIds :: VPCConfigProperty -> ValueList Text
subnetIds :: VPCConfigProperty -> ValueList Text
vpcId :: VPCConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
= VPCConfigProperty
{ipv6AllowedForDualStack :: Maybe (Value Bool)
ipv6AllowedForDualStack = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6AllowedForDualStack" VPCConfigProperty
Value Bool
newValue, Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
instance Property "SecurityGroupIds" VPCConfigProperty where
type PropertyType "SecurityGroupIds" VPCConfigProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" VPCConfigProperty
-> VPCConfigProperty -> VPCConfigProperty
set PropertyType "SecurityGroupIds" VPCConfigProperty
newValue VPCConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: VPCConfigProperty -> ()
ipv6AllowedForDualStack :: VPCConfigProperty -> Maybe (Value Bool)
securityGroupIds :: VPCConfigProperty -> ValueList Text
subnetIds :: VPCConfigProperty -> ValueList Text
vpcId :: VPCConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
= VPCConfigProperty {securityGroupIds :: ValueList Text
securityGroupIds = PropertyType "SecurityGroupIds" VPCConfigProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
instance Property "SubnetIds" VPCConfigProperty where
type PropertyType "SubnetIds" VPCConfigProperty = ValueList Prelude.Text
set :: PropertyType "SubnetIds" VPCConfigProperty
-> VPCConfigProperty -> VPCConfigProperty
set PropertyType "SubnetIds" VPCConfigProperty
newValue VPCConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: VPCConfigProperty -> ()
ipv6AllowedForDualStack :: VPCConfigProperty -> Maybe (Value Bool)
securityGroupIds :: VPCConfigProperty -> ValueList Text
subnetIds :: VPCConfigProperty -> ValueList Text
vpcId :: VPCConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
= VPCConfigProperty {subnetIds :: ValueList Text
subnetIds = PropertyType "SubnetIds" VPCConfigProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
instance Property "VpcId" VPCConfigProperty where
type PropertyType "VpcId" VPCConfigProperty = Value Prelude.Text
set :: PropertyType "VpcId" VPCConfigProperty
-> VPCConfigProperty -> VPCConfigProperty
set PropertyType "VpcId" VPCConfigProperty
newValue VPCConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: VPCConfigProperty -> ()
ipv6AllowedForDualStack :: VPCConfigProperty -> Maybe (Value Bool)
securityGroupIds :: VPCConfigProperty -> ValueList Text
subnetIds :: VPCConfigProperty -> ValueList Text
vpcId :: VPCConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Maybe (Value Text)
..}
= VPCConfigProperty {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" VPCConfigProperty
Value Text
newValue, Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
haddock_workaround_ :: ()
ipv6AllowedForDualStack :: Maybe (Value Bool)
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
..}