module Stratosphere.ImageBuilder.DistributionConfiguration.LaunchPermissionConfigurationProperty (
LaunchPermissionConfigurationProperty(..),
mkLaunchPermissionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LaunchPermissionConfigurationProperty
=
LaunchPermissionConfigurationProperty {LaunchPermissionConfigurationProperty -> ()
haddock_workaround_ :: (),
LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationArns :: (Prelude.Maybe (ValueList Prelude.Text)),
LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: (Prelude.Maybe (ValueList Prelude.Text)),
LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: (Prelude.Maybe (ValueList Prelude.Text)),
LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool
(LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool)
-> (LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool)
-> Eq LaunchPermissionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool
== :: LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool
$c/= :: LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool
/= :: LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty -> Bool
Prelude.Eq, Int -> LaunchPermissionConfigurationProperty -> ShowS
[LaunchPermissionConfigurationProperty] -> ShowS
LaunchPermissionConfigurationProperty -> String
(Int -> LaunchPermissionConfigurationProperty -> ShowS)
-> (LaunchPermissionConfigurationProperty -> String)
-> ([LaunchPermissionConfigurationProperty] -> ShowS)
-> Show LaunchPermissionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LaunchPermissionConfigurationProperty -> ShowS
showsPrec :: Int -> LaunchPermissionConfigurationProperty -> ShowS
$cshow :: LaunchPermissionConfigurationProperty -> String
show :: LaunchPermissionConfigurationProperty -> String
$cshowList :: [LaunchPermissionConfigurationProperty] -> ShowS
showList :: [LaunchPermissionConfigurationProperty] -> ShowS
Prelude.Show)
mkLaunchPermissionConfigurationProperty ::
LaunchPermissionConfigurationProperty
mkLaunchPermissionConfigurationProperty :: LaunchPermissionConfigurationProperty
mkLaunchPermissionConfigurationProperty
= LaunchPermissionConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), organizationArns :: Maybe (ValueList Text)
organizationArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
organizationalUnitArns :: Maybe (ValueList Text)
organizationalUnitArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
userGroups :: Maybe (ValueList Text)
userGroups = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, userIds :: Maybe (ValueList Text)
userIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LaunchPermissionConfigurationProperty where
toResourceProperties :: LaunchPermissionConfigurationProperty -> ResourceProperties
toResourceProperties LaunchPermissionConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LaunchPermissionConfigurationProperty -> ()
organizationArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::DistributionConfiguration.LaunchPermissionConfiguration",
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
"OrganizationArns" (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)
organizationArns,
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
"OrganizationalUnitArns"
(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)
organizationalUnitArns,
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
"UserGroups" (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)
userGroups,
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
"UserIds" (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)
userIds])}
instance JSON.ToJSON LaunchPermissionConfigurationProperty where
toJSON :: LaunchPermissionConfigurationProperty -> Value
toJSON LaunchPermissionConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LaunchPermissionConfigurationProperty -> ()
organizationArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: 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
"OrganizationArns" (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)
organizationArns,
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
"OrganizationalUnitArns"
(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)
organizationalUnitArns,
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
"UserGroups" (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)
userGroups,
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
"UserIds" (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)
userIds]))
instance Property "OrganizationArns" LaunchPermissionConfigurationProperty where
type PropertyType "OrganizationArns" LaunchPermissionConfigurationProperty = ValueList Prelude.Text
set :: PropertyType
"OrganizationArns" LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
set PropertyType
"OrganizationArns" LaunchPermissionConfigurationProperty
newValue LaunchPermissionConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LaunchPermissionConfigurationProperty -> ()
organizationArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
= LaunchPermissionConfigurationProperty
{organizationArns :: Maybe (ValueList Text)
organizationArns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"OrganizationArns" LaunchPermissionConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
instance Property "OrganizationalUnitArns" LaunchPermissionConfigurationProperty where
type PropertyType "OrganizationalUnitArns" LaunchPermissionConfigurationProperty = ValueList Prelude.Text
set :: PropertyType
"OrganizationalUnitArns" LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
set PropertyType
"OrganizationalUnitArns" LaunchPermissionConfigurationProperty
newValue LaunchPermissionConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LaunchPermissionConfigurationProperty -> ()
organizationArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
= LaunchPermissionConfigurationProperty
{organizationalUnitArns :: Maybe (ValueList Text)
organizationalUnitArns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"OrganizationalUnitArns" LaunchPermissionConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
instance Property "UserGroups" LaunchPermissionConfigurationProperty where
type PropertyType "UserGroups" LaunchPermissionConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "UserGroups" LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
set PropertyType "UserGroups" LaunchPermissionConfigurationProperty
newValue LaunchPermissionConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LaunchPermissionConfigurationProperty -> ()
organizationArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
= LaunchPermissionConfigurationProperty
{userGroups :: Maybe (ValueList Text)
userGroups = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserGroups" LaunchPermissionConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
instance Property "UserIds" LaunchPermissionConfigurationProperty where
type PropertyType "UserIds" LaunchPermissionConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "UserIds" LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
-> LaunchPermissionConfigurationProperty
set PropertyType "UserIds" LaunchPermissionConfigurationProperty
newValue LaunchPermissionConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LaunchPermissionConfigurationProperty -> ()
organizationArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
organizationalUnitArns :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userGroups :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
userIds :: LaunchPermissionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
userIds :: Maybe (ValueList Text)
..}
= LaunchPermissionConfigurationProperty
{userIds :: Maybe (ValueList Text)
userIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserIds" LaunchPermissionConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationArns :: Maybe (ValueList Text)
organizationalUnitArns :: Maybe (ValueList Text)
userGroups :: Maybe (ValueList Text)
..}