Interface Ec2TaskDefinitionAttributes
- All Superinterfaces:
CommonTaskDefinitionAttributes,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Ec2TaskDefinitionAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.938Z")
@Stability(Stable)
public interface Ec2TaskDefinitionAttributes
extends software.amazon.jsii.JsiiSerializable, CommonTaskDefinitionAttributes
Attributes used to import an existing EC2 task definition.
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;
Ec2TaskDefinitionAttributes ec2TaskDefinitionAttributes = Ec2TaskDefinitionAttributes.builder()
.taskDefinitionArn("taskDefinitionArn")
// the properties below are optional
.executionRole(role)
.networkMode(NetworkMode.NONE)
.taskRole(role)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEc2TaskDefinitionAttributesstatic final classAn implementation forEc2TaskDefinitionAttributes -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.ecs.CommonTaskDefinitionAttributes
getExecutionRole, getNetworkMode, getTaskDefinitionArn, getTaskRoleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
-