public static interface CfnDistributionConfiguration.DistributionProperty
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:
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) .launchTemplateConfigurations(List.of(LaunchTemplateConfigurationProperty.builder() .accountId("accountId") .launchTemplateId("launchTemplateId") .setDefaultVersion(false) .build())) .licenseConfigurationArns(List.of("licenseConfigurationArns")) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnDistributionConfiguration.DistributionProperty.Builder
A builder for
CfnDistributionConfiguration.DistributionProperty |
static class |
CfnDistributionConfiguration.DistributionProperty.Jsii$Proxy
An implementation for
CfnDistributionConfiguration.DistributionProperty |
Modifier and Type | Method and Description |
---|---|
static CfnDistributionConfiguration.DistributionProperty.Builder |
builder() |
default java.lang.Object |
getAmiDistributionConfiguration()
The specific AMI settings, such as launch permissions and AMI tags.
|
default java.lang.Object |
getContainerDistributionConfiguration()
Container distribution settings for encryption, licensing, and sharing in a specific Region.
|
default java.lang.Object |
getLaunchTemplateConfigurations()
A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.
|
default java.util.List<java.lang.String> |
getLicenseConfigurationArns()
The License Manager Configuration to associate with the AMI in the specified Region.
|
java.lang.String |
getRegion()
The target Region for the Distribution Configuration.
|
java.lang.String getRegion()
For example, eu-west-1
.
default java.lang.Object getAmiDistributionConfiguration()
For details, see example schema below.
default java.lang.Object getContainerDistributionConfiguration()
For details, see example schema below.
default java.lang.Object getLaunchTemplateConfigurations()
default java.util.List<java.lang.String> getLicenseConfigurationArns()
For more information, see the LicenseConfiguration API .
static CfnDistributionConfiguration.DistributionProperty.Builder builder()