@Stability(value=Stable)
public static interface CfnDistributionConfiguration.DistributionProperty
extends software.amazon.jsii.JsiiSerializable
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)
.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"))
.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 Object |
getAmiDistributionConfiguration()
The specific AMI settings, such as launch permissions and AMI tags.
|
default Object |
getContainerDistributionConfiguration()
Container distribution settings for encryption, licensing, and sharing in a specific Region.
|
default Object |
getFastLaunchConfigurations()
`CfnDistributionConfiguration.DistributionProperty.FastLaunchConfigurations`.
|
default Object |
getLaunchTemplateConfigurations()
A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.
|
default List<String> |
getLicenseConfigurationArns()
The License Manager Configuration to associate with the AMI in the specified Region.
|
String |
getRegion()
The target Region for the Distribution Configuration.
|
@Stability(value=Stable) @NotNull String getRegion()
For example, eu-west-1 .
@Stability(value=Stable) @Nullable default Object getAmiDistributionConfiguration()
For details, see example schema below.
@Stability(value=Stable) @Nullable default Object getContainerDistributionConfiguration()
For details, see example schema below.
@Stability(value=Stable) @Nullable default Object getFastLaunchConfigurations()
@Stability(value=Stable) @Nullable default Object getLaunchTemplateConfigurations()
@Stability(value=Stable) @Nullable default List<String> getLicenseConfigurationArns()
For more information, see the LicenseConfiguration API .
@Stability(value=Stable) static CfnDistributionConfiguration.DistributionProperty.Builder builder()
Copyright © 2022. All rights reserved.