Class CfnDistributionConfiguration.LaunchPermissionConfigurationProperty
Describes the configuration for a launch permission.
Inherited Members
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistributionConfiguration.LaunchPermissionConfigurationProperty : CfnDistributionConfiguration.ILaunchPermissionConfigurationProperty
Syntax (vb)
Public Class CfnDistributionConfiguration.LaunchPermissionConfigurationProperty Implements CfnDistributionConfiguration.ILaunchPermissionConfigurationProperty
Remarks
The launch permission modification request is sent to the Amazon EC2 ModifyImageAttribute API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, set the launch permission authorized accounts to all
. See the examples for making an AMI public at Amazon EC2 ModifyImageAttribute .
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 launchPermissionConfigurationProperty = new LaunchPermissionConfigurationProperty {
OrganizationalUnitArns = new [] { "organizationalUnitArns" },
OrganizationArns = new [] { "organizationArns" },
UserGroups = new [] { "userGroups" },
UserIds = new [] { "userIds" }
};
Synopsis
Constructors
LaunchPermissionConfigurationProperty() | Describes the configuration for a launch permission. |
Properties
OrganizationArns | The ARN for an AWS Organization that you want to share your AMI with. |
OrganizationalUnitArns | The ARN for an AWS Organizations organizational unit (OU) that you want to share your AMI with. |
UserGroups | The name of the group. |
UserIds | The AWS account ID. |
Constructors
LaunchPermissionConfigurationProperty()
Describes the configuration for a launch permission.
public LaunchPermissionConfigurationProperty()
Remarks
The launch permission modification request is sent to the Amazon EC2 ModifyImageAttribute API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, set the launch permission authorized accounts to all
. See the examples for making an AMI public at Amazon EC2 ModifyImageAttribute .
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 launchPermissionConfigurationProperty = new LaunchPermissionConfigurationProperty {
OrganizationalUnitArns = new [] { "organizationalUnitArns" },
OrganizationArns = new [] { "organizationArns" },
UserGroups = new [] { "userGroups" },
UserIds = new [] { "userIds" }
};
Properties
OrganizationArns
The ARN for an AWS Organization that you want to share your AMI with.
public string[]? OrganizationArns { get; set; }
Property Value
string[]
Remarks
For more information, see What is AWS Organizations ? .
OrganizationalUnitArns
The ARN for an AWS Organizations organizational unit (OU) that you want to share your AMI with.
public string[]? OrganizationalUnitArns { get; set; }
Property Value
string[]
Remarks
For more information about key concepts for AWS Organizations , see AWS Organizations terminology and concepts .