module Stratosphere.ImageBuilder.DistributionConfiguration.AmiDistributionConfigurationProperty (
        module Exports, AmiDistributionConfigurationProperty(..),
        mkAmiDistributionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ImageBuilder.DistributionConfiguration.LaunchPermissionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AmiDistributionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html>
    AmiDistributionConfigurationProperty {AmiDistributionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-amitags>
                                          AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
amiTags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-description>
                                          AmiDistributionConfigurationProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-kmskeyid>
                                          AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-launchpermissionconfiguration>
                                          AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
launchPermissionConfiguration :: (Prelude.Maybe LaunchPermissionConfigurationProperty),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-name>
                                          AmiDistributionConfigurationProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-targetaccountids>
                                          AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
targetAccountIds :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty -> Bool
(AmiDistributionConfigurationProperty
 -> AmiDistributionConfigurationProperty -> Bool)
-> (AmiDistributionConfigurationProperty
    -> AmiDistributionConfigurationProperty -> Bool)
-> Eq AmiDistributionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty -> Bool
== :: AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty -> Bool
$c/= :: AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty -> Bool
/= :: AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty -> Bool
Prelude.Eq, Int -> AmiDistributionConfigurationProperty -> ShowS
[AmiDistributionConfigurationProperty] -> ShowS
AmiDistributionConfigurationProperty -> String
(Int -> AmiDistributionConfigurationProperty -> ShowS)
-> (AmiDistributionConfigurationProperty -> String)
-> ([AmiDistributionConfigurationProperty] -> ShowS)
-> Show AmiDistributionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AmiDistributionConfigurationProperty -> ShowS
showsPrec :: Int -> AmiDistributionConfigurationProperty -> ShowS
$cshow :: AmiDistributionConfigurationProperty -> String
show :: AmiDistributionConfigurationProperty -> String
$cshowList :: [AmiDistributionConfigurationProperty] -> ShowS
showList :: [AmiDistributionConfigurationProperty] -> ShowS
Prelude.Show)
mkAmiDistributionConfigurationProperty ::
  AmiDistributionConfigurationProperty
mkAmiDistributionConfigurationProperty :: AmiDistributionConfigurationProperty
mkAmiDistributionConfigurationProperty
  = AmiDistributionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), amiTags :: Maybe (Map Text (Value Text))
amiTags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
launchPermissionConfiguration = Maybe LaunchPermissionConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, targetAccountIds :: Maybe (ValueList Text)
targetAccountIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AmiDistributionConfigurationProperty where
  toResourceProperties :: AmiDistributionConfigurationProperty -> ResourceProperties
toResourceProperties AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ImageBuilder::DistributionConfiguration.AmiDistributionConfiguration",
         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 -> 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
"AmiTags" (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))
amiTags,
                            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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
                            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..=) Key
"KmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyId,
                            Key -> LaunchPermissionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LaunchPermissionConfiguration"
                              (LaunchPermissionConfigurationProperty -> (Key, Value))
-> Maybe LaunchPermissionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LaunchPermissionConfigurationProperty
launchPermissionConfiguration,
                            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..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
                            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
"TargetAccountIds" (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)
targetAccountIds])}
instance JSON.ToJSON AmiDistributionConfigurationProperty where
  toJSON :: AmiDistributionConfigurationProperty -> Value
toJSON AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: 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 -> 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
"AmiTags" (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))
amiTags,
               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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
               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..=) Key
"KmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyId,
               Key -> LaunchPermissionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LaunchPermissionConfiguration"
                 (LaunchPermissionConfigurationProperty -> (Key, Value))
-> Maybe LaunchPermissionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LaunchPermissionConfigurationProperty
launchPermissionConfiguration,
               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..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
               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
"TargetAccountIds" (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)
targetAccountIds]))
instance Property "AmiTags" AmiDistributionConfigurationProperty where
  type PropertyType "AmiTags" AmiDistributionConfigurationProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "AmiTags" AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
set PropertyType "AmiTags" AmiDistributionConfigurationProperty
newValue AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = AmiDistributionConfigurationProperty
        {amiTags :: Maybe (Map Text (Value Text))
amiTags = 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 "AmiTags" AmiDistributionConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
instance Property "Description" AmiDistributionConfigurationProperty where
  type PropertyType "Description" AmiDistributionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Description" AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
set PropertyType "Description" AmiDistributionConfigurationProperty
newValue AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = AmiDistributionConfigurationProperty
        {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" AmiDistributionConfigurationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
instance Property "KmsKeyId" AmiDistributionConfigurationProperty where
  type PropertyType "KmsKeyId" AmiDistributionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyId" AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
set PropertyType "KmsKeyId" AmiDistributionConfigurationProperty
newValue AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = AmiDistributionConfigurationProperty
        {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" AmiDistributionConfigurationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
instance Property "LaunchPermissionConfiguration" AmiDistributionConfigurationProperty where
  type PropertyType "LaunchPermissionConfiguration" AmiDistributionConfigurationProperty = LaunchPermissionConfigurationProperty
  set :: PropertyType
  "LaunchPermissionConfiguration"
  AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
set PropertyType
  "LaunchPermissionConfiguration"
  AmiDistributionConfigurationProperty
newValue AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = AmiDistributionConfigurationProperty
        {launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
launchPermissionConfiguration = LaunchPermissionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "LaunchPermissionConfiguration"
  AmiDistributionConfigurationProperty
LaunchPermissionConfigurationProperty
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
instance Property "Name" AmiDistributionConfigurationProperty where
  type PropertyType "Name" AmiDistributionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
set PropertyType "Name" AmiDistributionConfigurationProperty
newValue AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = AmiDistributionConfigurationProperty
        {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" AmiDistributionConfigurationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
targetAccountIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
targetAccountIds :: Maybe (ValueList Text)
..}
instance Property "TargetAccountIds" AmiDistributionConfigurationProperty where
  type PropertyType "TargetAccountIds" AmiDistributionConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType
  "TargetAccountIds" AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
-> AmiDistributionConfigurationProperty
set PropertyType
  "TargetAccountIds" AmiDistributionConfigurationProperty
newValue AmiDistributionConfigurationProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: AmiDistributionConfigurationProperty -> ()
amiTags :: AmiDistributionConfigurationProperty
-> Maybe (Map Text (Value Text))
description :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
launchPermissionConfiguration :: AmiDistributionConfigurationProperty
-> Maybe LaunchPermissionConfigurationProperty
name :: AmiDistributionConfigurationProperty -> Maybe (Value Text)
targetAccountIds :: AmiDistributionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
targetAccountIds :: Maybe (ValueList Text)
..}
    = AmiDistributionConfigurationProperty
        {targetAccountIds :: Maybe (ValueList Text)
targetAccountIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "TargetAccountIds" AmiDistributionConfigurationProperty
ValueList Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe LaunchPermissionConfigurationProperty
()
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
amiTags :: Maybe (Map Text (Value Text))
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
launchPermissionConfiguration :: Maybe LaunchPermissionConfigurationProperty
name :: Maybe (Value Text)
..}