Class CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionConfiguration.AmiDistributionConfigurationProperty>
- Enclosing interface:
CfnDistributionConfiguration.AmiDistributionConfigurationProperty
@Stability(Stable)
public static final class CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionConfiguration.AmiDistributionConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamiTags
(IResolvable amiTags) build()
Builds the configured instance.description
(String description) launchPermissionConfiguration
(IResolvable launchPermissionConfiguration) launchPermissionConfiguration
(CfnDistributionConfiguration.LaunchPermissionConfigurationProperty launchPermissionConfiguration) targetAccountIds
(List<String> targetAccountIds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amiTags
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder amiTags(Map<String, String> amiTags) - Parameters:
amiTags
- The tags to apply to AMIs distributed to this Region.- Returns:
this
-
amiTags
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder amiTags(IResolvable amiTags) - Parameters:
amiTags
- The tags to apply to AMIs distributed to this Region.- Returns:
this
-
description
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder description(String description) Sets the value ofCfnDistributionConfiguration.AmiDistributionConfigurationProperty.getDescription()
- Parameters:
description
- The description of the AMI distribution configuration. Minimum and maximum length are in characters.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder kmsKeyId(String kmsKeyId) - Parameters:
kmsKeyId
- The Amazon Resource Name (ARN) that uniquely identifies the KMS key used to encrypt the distributed image. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .- Returns:
this
-
launchPermissionConfiguration
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder launchPermissionConfiguration(IResolvable launchPermissionConfiguration) Sets the value ofCfnDistributionConfiguration.AmiDistributionConfigurationProperty.getLaunchPermissionConfiguration()
- Parameters:
launchPermissionConfiguration
- Launch permissions can be used to configure which AWS account s can use the AMI to launch instances.- Returns:
this
-
launchPermissionConfiguration
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder launchPermissionConfiguration(CfnDistributionConfiguration.LaunchPermissionConfigurationProperty launchPermissionConfiguration) Sets the value ofCfnDistributionConfiguration.AmiDistributionConfigurationProperty.getLaunchPermissionConfiguration()
- Parameters:
launchPermissionConfiguration
- Launch permissions can be used to configure which AWS account s can use the AMI to launch instances.- Returns:
this
-
name
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder name(String name) - Parameters:
name
- The name of the output AMI.- Returns:
this
-
targetAccountIds
@Stability(Stable) public CfnDistributionConfiguration.AmiDistributionConfigurationProperty.Builder targetAccountIds(List<String> targetAccountIds) Sets the value ofCfnDistributionConfiguration.AmiDistributionConfigurationProperty.getTargetAccountIds()
- Parameters:
targetAccountIds
- The ID of an account to which you want to distribute an image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistributionConfiguration.AmiDistributionConfigurationProperty>
- Returns:
- a new instance of
CfnDistributionConfiguration.AmiDistributionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-