# DistributionProperty

The distribution configuration distribution defines the settings for a specific Region in the Distribution Configuration.

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:

- amiDistributionConfiguration
- containerDistributionConfiguration

- Source: Generated code
- Type last changed: v2.195.0 · 7 May 2025

## 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';

declare const amiDistributionConfiguration: any;
declare const containerDistributionConfiguration: any;
const distributionProperty: imagebuilder.CfnDistributionConfiguration.DistributionProperty = {
  region: 'region',

  // the properties below are optional
  amiDistributionConfiguration: amiDistributionConfiguration,
  containerDistributionConfiguration: containerDistributionConfiguration,
  fastLaunchConfigurations: [{
    accountId: 'accountId',
    enabled: false,
    launchTemplate: {
      launchTemplateId: 'launchTemplateId',
      launchTemplateName: 'launchTemplateName',
      launchTemplateVersion: 'launchTemplateVersion',
    },
    maxParallelLaunches: 123,
    snapshotConfiguration: {
      targetResourceCount: 123,
    },
  }],
  launchTemplateConfigurations: [{
    accountId: 'accountId',
    launchTemplateId: 'launchTemplateId',
    setDefaultVersion: false,
  }],
  licenseConfigurationArns: ['licenseConfigurationArns'],
  ssmParameterConfigurations: [{
    parameterName: 'parameterName',

    // the properties below are optional
    amiAccountId: 'amiAccountId',
    dataType: 'dataType',
  }],
};
```

## Properties

- `amiDistributionConfiguration`: any — The specific AMI settings, such as launch permissions and AMI tags.

  For details, see example schema below.

- `containerDistributionConfiguration`: any — Container distribution settings for encryption, licensing, and sharing in a specific Region.

  For details, see example schema below.

- `fastLaunchConfigurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDistributionConfiguration.FastLaunchConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnDistributionConfiguration.FastLaunchConfigurationProperty.html)[] — The Windows faster-launching configurations to use for AMI distribution.

- `launchTemplateConfigurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDistributionConfiguration.LaunchTemplateConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.html)[] — A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.

- `licenseConfigurationArns`: string[] — The License Manager Configuration to associate with the AMI in the specified Region.

  For more information, see the [LicenseConfiguration API](https://docs.aws.amazon.com/license-manager/latest/APIReference/API_LicenseConfiguration.html) .

- `region`: string (required) — The target Region for the Distribution Configuration.

  For example, `eu-west-1` .

- `ssmParameterConfigurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDistributionConfiguration.SsmParameterConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnDistributionConfiguration.SsmParameterConfigurationProperty.html)[] — Contains settings to update AWS Systems Manager (SSM) Parameter Store Parameters with output AMI IDs from the build by target Region.
