@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.676Z") @Stability(value=Stable) public interface CommonTaskDefinitionProps extends software.amazon.jsii.JsiiSerializable
For more information, see Task Definition Parameters.
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.*;
ProxyConfiguration proxyConfiguration;
Role role;
CommonTaskDefinitionProps commonTaskDefinitionProps = CommonTaskDefinitionProps.builder()
.executionRole(role)
.family("family")
.proxyConfiguration(proxyConfiguration)
.taskRole(role)
.volumes(List.of(Volume.builder()
.name("name")
// the properties below are optional
.dockerVolumeConfiguration(DockerVolumeConfiguration.builder()
.driver("driver")
.scope(Scope.TASK)
// the properties below are optional
.autoprovision(false)
.driverOpts(Map.of(
"driverOptsKey", "driverOpts"))
.labels(Map.of(
"labelsKey", "labels"))
.build())
.efsVolumeConfiguration(EfsVolumeConfiguration.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfig.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(Host.builder()
.sourcePath("sourcePath")
.build())
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommonTaskDefinitionProps.Builder
A builder for
CommonTaskDefinitionProps |
static class |
CommonTaskDefinitionProps.Jsii$Proxy
An implementation for
CommonTaskDefinitionProps |
| Modifier and Type | Method and Description |
|---|---|
static CommonTaskDefinitionProps.Builder |
builder() |
default IRole |
getExecutionRole()
The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs on your behalf.
|
default String |
getFamily()
The name of a family that this task definition is registered to.
|
default ProxyConfiguration |
getProxyConfiguration()
The configuration details for the App Mesh proxy.
|
default IRole |
getTaskRole()
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
|
default List<Volume> |
getVolumes()
The list of volume definitions for the task.
|
@Stability(value=Stable) @Nullable default IRole getExecutionRole()
The role will be used to retrieve container images from ECR and create CloudWatch log groups.
Default: - An execution role will be automatically created if you use ECR images in your task definition.
@Stability(value=Stable) @Nullable default String getFamily()
A family groups multiple versions of a task definition.
Default: - Automatically generated name.
@Stability(value=Stable) @Nullable default ProxyConfiguration getProxyConfiguration()
Default: - No proxy configuration.
@Stability(value=Stable) @Nullable default IRole getTaskRole()
Default: - A task role is automatically created for you.
@Stability(value=Stable) @Nullable default List<Volume> getVolumes()
For more information, see Task Definition Parameter Volumes.
Default: - No volumes are passed to the Docker daemon on a container instance.
@Stability(value=Stable) static CommonTaskDefinitionProps.Builder builder()
CommonTaskDefinitionProps.Builder of CommonTaskDefinitionPropsCopyright © 2022. All rights reserved.