@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.749Z") @Stability(value=Stable) public interface TaskDefinitionAttributes extends software.amazon.jsii.JsiiSerializable, CommonTaskDefinitionAttributes
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;
TaskDefinitionAttributes taskDefinitionAttributes = TaskDefinitionAttributes.builder()
.taskDefinitionArn("taskDefinitionArn")
// the properties below are optional
.compatibility(Compatibility.EC2)
.networkMode(NetworkMode.NONE)
.taskRole(role)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TaskDefinitionAttributes.Builder
A builder for
TaskDefinitionAttributes |
static class |
TaskDefinitionAttributes.Jsii$Proxy
An implementation for
TaskDefinitionAttributes |
| Modifier and Type | Method and Description |
|---|---|
static TaskDefinitionAttributes.Builder |
builder() |
default Compatibility |
getCompatibility()
What launch types this task definition should be compatible with.
|
getNetworkMode, getTaskDefinitionArn, getTaskRole@Stability(value=Stable) @Nullable default Compatibility getCompatibility()
Default: Compatibility.EC2_AND_FARGATE
@Stability(value=Stable) static TaskDefinitionAttributes.Builder builder()
builder in interface CommonTaskDefinitionAttributesTaskDefinitionAttributes.Builder of TaskDefinitionAttributesCopyright © 2022. All rights reserved.