Class TaskDefinitionState


  • public final class TaskDefinitionState
    extends com.pulumi.resources.ResourceArgs
    • 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.