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