ContainerTaskConfigurationProperty Struct
Configuration for running a custom container image on managed compute.
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
commandoptionalstring[]commandoptionaltyping.List[str]commandoptionalList<String>Commandoptionalstring[]Commandoptional*[]*string#The command to execute in the container.
The Amazon ECR image URI for the task container.
environmentVariablesoptionalIResolvable | { [key: string]: string }environment_variablesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]environmentVariablesoptionalIResolvableEnvironmentVariablesoptionalIResolvableEnvironmentVariablesoptionalinterface{}#A map of environment variable key-value pairs.
ephemeralStorageConfigurationoptionalIResolvable | CfnTask.EphemeralStorageConfigurationPropertyephemeral_storage_configurationoptionaltyping.Union[IResolvable, EphemeralStorageConfigurationProperty]ephemeralStorageConfigurationoptionalIResolvableEphemeralStorageConfigurationoptionalIResolvableEphemeralStorageConfigurationoptionalinterface{}#Configuration for ephemeral storage attached to the container task.
mountsoptionalIResolvable | IResolvable | CfnTask.MountProperty[]mountsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MountProperty]]]mountsoptionalIResolvableMountsoptionalIResolvableMountsoptionalinterface{}#Mounts attached to the container filesystem.
Each mount exposes an external data source as a local directory inside the container.
processingTypestringprocessing_typestrprocessingTypeStringProcessingTypestringProcessingType*stringrequired#The processing type for compute resources.
processingUnitstringprocessing_unitstrprocessingUnitStringProcessingUnitstringProcessingUnit*stringrequired#The processing unit allocation that determines vCPU, memory, and GPU resources.
taskExecutionRolestringtask_execution_rolestrtaskExecutionRoleStringTaskExecutionRolestringTaskExecutionRole*stringrequired#The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.
timeoutSecondsoptionalnumbertimeout_secondsoptionalint | floattimeoutSecondsoptionalNumberTimeoutSecondsoptionaldoubleTimeoutSecondsoptional*float64#The timeout in seconds for task execution.
Default: 3600 (1 hour).