@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-15T10:03:47.639Z") @Stability(value=Stable) public interface CfnTaskDefinitionProps 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.*;
CfnTaskDefinitionProps cfnTaskDefinitionProps = CfnTaskDefinitionProps.builder()
.containerDefinitions(List.of(ContainerDefinitionProperty.builder()
.command(List.of("command"))
.cpu(123)
.dependsOn(List.of(ContainerDependencyProperty.builder()
.condition("condition")
.containerName("containerName")
.build()))
.disableNetworking(false)
.dnsSearchDomains(List.of("dnsSearchDomains"))
.dnsServers(List.of("dnsServers"))
.dockerLabels(Map.of(
"dockerLabelsKey", "dockerLabels"))
.dockerSecurityOptions(List.of("dockerSecurityOptions"))
.entryPoint(List.of("entryPoint"))
.environment(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.environmentFiles(List.of(EnvironmentFileProperty.builder()
.type("type")
.value("value")
.build()))
.essential(false)
.extraHosts(List.of(HostEntryProperty.builder()
.hostname("hostname")
.ipAddress("ipAddress")
.build()))
.firelensConfiguration(FirelensConfigurationProperty.builder()
.options(Map.of(
"optionsKey", "options"))
.type("type")
.build())
.healthCheck(HealthCheckProperty.builder()
.command(List.of("command"))
.interval(123)
.retries(123)
.startPeriod(123)
.timeout(123)
.build())
.hostname("hostname")
.image("image")
.interactive(false)
.links(List.of("links"))
.linuxParameters(LinuxParametersProperty.builder()
.capabilities(KernelCapabilitiesProperty.builder()
.add(List.of("add"))
.drop(List.of("drop"))
.build())
.devices(List.of(DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build()))
.initProcessEnabled(false)
.maxSwap(123)
.sharedMemorySize(123)
.swappiness(123)
.tmpfs(List.of(TmpfsProperty.builder()
.size(123)
// the properties below are optional
.containerPath("containerPath")
.mountOptions(List.of("mountOptions"))
.build()))
.build())
.logConfiguration(LogConfigurationProperty.builder()
.logDriver("logDriver")
// the properties below are optional
.options(Map.of(
"optionsKey", "options"))
.secretOptions(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.build())
.memory(123)
.memoryReservation(123)
.mountPoints(List.of(MountPointProperty.builder()
.containerPath("containerPath")
.readOnly(false)
.sourceVolume("sourceVolume")
.build()))
.name("name")
.portMappings(List.of(PortMappingProperty.builder()
.containerPort(123)
.hostPort(123)
.protocol("protocol")
.build()))
.privileged(false)
.pseudoTerminal(false)
.readonlyRootFilesystem(false)
.repositoryCredentials(RepositoryCredentialsProperty.builder()
.credentialsParameter("credentialsParameter")
.build())
.resourceRequirements(List.of(ResourceRequirementProperty.builder()
.type("type")
.value("value")
.build()))
.secrets(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.startTimeout(123)
.stopTimeout(123)
.systemControls(List.of(SystemControlProperty.builder()
.namespace("namespace")
.value("value")
.build()))
.ulimits(List.of(UlimitProperty.builder()
.hardLimit(123)
.name("name")
.softLimit(123)
.build()))
.user("user")
.volumesFrom(List.of(VolumeFromProperty.builder()
.readOnly(false)
.sourceContainer("sourceContainer")
.build()))
.workingDirectory("workingDirectory")
.build()))
.cpu("cpu")
.ephemeralStorage(EphemeralStorageProperty.builder()
.sizeInGiB(123)
.build())
.executionRoleArn("executionRoleArn")
.family("family")
.inferenceAccelerators(List.of(InferenceAcceleratorProperty.builder()
.deviceName("deviceName")
.deviceType("deviceType")
.build()))
.ipcMode("ipcMode")
.memory("memory")
.networkMode("networkMode")
.pidMode("pidMode")
.placementConstraints(List.of(TaskDefinitionPlacementConstraintProperty.builder()
.type("type")
// the properties below are optional
.expression("expression")
.build()))
.proxyConfiguration(ProxyConfigurationProperty.builder()
.containerName("containerName")
// the properties below are optional
.proxyConfigurationProperties(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.type("type")
.build())
.requiresCompatibilities(List.of("requiresCompatibilities"))
.runtimePlatform(RuntimePlatformProperty.builder()
.cpuArchitecture("cpuArchitecture")
.operatingSystemFamily("operatingSystemFamily")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskRoleArn("taskRoleArn")
.volumes(List.of(VolumeProperty.builder()
.dockerVolumeConfiguration(DockerVolumeConfigurationProperty.builder()
.autoprovision(false)
.driver("driver")
.driverOpts(Map.of(
"driverOptsKey", "driverOpts"))
.labels(Map.of(
"labelsKey", "labels"))
.scope("scope")
.build())
.efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(HostVolumePropertiesProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskDefinitionProps.Builder
A builder for
CfnTaskDefinitionProps |
static class |
CfnTaskDefinitionProps.Jsii$Proxy
An implementation for
CfnTaskDefinitionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskDefinitionProps.Builder |
builder() |
default Object |
getContainerDefinitions()
`AWS::ECS::TaskDefinition.ContainerDefinitions`.
|
default String |
getCpu()
`AWS::ECS::TaskDefinition.Cpu`.
|
default Object |
getEphemeralStorage()
`AWS::ECS::TaskDefinition.EphemeralStorage`.
|
default String |
getExecutionRoleArn()
`AWS::ECS::TaskDefinition.ExecutionRoleArn`.
|
default String |
getFamily()
`AWS::ECS::TaskDefinition.Family`.
|
default Object |
getInferenceAccelerators()
`AWS::ECS::TaskDefinition.InferenceAccelerators`.
|
default String |
getIpcMode()
`AWS::ECS::TaskDefinition.IpcMode`.
|
default String |
getMemory()
`AWS::ECS::TaskDefinition.Memory`.
|
default String |
getNetworkMode()
`AWS::ECS::TaskDefinition.NetworkMode`.
|
default String |
getPidMode()
`AWS::ECS::TaskDefinition.PidMode`.
|
default Object |
getPlacementConstraints()
`AWS::ECS::TaskDefinition.PlacementConstraints`.
|
default Object |
getProxyConfiguration()
`AWS::ECS::TaskDefinition.ProxyConfiguration`.
|
default List<String> |
getRequiresCompatibilities()
`AWS::ECS::TaskDefinition.RequiresCompatibilities`.
|
default Object |
getRuntimePlatform()
`AWS::ECS::TaskDefinition.RuntimePlatform`.
|
default List<CfnTag> |
getTags()
`AWS::ECS::TaskDefinition.Tags`.
|
default String |
getTaskRoleArn()
`AWS::ECS::TaskDefinition.TaskRoleArn`.
|
default Object |
getVolumes()
`AWS::ECS::TaskDefinition.Volumes`.
|
@Stability(value=Stable) @Nullable default Object getContainerDefinitions()
@Stability(value=Stable) @Nullable default String getCpu()
@Stability(value=Stable) @Nullable default Object getEphemeralStorage()
@Stability(value=Stable) @Nullable default String getExecutionRoleArn()
@Stability(value=Stable) @Nullable default String getFamily()
@Stability(value=Stable) @Nullable default Object getInferenceAccelerators()
@Stability(value=Stable) @Nullable default String getIpcMode()
@Stability(value=Stable) @Nullable default String getMemory()
@Stability(value=Stable) @Nullable default String getNetworkMode()
@Stability(value=Stable) @Nullable default String getPidMode()
@Stability(value=Stable) @Nullable default Object getPlacementConstraints()
@Stability(value=Stable) @Nullable default Object getProxyConfiguration()
@Stability(value=Stable) @Nullable default List<String> getRequiresCompatibilities()
@Stability(value=Stable) @Nullable default Object getRuntimePlatform()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default String getTaskRoleArn()
@Stability(value=Stable) @Nullable default Object getVolumes()
@Stability(value=Stable) static CfnTaskDefinitionProps.Builder builder()
CfnTaskDefinitionProps.Builder of CfnTaskDefinitionPropsCopyright © 2021. All rights reserved.