module Stratosphere.Pipes.Pipe.SelfManagedKafkaAccessConfigurationVpcProperty (
SelfManagedKafkaAccessConfigurationVpcProperty(..),
mkSelfManagedKafkaAccessConfigurationVpcProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SelfManagedKafkaAccessConfigurationVpcProperty
=
SelfManagedKafkaAccessConfigurationVpcProperty {SelfManagedKafkaAccessConfigurationVpcProperty -> ()
haddock_workaround_ :: (),
SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
securityGroup :: (Prelude.Maybe (ValueList Prelude.Text)),
SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
subnets :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool
(SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool)
-> (SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool)
-> Eq SelfManagedKafkaAccessConfigurationVpcProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool
== :: SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool
$c/= :: SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool
/= :: SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty -> Bool
Prelude.Eq, Int -> SelfManagedKafkaAccessConfigurationVpcProperty -> ShowS
[SelfManagedKafkaAccessConfigurationVpcProperty] -> ShowS
SelfManagedKafkaAccessConfigurationVpcProperty -> String
(Int -> SelfManagedKafkaAccessConfigurationVpcProperty -> ShowS)
-> (SelfManagedKafkaAccessConfigurationVpcProperty -> String)
-> ([SelfManagedKafkaAccessConfigurationVpcProperty] -> ShowS)
-> Show SelfManagedKafkaAccessConfigurationVpcProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SelfManagedKafkaAccessConfigurationVpcProperty -> ShowS
showsPrec :: Int -> SelfManagedKafkaAccessConfigurationVpcProperty -> ShowS
$cshow :: SelfManagedKafkaAccessConfigurationVpcProperty -> String
show :: SelfManagedKafkaAccessConfigurationVpcProperty -> String
$cshowList :: [SelfManagedKafkaAccessConfigurationVpcProperty] -> ShowS
showList :: [SelfManagedKafkaAccessConfigurationVpcProperty] -> ShowS
Prelude.Show)
mkSelfManagedKafkaAccessConfigurationVpcProperty ::
SelfManagedKafkaAccessConfigurationVpcProperty
mkSelfManagedKafkaAccessConfigurationVpcProperty :: SelfManagedKafkaAccessConfigurationVpcProperty
mkSelfManagedKafkaAccessConfigurationVpcProperty
= SelfManagedKafkaAccessConfigurationVpcProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroup :: Maybe (ValueList Text)
securityGroup = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
subnets :: Maybe (ValueList Text)
subnets = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SelfManagedKafkaAccessConfigurationVpcProperty where
toResourceProperties :: SelfManagedKafkaAccessConfigurationVpcProperty
-> ResourceProperties
toResourceProperties
SelfManagedKafkaAccessConfigurationVpcProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationVpcProperty -> ()
securityGroup :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
subnets :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroup :: Maybe (ValueList Text)
subnets :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.SelfManagedKafkaAccessConfigurationVpc",
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
"SecurityGroup" (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)
securityGroup,
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
"Subnets" (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)
subnets])}
instance JSON.ToJSON SelfManagedKafkaAccessConfigurationVpcProperty where
toJSON :: SelfManagedKafkaAccessConfigurationVpcProperty -> Value
toJSON SelfManagedKafkaAccessConfigurationVpcProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationVpcProperty -> ()
securityGroup :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
subnets :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroup :: Maybe (ValueList Text)
subnets :: 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 -> 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
"SecurityGroup" (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)
securityGroup,
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
"Subnets" (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)
subnets]))
instance Property "SecurityGroup" SelfManagedKafkaAccessConfigurationVpcProperty where
type PropertyType "SecurityGroup" SelfManagedKafkaAccessConfigurationVpcProperty = ValueList Prelude.Text
set :: PropertyType
"SecurityGroup" SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty
set PropertyType
"SecurityGroup" SelfManagedKafkaAccessConfigurationVpcProperty
newValue SelfManagedKafkaAccessConfigurationVpcProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationVpcProperty -> ()
securityGroup :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
subnets :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroup :: Maybe (ValueList Text)
subnets :: Maybe (ValueList Text)
..}
= SelfManagedKafkaAccessConfigurationVpcProperty
{securityGroup :: Maybe (ValueList Text)
securityGroup = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SecurityGroup" SelfManagedKafkaAccessConfigurationVpcProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
subnets :: Maybe (ValueList Text)
haddock_workaround_ :: ()
subnets :: Maybe (ValueList Text)
..}
instance Property "Subnets" SelfManagedKafkaAccessConfigurationVpcProperty where
type PropertyType "Subnets" SelfManagedKafkaAccessConfigurationVpcProperty = ValueList Prelude.Text
set :: PropertyType
"Subnets" SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty
-> SelfManagedKafkaAccessConfigurationVpcProperty
set PropertyType
"Subnets" SelfManagedKafkaAccessConfigurationVpcProperty
newValue SelfManagedKafkaAccessConfigurationVpcProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationVpcProperty -> ()
securityGroup :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
subnets :: SelfManagedKafkaAccessConfigurationVpcProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroup :: Maybe (ValueList Text)
subnets :: Maybe (ValueList Text)
..}
= SelfManagedKafkaAccessConfigurationVpcProperty
{subnets :: Maybe (ValueList Text)
subnets = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Subnets" SelfManagedKafkaAccessConfigurationVpcProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
securityGroup :: Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroup :: Maybe (ValueList Text)
..}