@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.676Z") @Stability(value=Stable) public interface CommonTaskDefinitionAttributes extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommonTaskDefinitionAttributes.Builder
A builder for
CommonTaskDefinitionAttributes |
static class |
CommonTaskDefinitionAttributes.Jsii$Proxy
An implementation for
CommonTaskDefinitionAttributes |
| Modifier and Type | Method and Description |
|---|---|
static CommonTaskDefinitionAttributes.Builder |
builder() |
default NetworkMode |
getNetworkMode()
The networking mode to use for the containers in the task.
|
String |
getTaskDefinitionArn()
The arn of the task definition.
|
default IRole |
getTaskRole()
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
|
@Stability(value=Stable) @NotNull String getTaskDefinitionArn()
@Stability(value=Stable) @Nullable default NetworkMode getNetworkMode()
Default: Network mode cannot be provided to the imported task.
@Stability(value=Stable) @Nullable default IRole getTaskRole()
Default: Permissions cannot be granted to the imported task.
@Stability(value=Stable) static CommonTaskDefinitionAttributes.Builder builder()
Copyright © 2022. All rights reserved.