Package com.pulumi.aws.ecs.inputs
Class TaskDefinitionState
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.ecs.inputs.TaskDefinitionState
-
public final class TaskDefinitionState extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskDefinitionState.Builder
-
Field Summary
Fields Modifier and Type Field Description static TaskDefinitionStateEmpty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<com.pulumi.core.Output<java.lang.String>>arn()java.util.Optional<com.pulumi.core.Output<java.lang.String>>arnWithoutRevision()static TaskDefinitionState.Builderbuilder()static TaskDefinitionState.Builderbuilder(TaskDefinitionState defaults)java.util.Optional<com.pulumi.core.Output<java.lang.String>>containerDefinitions()java.util.Optional<com.pulumi.core.Output<java.lang.String>>cpu()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>enableFaultInjection()java.util.Optional<com.pulumi.core.Output<TaskDefinitionEphemeralStorageArgs>>ephemeralStorage()java.util.Optional<com.pulumi.core.Output<java.lang.String>>executionRoleArn()java.util.Optional<com.pulumi.core.Output<java.lang.String>>family()java.util.Optional<com.pulumi.core.Output<java.lang.String>>ipcMode()java.util.Optional<com.pulumi.core.Output<java.lang.String>>memory()java.util.Optional<com.pulumi.core.Output<java.lang.String>>networkMode()java.util.Optional<com.pulumi.core.Output<java.lang.String>>pidMode()java.util.Optional<com.pulumi.core.Output<java.util.List<TaskDefinitionPlacementConstraintArgs>>>placementConstraints()java.util.Optional<com.pulumi.core.Output<TaskDefinitionProxyConfigurationArgs>>proxyConfiguration()java.util.Optional<com.pulumi.core.Output<java.lang.String>>region()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>requiresCompatibilities()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>revision()java.util.Optional<com.pulumi.core.Output<TaskDefinitionRuntimePlatformArgs>>runtimePlatform()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>skipDestroy()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tags()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tagsAll()java.util.Optional<com.pulumi.core.Output<java.lang.String>>taskRoleArn()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>trackLatest()java.util.Optional<com.pulumi.core.Output<java.util.List<TaskDefinitionVolumeArgs>>>volumes()
-
-
-
Field Detail
-
Empty
public static final TaskDefinitionState Empty
-
-
Method Detail
-
arn
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arn()
- Returns:
- Full ARN of the Task Definition (including both `family` and `revision`).
-
arnWithoutRevision
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arnWithoutRevision()
- Returns:
- ARN of the Task Definition with the trailing `revision` removed. This may be useful for situations where the latest task definition is always desired. If a revision isn't specified, the latest ACTIVE revision is used. See the [AWS documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_StartTask.html#ECS-StartTask-request-taskDefinition) for details.
-
containerDefinitions
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> containerDefinitions()
- Returns:
- List of valid [container definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
-
cpu
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> cpu()
- Returns:
- Number of CPU units used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
-
enableFaultInjection
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enableFaultInjection()
- Returns:
- Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is `false`.
-
ephemeralStorage
public java.util.Optional<com.pulumi.core.Output<TaskDefinitionEphemeralStorageArgs>> ephemeralStorage()
- Returns:
- Amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage.
-
executionRoleArn
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> executionRoleArn()
- Returns:
- ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
-
family
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> family()
- Returns:
- Unique name for your task definition. The following arguments are optional:
-
ipcMode
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ipcMode()
- Returns:
- IPC resource namespace to be used for the containers in the task. Valid values: `host`, `task`, `none`.
-
memory
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> memory()
- Returns:
- Amount (in MiB) of memory used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
-
networkMode
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> networkMode()
- Returns:
- Docker networking mode to use for the containers in the task. Valid values: `awsvpc`, `bridge`, `host`, and `none`.
-
pidMode
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> pidMode()
- Returns:
- Process namespace to use for the containers in the task. Valid values: host` , `task`.
-
placementConstraints
public java.util.Optional<com.pulumi.core.Output<java.util.List<TaskDefinitionPlacementConstraintArgs>>> placementConstraints()
- Returns:
- Configuration block for rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`. Detailed below.
-
proxyConfiguration
public java.util.Optional<com.pulumi.core.Output<TaskDefinitionProxyConfigurationArgs>> proxyConfiguration()
- Returns:
- Configuration block for the App Mesh proxy. Detailed below.
-
region
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
requiresCompatibilities
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> requiresCompatibilities()
- Returns:
- Set of launch types required by the task. Valid values: `EC2`, `EXTERNAL`, `FARGATE`, `MANAGED_INSTANCES`.
-
revision
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> revision()
- Returns:
- Revision of the task in a particular family.
-
runtimePlatform
public java.util.Optional<com.pulumi.core.Output<TaskDefinitionRuntimePlatformArgs>> runtimePlatform()
- Returns:
- Configuration block for runtimePlatform that containers in your task may use.
-
skipDestroy
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> skipDestroy()
- Returns:
- Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is `false`.
-
tags
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
taskRoleArn
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> taskRoleArn()
- Returns:
- ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
-
trackLatest
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> trackLatest()
- Returns:
- Whether should track latest `ACTIVE` task definition on AWS or the one created with the resource stored in state. Default is `false`. Useful in the event the task definition is modified outside of this resource.
-
volumes
public java.util.Optional<com.pulumi.core.Output<java.util.List<TaskDefinitionVolumeArgs>>> volumes()
- Returns:
- Repeatable configuration block for volumes that containers in your task may use. Detailed below. > **NOTE:** Proper escaping is required for JSON field values containing quotes (`"`) such as `environment` values. If directly setting the JSON, they should be escaped as `\"` in the JSON, e.g., `"value": "I \"love\" escaped quotes"`. If using a variable value, they should be escaped as `\\\"` in the variable, e.g., `value = "I \\\"love\\\" escaped quotes"` in the variable and `"value": "${var.myvariable}"` in the JSON. > **Note:** Fault injection only works with tasks using the `awsvpc` or `host` network modes. Fault injection isn't available on Windows.
-
builder
public static TaskDefinitionState.Builder builder()
-
builder
public static TaskDefinitionState.Builder builder(TaskDefinitionState defaults)
-
-