# LaunchPermissionConfigurationProperty

Describes the configuration for a launch permission.

The launch permission modification request is sent to the [Amazon EC2 ModifyImageAttribute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html) 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](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `organizationalUnitArns`: 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](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html) .

- `organizationArns`: string[] — The ARN for an AWS Organization that you want to share your AMI with.

  For more information, see [What is AWS Organizations ?](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html) .

- `userGroups`: string[] — The name of the group.

- `userIds`: string[] — The AWS account ID.
