module Stratosphere.Elasticsearch.Domain.VPCOptionsProperty (
VPCOptionsProperty(..), mkVPCOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VPCOptionsProperty
=
VPCOptionsProperty {VPCOptionsProperty -> ()
haddock_workaround_ :: (),
VPCOptionsProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
VPCOptionsProperty -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (VPCOptionsProperty -> VPCOptionsProperty -> Bool
(VPCOptionsProperty -> VPCOptionsProperty -> Bool)
-> (VPCOptionsProperty -> VPCOptionsProperty -> Bool)
-> Eq VPCOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VPCOptionsProperty -> VPCOptionsProperty -> Bool
== :: VPCOptionsProperty -> VPCOptionsProperty -> Bool
$c/= :: VPCOptionsProperty -> VPCOptionsProperty -> Bool
/= :: VPCOptionsProperty -> VPCOptionsProperty -> Bool
Prelude.Eq, Int -> VPCOptionsProperty -> ShowS
[VPCOptionsProperty] -> ShowS
VPCOptionsProperty -> String
(Int -> VPCOptionsProperty -> ShowS)
-> (VPCOptionsProperty -> String)
-> ([VPCOptionsProperty] -> ShowS)
-> Show VPCOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VPCOptionsProperty -> ShowS
showsPrec :: Int -> VPCOptionsProperty -> ShowS
$cshow :: VPCOptionsProperty -> String
show :: VPCOptionsProperty -> String
$cshowList :: [VPCOptionsProperty] -> ShowS
showList :: [VPCOptionsProperty] -> ShowS
Prelude.Show)
mkVPCOptionsProperty :: VPCOptionsProperty
mkVPCOptionsProperty :: VPCOptionsProperty
mkVPCOptionsProperty
= VPCOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), 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}
instance ToResourceProperties VPCOptionsProperty where
toResourceProperties :: VPCOptionsProperty -> ResourceProperties
toResourceProperties VPCOptionsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VPCOptionsProperty -> ()
securityGroupIds :: VPCOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VPCOptionsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Elasticsearch::Domain.VPCOptions",
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
"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])}
instance JSON.ToJSON VPCOptionsProperty where
toJSON :: VPCOptionsProperty -> Value
toJSON VPCOptionsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VPCOptionsProperty -> ()
securityGroupIds :: VPCOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VPCOptionsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: 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
"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]))
instance Property "SecurityGroupIds" VPCOptionsProperty where
type PropertyType "SecurityGroupIds" VPCOptionsProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" VPCOptionsProperty
-> VPCOptionsProperty -> VPCOptionsProperty
set PropertyType "SecurityGroupIds" VPCOptionsProperty
newValue VPCOptionsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VPCOptionsProperty -> ()
securityGroupIds :: VPCOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VPCOptionsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
= VPCOptionsProperty {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" VPCOptionsProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
subnetIds :: Maybe (ValueList Text)
..}
instance Property "SubnetIds" VPCOptionsProperty where
type PropertyType "SubnetIds" VPCOptionsProperty = ValueList Prelude.Text
set :: PropertyType "SubnetIds" VPCOptionsProperty
-> VPCOptionsProperty -> VPCOptionsProperty
set PropertyType "SubnetIds" VPCOptionsProperty
newValue VPCOptionsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VPCOptionsProperty -> ()
securityGroupIds :: VPCOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VPCOptionsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
= VPCOptionsProperty {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" VPCOptionsProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
..}