Class CfnDistributionConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration
- All Implemented Interfaces:
IInspectable,ITaggable,IDistributionConfigurationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:39.910Z")
@Stability(Stable)
public class CfnDistributionConfiguration
extends CfnResource
implements IInspectable, IDistributionConfigurationRef, ITaggable
A distribution configuration allows you to specify the name and description of your output AMI, authorize other AWS account s to launch the AMI, and replicate the AMI to other AWS Regions .
It also allows you to export the AMI to Amazon S3 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
Object amiDistributionConfiguration;
Object containerDistributionConfiguration;
CfnDistributionConfiguration cfnDistributionConfiguration = CfnDistributionConfiguration.Builder.create(this, "MyCfnDistributionConfiguration")
.distributions(List.of(DistributionProperty.builder()
.region("region")
// the properties below are optional
.amiDistributionConfiguration(amiDistributionConfiguration)
.containerDistributionConfiguration(containerDistributionConfiguration)
.fastLaunchConfigurations(List.of(FastLaunchConfigurationProperty.builder()
.accountId("accountId")
.enabled(false)
.launchTemplate(FastLaunchLaunchTemplateSpecificationProperty.builder()
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.launchTemplateVersion("launchTemplateVersion")
.build())
.maxParallelLaunches(123)
.snapshotConfiguration(FastLaunchSnapshotConfigurationProperty.builder()
.targetResourceCount(123)
.build())
.build()))
.launchTemplateConfigurations(List.of(LaunchTemplateConfigurationProperty.builder()
.accountId("accountId")
.launchTemplateId("launchTemplateId")
.setDefaultVersion(false)
.build()))
.licenseConfigurationArns(List.of("licenseConfigurationArns"))
.ssmParameterConfigurations(List.of(SsmParameterConfigurationProperty.builder()
.parameterName("parameterName")
// the properties below are optional
.amiAccountId("amiAccountId")
.dataType("dataType")
.build()))
.build()))
.name("name")
// the properties below are optional
.description("description")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefine and configure the output AMIs of the pipeline.static final classA fluent builder forCfnDistributionConfiguration.static interfaceContainer distribution settings for encryption, licensing, and sharing in a specific Region.static interfaceThe distribution configuration distribution defines the settings for a specific Region in the Distribution Configuration.static interfaceDefine and configure faster launching for output Windows AMIs.static interfaceIdentifies the launch template that the associated Windows AMI uses for launching an instance when faster launching is enabled.static interfaceConfiguration settings for creating and managing pre-provisioned snapshots for a fast-launch enabled Windows AMI.static interfaceDescribes the configuration for a launch permission.static interfaceIdentifies an Amazon EC2 launch template to use for a specific account.static interfaceConfiguration for a single Parameter in the AWS Systems Manager (SSM) Parameter Store in a given Region.static interfaceThe container repository where the output container image is stored.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.imagebuilder.IDistributionConfigurationRef
IDistributionConfigurationRef.Jsii$Default, IDistributionConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDistributionConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDistributionConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnDistributionConfiguration(software.constructs.Construct scope, String id, CfnDistributionConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) of this distribution configuration.Returns the name of the distribution configuration.The description of this distribution configuration.A reference to a DistributionConfiguration resource.The distributions of this distribution configuration formatted as an array of Distribution objects.getName()The name of this distribution configuration.getTags()Tag Manager which manages the tags for this resource.The tags of this distribution configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of this distribution configuration.voidsetDistributions(List<Object> value) The distributions of this distribution configuration formatted as an array of Distribution objects.voidsetDistributions(IResolvable value) The distributions of this distribution configuration formatted as an array of Distribution objects.voidThe name of this distribution configuration.voidsetTagsRaw(Map<String, String> value) The tags of this distribution configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDistributionConfiguration
protected CfnDistributionConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDistributionConfiguration
protected CfnDistributionConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDistributionConfiguration
@Stability(Stable) public CfnDistributionConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDistributionConfigurationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) of this distribution configuration.The following pattern is applied:
^arn:aws[^:]*:imagebuilder:[^:]+:(?:\d{12}|aws):(?:image-recipe|infrastructure-configuration|distribution-configuration|component|image|image-pipeline)/[a-z0-9-_]+(?:/(?:(?:x|\d+)\.(?:x|\d+)\.(?:x|\d+))(?:/\d+)?)?$. -
getAttrName
Returns the name of the distribution configuration. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDistributionConfigurationRef
@Stability(Stable) @NotNull public DistributionConfigurationReference getDistributionConfigurationRef()A reference to a DistributionConfiguration resource.- Specified by:
getDistributionConfigurationRefin interfaceIDistributionConfigurationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDistributions
The distributions of this distribution configuration formatted as an array of Distribution objects.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDistributionConfiguration.DistributionProperty> -
setDistributions
The distributions of this distribution configuration formatted as an array of Distribution objects. -
setDistributions
The distributions of this distribution configuration formatted as an array of Distribution objects. -
getName
The name of this distribution configuration. -
setName
The name of this distribution configuration. -
getDescription
The description of this distribution configuration. -
setDescription
The description of this distribution configuration. -
getTagsRaw
The tags of this distribution configuration. -
setTagsRaw
The tags of this distribution configuration.
-