# InstanceConfigurationProperty

Defines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 instanceConfigurationProperty: imagebuilder.CfnContainerRecipe.InstanceConfigurationProperty = {
  blockDeviceMappings: [{
    deviceName: 'deviceName',
    ebs: {
      deleteOnTermination: false,
      encrypted: false,
      iops: 123,
      kmsKeyId: 'kmsKeyId',
      snapshotId: 'snapshotId',
      throughput: 123,
      volumeSize: 123,
      volumeType: 'volumeType',
    },
    noDevice: 'noDevice',
    virtualName: 'virtualName',
  }],
  image: 'image',
};
```

## Properties

- `blockDeviceMappings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContainerRecipe.InstanceBlockDeviceMappingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnContainerRecipe.InstanceBlockDeviceMappingProperty.html)[] — Defines the block devices to attach for building an instance from this Image Builder AMI.

- `image`: string — The base image for a container build and test instance.

  This can contain an AMI ID or it can specify an AWS Systems Manager (SSM) Parameter Store Parameter, prefixed by `ssm:` , followed by the parameter name or ARN.

  If not specified, Image Builder uses the appropriate ECS-optimized AMI as a base image.
