module Stratosphere.IoT.TopicRuleDestination.VpcDestinationPropertiesProperty (
VpcDestinationPropertiesProperty(..),
mkVpcDestinationPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcDestinationPropertiesProperty
=
VpcDestinationPropertiesProperty {VpcDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
VpcDestinationPropertiesProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
securityGroups :: (Prelude.Maybe (ValueList Prelude.Text)),
VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text)),
VpcDestinationPropertiesProperty -> Maybe (Value Text)
vpcId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool
(VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool)
-> (VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool)
-> Eq VpcDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool
== :: VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool
$c/= :: VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool
/= :: VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> VpcDestinationPropertiesProperty -> ShowS
[VpcDestinationPropertiesProperty] -> ShowS
VpcDestinationPropertiesProperty -> String
(Int -> VpcDestinationPropertiesProperty -> ShowS)
-> (VpcDestinationPropertiesProperty -> String)
-> ([VpcDestinationPropertiesProperty] -> ShowS)
-> Show VpcDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> VpcDestinationPropertiesProperty -> ShowS
$cshow :: VpcDestinationPropertiesProperty -> String
show :: VpcDestinationPropertiesProperty -> String
$cshowList :: [VpcDestinationPropertiesProperty] -> ShowS
showList :: [VpcDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkVpcDestinationPropertiesProperty ::
VpcDestinationPropertiesProperty
mkVpcDestinationPropertiesProperty :: VpcDestinationPropertiesProperty
mkVpcDestinationPropertiesProperty
= VpcDestinationPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
securityGroups :: Maybe (ValueList Text)
securityGroups = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, subnetIds :: Maybe (ValueList Text)
subnetIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
vpcId :: Maybe (Value Text)
vpcId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcDestinationPropertiesProperty where
toResourceProperties :: VpcDestinationPropertiesProperty -> ResourceProperties
toResourceProperties VpcDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: VpcDestinationPropertiesProperty -> ()
roleArn :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
securityGroups :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
vpcId :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::TopicRuleDestination.VpcDestinationProperties",
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
"RoleArn" (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)
roleArn,
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
"SecurityGroups" (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)
securityGroups,
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
"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 VpcDestinationPropertiesProperty where
toJSON :: VpcDestinationPropertiesProperty -> Value
toJSON VpcDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: VpcDestinationPropertiesProperty -> ()
roleArn :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
securityGroups :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
vpcId :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (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
([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
"RoleArn" (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)
roleArn,
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
"SecurityGroups" (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)
securityGroups,
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
"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 "RoleArn" VpcDestinationPropertiesProperty where
type PropertyType "RoleArn" VpcDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "RoleArn" VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
set PropertyType "RoleArn" VpcDestinationPropertiesProperty
newValue VpcDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: VpcDestinationPropertiesProperty -> ()
roleArn :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
securityGroups :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
vpcId :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
= VpcDestinationPropertiesProperty
{roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" VpcDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
instance Property "SecurityGroups" VpcDestinationPropertiesProperty where
type PropertyType "SecurityGroups" VpcDestinationPropertiesProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroups" VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
set PropertyType "SecurityGroups" VpcDestinationPropertiesProperty
newValue VpcDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: VpcDestinationPropertiesProperty -> ()
roleArn :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
securityGroups :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
vpcId :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
= VpcDestinationPropertiesProperty
{securityGroups :: Maybe (ValueList Text)
securityGroups = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroups" VpcDestinationPropertiesProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
instance Property "SubnetIds" VpcDestinationPropertiesProperty where
type PropertyType "SubnetIds" VpcDestinationPropertiesProperty = ValueList Prelude.Text
set :: PropertyType "SubnetIds" VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
set PropertyType "SubnetIds" VpcDestinationPropertiesProperty
newValue VpcDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: VpcDestinationPropertiesProperty -> ()
roleArn :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
securityGroups :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
vpcId :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
= VpcDestinationPropertiesProperty
{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" VpcDestinationPropertiesProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
instance Property "VpcId" VpcDestinationPropertiesProperty where
type PropertyType "VpcId" VpcDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "VpcId" VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
-> VpcDestinationPropertiesProperty
set PropertyType "VpcId" VpcDestinationPropertiesProperty
newValue VpcDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: VpcDestinationPropertiesProperty -> ()
roleArn :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
securityGroups :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
subnetIds :: VpcDestinationPropertiesProperty -> Maybe (ValueList Text)
vpcId :: VpcDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Maybe (Value Text)
..}
= VpcDestinationPropertiesProperty
{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" VpcDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroups :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}