Class CfnDistributionConfiguration.DistributionProperty
The distribution configuration distribution defines the settings for a specific Region in the Distribution Configuration.
Inheritance
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.AWS.ImageBuilder.dll
Syntax (csharp)
public class DistributionProperty : Object, CfnDistributionConfiguration.IDistributionProperty
Syntax (vb)
Public Class DistributionProperty
Inherits Object
Implements CfnDistributionConfiguration.IDistributionProperty
Remarks
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:
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var amiDistributionConfiguration;
var containerDistributionConfiguration;
var distributionProperty = new DistributionProperty {
Region = "region",
// the properties below are optional
AmiDistributionConfiguration = amiDistributionConfiguration,
ContainerDistributionConfiguration = containerDistributionConfiguration,
FastLaunchConfigurations = new [] { new FastLaunchConfigurationProperty {
AccountId = "accountId",
Enabled = false,
LaunchTemplate = new FastLaunchLaunchTemplateSpecificationProperty {
LaunchTemplateId = "launchTemplateId",
LaunchTemplateName = "launchTemplateName",
LaunchTemplateVersion = "launchTemplateVersion"
},
MaxParallelLaunches = 123,
SnapshotConfiguration = new FastLaunchSnapshotConfigurationProperty {
TargetResourceCount = 123
}
} },
LaunchTemplateConfigurations = new [] { new LaunchTemplateConfigurationProperty {
AccountId = "accountId",
LaunchTemplateId = "launchTemplateId",
SetDefaultVersion = false
} },
LicenseConfigurationArns = new [] { "licenseConfigurationArns" }
};
Synopsis
Constructors
DistributionProperty() |
Properties
AmiDistributionConfiguration | The specific AMI settings, such as launch permissions and AMI tags. |
ContainerDistributionConfiguration | Container distribution settings for encryption, licensing, and sharing in a specific Region. |
FastLaunchConfigurations |
|
LaunchTemplateConfigurations | A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts. |
LicenseConfigurationArns | The License Manager Configuration to associate with the AMI in the specified Region. |
Region | The target Region for the Distribution Configuration. |
Constructors
DistributionProperty()
public DistributionProperty()
Properties
AmiDistributionConfiguration
The specific AMI settings, such as launch permissions and AMI tags.
public object AmiDistributionConfiguration { get; set; }
Property Value
System.Object
Remarks
ContainerDistributionConfiguration
Container distribution settings for encryption, licensing, and sharing in a specific Region.
public object ContainerDistributionConfiguration { get; set; }
Property Value
System.Object
Remarks
FastLaunchConfigurations
CfnDistributionConfiguration.DistributionProperty.FastLaunchConfigurations
.
public object FastLaunchConfigurations { get; set; }
Property Value
System.Object
Remarks
LaunchTemplateConfigurations
A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.
public object LaunchTemplateConfigurations { get; set; }
Property Value
System.Object
Remarks
LicenseConfigurationArns
The License Manager Configuration to associate with the AMI in the specified Region.
public string[] LicenseConfigurationArns { get; set; }
Property Value
System.String[]
Remarks
Region
The target Region for the Distribution Configuration.
public string Region { get; set; }
Property Value
System.String