Class CfnDistributionConfiguration.DistributionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.DistributionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionConfiguration.DistributionProperty>
- Enclosing interface:
CfnDistributionConfiguration.DistributionProperty
@Stability(Stable)
public static final class CfnDistributionConfiguration.DistributionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionConfiguration.DistributionProperty>
A builder for
CfnDistributionConfiguration.DistributionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamiDistributionConfiguration
(Object amiDistributionConfiguration) build()
Builds the configured instance.containerDistributionConfiguration
(Object containerDistributionConfiguration) fastLaunchConfigurations
(List<? extends Object> fastLaunchConfigurations) fastLaunchConfigurations
(IResolvable fastLaunchConfigurations) launchTemplateConfigurations
(List<? extends Object> launchTemplateConfigurations) launchTemplateConfigurations
(IResolvable launchTemplateConfigurations) licenseConfigurationArns
(List<String> licenseConfigurationArns) Sets the value ofCfnDistributionConfiguration.DistributionProperty.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder region(String region) Sets the value ofCfnDistributionConfiguration.DistributionProperty.getRegion()
- Parameters:
region
- The target Region for the Distribution Configuration. This parameter is required. For example,eu-west-1
.- Returns:
this
-
amiDistributionConfiguration
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder amiDistributionConfiguration(Object amiDistributionConfiguration) Sets the value ofCfnDistributionConfiguration.DistributionProperty.getAmiDistributionConfiguration()
- Parameters:
amiDistributionConfiguration
- The specific AMI settings, such as launch permissions and AMI tags. For details, see example schema below.- Returns:
this
-
containerDistributionConfiguration
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder containerDistributionConfiguration(Object containerDistributionConfiguration) Sets the value ofCfnDistributionConfiguration.DistributionProperty.getContainerDistributionConfiguration()
- Parameters:
containerDistributionConfiguration
- Container distribution settings for encryption, licensing, and sharing in a specific Region. For details, see example schema below.- Returns:
this
-
fastLaunchConfigurations
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder fastLaunchConfigurations(IResolvable fastLaunchConfigurations) - Parameters:
fastLaunchConfigurations
- The Windows faster-launching configurations to use for AMI distribution.- Returns:
this
-
fastLaunchConfigurations
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder fastLaunchConfigurations(List<? extends Object> fastLaunchConfigurations) - Parameters:
fastLaunchConfigurations
- The Windows faster-launching configurations to use for AMI distribution.- Returns:
this
-
launchTemplateConfigurations
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder launchTemplateConfigurations(IResolvable launchTemplateConfigurations) Sets the value ofCfnDistributionConfiguration.DistributionProperty.getLaunchTemplateConfigurations()
- Parameters:
launchTemplateConfigurations
- A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.- Returns:
this
-
launchTemplateConfigurations
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder launchTemplateConfigurations(List<? extends Object> launchTemplateConfigurations) Sets the value ofCfnDistributionConfiguration.DistributionProperty.getLaunchTemplateConfigurations()
- Parameters:
launchTemplateConfigurations
- A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.- Returns:
this
-
licenseConfigurationArns
@Stability(Stable) public CfnDistributionConfiguration.DistributionProperty.Builder licenseConfigurationArns(List<String> licenseConfigurationArns) - Parameters:
licenseConfigurationArns
- The License Manager Configuration to associate with the AMI in the specified Region. For more information, see the LicenseConfiguration API .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistributionConfiguration.DistributionProperty>
- Returns:
- a new instance of
CfnDistributionConfiguration.DistributionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-