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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.248Z")
@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 .networkMode(NetworkMode.NONE) .taskRole(role) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCommonTaskDefinitionAttributes
static final class
An implementation forCommonTaskDefinitionAttributes
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
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. -
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
-