Interface CfnTask.ContainerTaskConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTask.ContainerTaskConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnTask
@Stability(Stable)
public static interface CfnTask.ContainerTaskConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.iotsitewise.*;
ContainerTaskConfigurationProperty containerTaskConfigurationProperty = ContainerTaskConfigurationProperty.builder()
.ecrUri("ecrUri")
.processingType("processingType")
.processingUnit("processingUnit")
.taskExecutionRole("taskExecutionRole")
// the properties below are optional
.command(List.of("command"))
.environmentVariables(Map.of(
"environmentVariablesKey", "environmentVariables"))
.timeoutSeconds(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTask.ContainerTaskConfigurationPropertystatic final classAn implementation forCfnTask.ContainerTaskConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The command to execute in the container.The Amazon ECR image URI for the task container.default ObjectA map of environment variable key-value pairs.The processing type for compute resources.The processing unit allocation that determines vCPU, memory, and GPU resources.The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.default NumberThe timeout in seconds for task execution.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEcrUri
The Amazon ECR image URI for the task container.- See Also:
-
getProcessingType
The processing type for compute resources.- See Also:
-
getProcessingUnit
The processing unit allocation that determines vCPU, memory, and GPU resources.- See Also:
-
getTaskExecutionRole
The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.- See Also:
-
getCommand
The command to execute in the container.- See Also:
-
getEnvironmentVariables
A map of environment variable key-value pairs.Returns union: either
IResolvableor Mapinvalid input: '<'String,String>- See Also:
-
getTimeoutSeconds
The timeout in seconds for task execution.Default: 3600 (1 hour).
- See Also:
-
builder
-