# ContainerTaskConfigurationProperty

Configuration for running a custom container image on managed compute.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const containerTaskConfigurationProperty: iotsitewise.CfnTask.ContainerTaskConfigurationProperty = {
  ecrUri: 'ecrUri',
  processingType: 'processingType',
  processingUnit: 'processingUnit',
  taskExecutionRole: 'taskExecutionRole',

  // the properties below are optional
  command: ['command'],
  environmentVariables: {
    environmentVariablesKey: 'environmentVariables',
  },
  ephemeralStorageConfiguration: {
    storageClass: 'storageClass',
    storageSizeInGiB: 123,
  },
  mounts: [{
    name: 'name',
    relativePath: 'relativePath',
    source: {
      s3AccessPoint: {
        accessPointArn: 'accessPointArn',

        // the properties below are optional
        prefix: 'prefix',
      },
    },
    storageType: 'storageType',
  }],
  timeoutSeconds: 123,
};
```

## Properties

- `command`: string[] — The command to execute in the container.

- `ecrUri`: string (required) — The Amazon ECR image URI for the task container.

- `environmentVariables`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — A map of environment variable key-value pairs.

- `ephemeralStorageConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTask.EphemeralStorageConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotsitewise.CfnTask.EphemeralStorageConfigurationProperty.html) — Configuration for ephemeral storage attached to the container task.

- `mounts`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTask.MountProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotsitewise.CfnTask.MountProperty.html)[] — Mounts attached to the container filesystem.

  Each mount exposes an external data source as a local directory inside the container.

- `processingType`: string (required) — The processing type for compute resources.

- `processingUnit`: string (required) — The processing unit allocation that determines vCPU, memory, and GPU resources.

- `taskExecutionRole`: string (required) — The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.

- `timeoutSeconds`: number — The timeout in seconds for task execution.

  Default: 3600 (1 hour).
