interface ContainerTaskConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IoTSiteWise.CfnTask.ContainerTaskConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnTask_ContainerTaskConfigurationProperty |
Java | software.amazon.awscdk.services.iotsitewise.CfnTask.ContainerTaskConfigurationProperty |
Python | aws_cdk.aws_iotsitewise.CfnTask.ContainerTaskConfigurationProperty |
TypeScript | aws-cdk-lib » aws_iotsitewise » CfnTask » ContainerTaskConfigurationProperty |
Configuration for running a custom container image on managed compute.
Example
// 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
| Name | Type | Description |
|---|---|---|
| ecr | string | The Amazon ECR image URI for the task container. |
| processing | string | The processing type for compute resources. |
| processing | string | The processing unit allocation that determines vCPU, memory, and GPU resources. |
| task | string | The ARN of the IAM role that grants the containerized workload permissions to access AWS resources. |
| command? | string[] | The command to execute in the container. |
| environment | IResolvable | { [string]: string } | A map of environment variable key-value pairs. |
| ephemeral | IResolvable | Ephemeral | Configuration for ephemeral storage attached to the container task. |
| mounts? | IResolvable | (IResolvable | Mount)[] | Mounts attached to the container filesystem. |
| timeout | number | The timeout in seconds for task execution. |
ecrUri
Type:
string
The Amazon ECR image URI for the task container.
processingType
Type:
string
The processing type for compute resources.
processingUnit
Type:
string
The processing unit allocation that determines vCPU, memory, and GPU resources.
taskExecutionRole
Type:
string
The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.
command?
Type:
string[]
(optional)
The command to execute in the container.
environmentVariables?
Type:
IResolvable | { [string]: string }
(optional)
A map of environment variable key-value pairs.
ephemeralStorageConfiguration?
Type:
IResolvable | Ephemeral
(optional)
Configuration for ephemeral storage attached to the container task.
mounts?
Type:
IResolvable | (IResolvable | Mount)[]
(optional)
Mounts attached to the container filesystem.
Each mount exposes an external data source as a local directory inside the container.
timeoutSeconds?
Type:
number
(optional)
The timeout in seconds for task execution.
Default: 3600 (1 hour).

.NET
Go
Java
Python
TypeScript