module Stratosphere.MSK.VpcConnection (
VpcConnection(..), mkVpcConnection
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcConnection
=
VpcConnection {VpcConnection -> ()
haddock_workaround_ :: (),
VpcConnection -> Value Text
authentication :: (Value Prelude.Text),
VpcConnection -> ValueList Text
clientSubnets :: (ValueList Prelude.Text),
VpcConnection -> ValueList Text
securityGroups :: (ValueList Prelude.Text),
VpcConnection -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
VpcConnection -> Value Text
targetClusterArn :: (Value Prelude.Text),
VpcConnection -> Value Text
vpcId :: (Value Prelude.Text)}
deriving stock (VpcConnection -> VpcConnection -> Bool
(VpcConnection -> VpcConnection -> Bool)
-> (VpcConnection -> VpcConnection -> Bool) -> Eq VpcConnection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcConnection -> VpcConnection -> Bool
== :: VpcConnection -> VpcConnection -> Bool
$c/= :: VpcConnection -> VpcConnection -> Bool
/= :: VpcConnection -> VpcConnection -> Bool
Prelude.Eq, Int -> VpcConnection -> ShowS
[VpcConnection] -> ShowS
VpcConnection -> String
(Int -> VpcConnection -> ShowS)
-> (VpcConnection -> String)
-> ([VpcConnection] -> ShowS)
-> Show VpcConnection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcConnection -> ShowS
showsPrec :: Int -> VpcConnection -> ShowS
$cshow :: VpcConnection -> String
show :: VpcConnection -> String
$cshowList :: [VpcConnection] -> ShowS
showList :: [VpcConnection] -> ShowS
Prelude.Show)
mkVpcConnection ::
Value Prelude.Text
-> ValueList Prelude.Text
-> ValueList Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> VpcConnection
mkVpcConnection :: Value Text
-> ValueList Text
-> ValueList Text
-> Value Text
-> Value Text
-> VpcConnection
mkVpcConnection
Value Text
authentication
ValueList Text
clientSubnets
ValueList Text
securityGroups
Value Text
targetClusterArn
Value Text
vpcId
= VpcConnection
{haddock_workaround_ :: ()
haddock_workaround_ = (), authentication :: Value Text
authentication = Value Text
authentication,
clientSubnets :: ValueList Text
clientSubnets = ValueList Text
clientSubnets, securityGroups :: ValueList Text
securityGroups = ValueList Text
securityGroups,
targetClusterArn :: Value Text
targetClusterArn = Value Text
targetClusterArn, vpcId :: Value Text
vpcId = Value Text
vpcId,
tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcConnection where
toResourceProperties :: VpcConnection -> ResourceProperties
toResourceProperties VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::VpcConnection", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Authentication" 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..= Value Text
authentication,
Key
"ClientSubnets" 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
clientSubnets,
Key
"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..= ValueList Text
securityGroups,
Key
"TargetClusterArn" 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..= Value Text
targetClusterArn, Key
"VpcId" 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..= Value Text
vpcId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON VpcConnection where
toJSON :: VpcConnection -> Value
toJSON VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: 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
"Authentication" 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..= Value Text
authentication,
Key
"ClientSubnets" 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
clientSubnets,
Key
"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..= ValueList Text
securityGroups,
Key
"TargetClusterArn" 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..= Value Text
targetClusterArn, Key
"VpcId" 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..= Value Text
vpcId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Authentication" VpcConnection where
type PropertyType "Authentication" VpcConnection = Value Prelude.Text
set :: PropertyType "Authentication" VpcConnection
-> VpcConnection -> VpcConnection
set PropertyType "Authentication" VpcConnection
newValue VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= VpcConnection {authentication :: Value Text
authentication = PropertyType "Authentication" VpcConnection
Value Text
newValue, Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: ()
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
haddock_workaround_ :: ()
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
instance Property "ClientSubnets" VpcConnection where
type PropertyType "ClientSubnets" VpcConnection = ValueList Prelude.Text
set :: PropertyType "ClientSubnets" VpcConnection
-> VpcConnection -> VpcConnection
set PropertyType "ClientSubnets" VpcConnection
newValue VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= VpcConnection {clientSubnets :: ValueList Text
clientSubnets = PropertyType "ClientSubnets" VpcConnection
ValueList Text
newValue, Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authentication :: Value Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
haddock_workaround_ :: ()
authentication :: Value Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
instance Property "SecurityGroups" VpcConnection where
type PropertyType "SecurityGroups" VpcConnection = ValueList Prelude.Text
set :: PropertyType "SecurityGroups" VpcConnection
-> VpcConnection -> VpcConnection
set PropertyType "SecurityGroups" VpcConnection
newValue VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= VpcConnection {securityGroups :: ValueList Text
securityGroups = PropertyType "SecurityGroups" VpcConnection
ValueList Text
newValue, Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
instance Property "Tags" VpcConnection where
type PropertyType "Tags" VpcConnection = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" VpcConnection -> VpcConnection -> VpcConnection
set PropertyType "Tags" VpcConnection
newValue VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= VpcConnection {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" VpcConnection
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
targetClusterArn :: Value Text
vpcId :: Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
targetClusterArn :: Value Text
vpcId :: Value Text
..}
instance Property "TargetClusterArn" VpcConnection where
type PropertyType "TargetClusterArn" VpcConnection = Value Prelude.Text
set :: PropertyType "TargetClusterArn" VpcConnection
-> VpcConnection -> VpcConnection
set PropertyType "TargetClusterArn" VpcConnection
newValue VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= VpcConnection {targetClusterArn :: Value Text
targetClusterArn = PropertyType "TargetClusterArn" VpcConnection
Value Text
newValue, Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
vpcId :: Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
vpcId :: Value Text
..}
instance Property "VpcId" VpcConnection where
type PropertyType "VpcId" VpcConnection = Value Prelude.Text
set :: PropertyType "VpcId" VpcConnection
-> VpcConnection -> VpcConnection
set PropertyType "VpcId" VpcConnection
newValue VpcConnection {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: VpcConnection -> ()
authentication :: VpcConnection -> Value Text
clientSubnets :: VpcConnection -> ValueList Text
securityGroups :: VpcConnection -> ValueList Text
tags :: VpcConnection -> Maybe (Map Text (Value Text))
targetClusterArn :: VpcConnection -> Value Text
vpcId :: VpcConnection -> Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
vpcId :: Value Text
..}
= VpcConnection {vpcId :: Value Text
vpcId = PropertyType "VpcId" VpcConnection
Value Text
newValue, Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
haddock_workaround_ :: ()
authentication :: Value Text
clientSubnets :: ValueList Text
securityGroups :: ValueList Text
tags :: Maybe (Map Text (Value Text))
targetClusterArn :: Value Text
..}