Interface CommonTaskDefinitionAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
Ec2TaskDefinitionAttributes
,ExternalTaskDefinitionAttributes
,FargateTaskDefinitionAttributes
,TaskDefinitionAttributes
- All Known Implementing Classes:
CommonTaskDefinitionAttributes.Jsii$Proxy
,Ec2TaskDefinitionAttributes.Jsii$Proxy
,ExternalTaskDefinitionAttributes.Jsii$Proxy
,FargateTaskDefinitionAttributes.Jsii$Proxy
,TaskDefinitionAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:11.631Z")
@Stability(Stable)
public interface CommonTaskDefinitionAttributes
extends software.amazon.jsii.JsiiSerializable
The common task definition attributes used across all types of task definitions.
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.ecs.*; import software.amazon.awscdk.services.iam.*; Role role; CommonTaskDefinitionAttributes commonTaskDefinitionAttributes = CommonTaskDefinitionAttributes.builder() .taskDefinitionArn("taskDefinitionArn") // the properties below are optional .executionRole(role) .networkMode(NetworkMode.NONE) .taskRole(role) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCommonTaskDefinitionAttributes
static final class
An implementation forCommonTaskDefinitionAttributes
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IRole
The IAM role that grants containers and Fargate agents permission to make AWS API calls on your behalf.default NetworkMode
The networking mode to use for the containers in the task.The arn of the task definition.default IRole
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTaskDefinitionArn
The arn of the task definition. -
getExecutionRole
The IAM role that grants containers and Fargate agents permission to make AWS API calls on your behalf.Some tasks do not have an execution role.
Default: - undefined
-
getNetworkMode
The networking mode to use for the containers in the task.Default: Network mode cannot be provided to the imported task.
-
getTaskRole
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.Default: Permissions cannot be granted to the imported task.
-
builder
-