Class DistributionConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.DistributionConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DistributionConfiguration>
- Enclosing class:
DistributionConfiguration
@Stability(Experimental)
public static final class DistributionConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<DistributionConfiguration>
(experimental) A fluent builder for
DistributionConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionamiDistributions(List<? extends AmiDistribution> amiDistributions) (experimental) The list of target regions and associated AMI distribution settings where the built AMI will be distributed.build()containerDistributions(List<? extends ContainerDistribution> containerDistributions) (experimental) The list of target regions and associated container distribution settings where the built container will be distributed.description(String description) (experimental) The description of the distribution configuration.distributionConfigurationName(String distributionConfigurationName) (experimental) The name of the distribution configuration.(experimental) The tags to apply to the distribution configuration.
-
Method Details
-
create
@Stability(Experimental) public static DistributionConfiguration.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
DistributionConfiguration.Builder.
-
amiDistributions
@Stability(Experimental) public DistributionConfiguration.Builder amiDistributions(List<? extends AmiDistribution> amiDistributions) (experimental) The list of target regions and associated AMI distribution settings where the built AMI will be distributed.AMI distributions may also be added with the
addAmiDistributionsmethod.Default: None if container distributions are provided. Otherwise, at least one AMI or container distribution must be provided
- Parameters:
amiDistributions- The list of target regions and associated AMI distribution settings where the built AMI will be distributed. This parameter is required.- Returns:
this
-
containerDistributions
@Stability(Experimental) public DistributionConfiguration.Builder containerDistributions(List<? extends ContainerDistribution> containerDistributions) (experimental) The list of target regions and associated container distribution settings where the built container will be distributed.Container distributions may also be added with the
addContainerDistributionsmethod.Default: None if AMI distributions are provided. Otherwise, at least one AMI or container distribution must be provided
- Parameters:
containerDistributions- The list of target regions and associated container distribution settings where the built container will be distributed. This parameter is required.- Returns:
this
-
description
(experimental) The description of the distribution configuration.Default: None
- Parameters:
description- The description of the distribution configuration. This parameter is required.- Returns:
this
-
distributionConfigurationName
@Stability(Experimental) public DistributionConfiguration.Builder distributionConfigurationName(String distributionConfigurationName) (experimental) The name of the distribution configuration.Default: A name is generated
- Parameters:
distributionConfigurationName- The name of the distribution configuration. This parameter is required.- Returns:
this
-
tags
(experimental) The tags to apply to the distribution configuration.Default: None
- Parameters:
tags- The tags to apply to the distribution configuration. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DistributionConfiguration>- Returns:
- a newly built instance of
DistributionConfiguration.
-