Interface CfnDistributionConfiguration.DistributionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistributionConfiguration.DistributionProperty.Jsii$Proxy
- Enclosing class:
CfnDistributionConfiguration
You must specify whether the distribution is for an AMI or a container image. To do so, include exactly one of the following data types for your distribution:
- amiDistributionConfiguration
- containerDistributionConfiguration
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;
DistributionProperty distributionProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDistributionConfiguration.DistributionPropertystatic final classAn implementation forCfnDistributionConfiguration.DistributionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe specific AMI settings, such as launch permissions and AMI tags.default ObjectContainer distribution settings for encryption, licensing, and sharing in a specific Region.default ObjectThe Windows faster-launching configurations to use for AMI distribution.default ObjectA group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.The License Manager Configuration to associate with the AMI in the specified Region.The target Region for the Distribution Configuration.default ObjectContains settings to update AWS Systems Manager (SSM) Parameter Store Parameters with output AMI IDs from the build by target Region.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRegion
The target Region for the Distribution Configuration.For example,
eu-west-1.- See Also:
-
getAmiDistributionConfiguration
The specific AMI settings, such as launch permissions and AMI tags.For details, see example schema below.
- See Also:
-
getContainerDistributionConfiguration
Container distribution settings for encryption, licensing, and sharing in a specific Region.For details, see example schema below.
- See Also:
-
getFastLaunchConfigurations
The Windows faster-launching configurations to use for AMI distribution.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDistributionConfiguration.FastLaunchConfigurationProperty>- See Also:
-
getLaunchTemplateConfigurations
A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDistributionConfiguration.LaunchTemplateConfigurationProperty>- See Also:
-
getLicenseConfigurationArns
The License Manager Configuration to associate with the AMI in the specified Region.For more information, see the LicenseConfiguration API .
- See Also:
-
getSsmParameterConfigurations
Contains settings to update AWS Systems Manager (SSM) Parameter Store Parameters with output AMI IDs from the build by target Region.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDistributionConfiguration.SsmParameterConfigurationProperty>- See Also:
-
builder
-