LaunchPermissionConfigurationProperty Struct
Describes the configuration for a launch permission.
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 .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const launchPermissionConfigurationProperty: imagebuilder.CfnDistributionConfiguration.LaunchPermissionConfigurationProperty = {
organizationalUnitArns: ['organizationalUnitArns'],
organizationArns: ['organizationArns'],
userGroups: ['userGroups'],
userIds: ['userIds'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_imagebuilder as imagebuilder
launch_permission_configuration_property = imagebuilder.CfnDistributionConfiguration.LaunchPermissionConfigurationProperty(
organizational_unit_arns=["organizationalUnitArns"],
organization_arns=["organizationArns"],
user_groups=["userGroups"],
user_ids=["userIds"]
)
java
// 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.*;
LaunchPermissionConfigurationProperty launchPermissionConfigurationProperty = LaunchPermissionConfigurationProperty.builder()
.organizationalUnitArns(List.of("organizationalUnitArns"))
.organizationArns(List.of("organizationArns"))
.userGroups(List.of("userGroups"))
.userIds(List.of("userIds"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
launchPermissionConfigurationProperty := &LaunchPermissionConfigurationProperty{
OrganizationalUnitArns: []*string{
jsii.String("organizationalUnitArns"),
},
OrganizationArns: []*string{
jsii.String("organizationArns"),
},
UserGroups: []*string{
jsii.String("userGroups"),
},
UserIds: []*string{
jsii.String("userIds"),
},
}
Properties
organizationalUnitArnsoptionalstring[]organizational_unit_arnsoptionaltyping.List[str]organizationalUnitArnsoptionalList<String>OrganizationalUnitArnsoptionalstring[]OrganizationalUnitArnsoptional*[]*string #The ARN for an AWS Organizations organizational unit (OU) that you want to share your AMI with.
For more information about key concepts for AWS Organizations , see AWS Organizations terminology and concepts .
organizationArnsoptionalstring[]organization_arnsoptionaltyping.List[str]organizationArnsoptionalList<String>OrganizationArnsoptionalstring[]OrganizationArnsoptional*[]*string #The ARN for an AWS Organization that you want to share your AMI with.
For more information, see What is AWS Organizations ? .
userGroupsoptionalstring[]user_groupsoptionaltyping.List[str]userGroupsoptionalList<String>UserGroupsoptionalstring[]UserGroupsoptional*[]*string #The name of the group.
userIdsoptionalstring[]user_idsoptionaltyping.List[str]userIdsoptionalList<String>UserIdsoptionalstring[]UserIdsoptional*[]*string #The AWS account ID.