Class CapacityTaskState.Builder

  • Enclosing class:
    CapacityTaskState

    public static final class CapacityTaskState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • assetId

        public CapacityTaskState.Builder assetId​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> assetId)
        Parameters:
        assetId - ID of a specific Outposts asset (hardware server) to target for the capacity task. If omitted, AWS selects an appropriate asset automatically. Discover valid asset IDs with the `aws.outposts.getAssets` data source. Changing this value forces a new resource.
        Returns:
        builder
      • assetId

        public CapacityTaskState.Builder assetId​(java.lang.String assetId)
        Parameters:
        assetId - ID of a specific Outposts asset (hardware server) to target for the capacity task. If omitted, AWS selects an appropriate asset automatically. Discover valid asset IDs with the `aws.outposts.getAssets` data source. Changing this value forces a new resource.
        Returns:
        builder
      • capacityTaskId

        public CapacityTaskState.Builder capacityTaskId​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> capacityTaskId)
        Parameters:
        capacityTaskId - ID assigned by AWS to the capacity task (for example, `cap-1a2b3c4d5e6f7g8h9`).
        Returns:
        builder
      • capacityTaskId

        public CapacityTaskState.Builder capacityTaskId​(java.lang.String capacityTaskId)
        Parameters:
        capacityTaskId - ID assigned by AWS to the capacity task (for example, `cap-1a2b3c4d5e6f7g8h9`).
        Returns:
        builder
      • completionDate

        public CapacityTaskState.Builder completionDate​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> completionDate)
        Parameters:
        completionDate - RFC 3339 timestamp at which the capacity task reached a terminal state (if any).
        Returns:
        builder
      • completionDate

        public CapacityTaskState.Builder completionDate​(java.lang.String completionDate)
        Parameters:
        completionDate - RFC 3339 timestamp at which the capacity task reached a terminal state (if any).
        Returns:
        builder
      • creationDate

        public CapacityTaskState.Builder creationDate​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> creationDate)
        Parameters:
        creationDate - RFC 3339 timestamp at which the capacity task was created.
        Returns:
        builder
      • creationDate

        public CapacityTaskState.Builder creationDate​(java.lang.String creationDate)
        Parameters:
        creationDate - RFC 3339 timestamp at which the capacity task was created.
        Returns:
        builder
      • failureReason

        public CapacityTaskState.Builder failureReason​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> failureReason)
        Parameters:
        failureReason - Human-readable reason reported by AWS when the capacity task failed. `null` unless the terminal state is `FAILED`.
        Returns:
        builder
      • failureReason

        public CapacityTaskState.Builder failureReason​(java.lang.String failureReason)
        Parameters:
        failureReason - Human-readable reason reported by AWS when the capacity task failed. `null` unless the terminal state is `FAILED`.
        Returns:
        builder
      • instancePools

        public CapacityTaskState.Builder instancePools​(@Nullable
                                                       com.pulumi.core.Output<java.util.List<CapacityTaskInstancePoolArgs>> instancePools)
        Parameters:
        instancePools - One or more `instancePool` blocks defining the desired instance-type layout for the Outpost. See below. At least one block is required. Changing any value forces a new resource.
        Returns:
        builder
      • instancePools

        public CapacityTaskState.Builder instancePools​(java.util.List<CapacityTaskInstancePoolArgs> instancePools)
        Parameters:
        instancePools - One or more `instancePool` blocks defining the desired instance-type layout for the Outpost. See below. At least one block is required. Changing any value forces a new resource.
        Returns:
        builder
      • instancePools

        public CapacityTaskState.Builder instancePools​(CapacityTaskInstancePoolArgs... instancePools)
        Parameters:
        instancePools - One or more `instancePool` blocks defining the desired instance-type layout for the Outpost. See below. At least one block is required. Changing any value forces a new resource.
        Returns:
        builder
      • instancesToExclude

        public CapacityTaskState.Builder instancesToExclude​(@Nullable
                                                            com.pulumi.core.Output<CapacityTaskInstancesToExcludeArgs> instancesToExclude)
        Parameters:
        instancesToExclude - Single `instancesToExclude` block specifying user-owned running instances that must not be stopped to free up capacity. See below. Note: AWS does not return this value via the Get/Describe API; after import, you must add the block back to your configuration manually — see Import.
        Returns:
        builder
      • instancesToExclude

        public CapacityTaskState.Builder instancesToExclude​(CapacityTaskInstancesToExcludeArgs instancesToExclude)
        Parameters:
        instancesToExclude - Single `instancesToExclude` block specifying user-owned running instances that must not be stopped to free up capacity. See below. Note: AWS does not return this value via the Get/Describe API; after import, you must add the block back to your configuration manually — see Import.
        Returns:
        builder
      • orderId

        public CapacityTaskState.Builder orderId​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> orderId)
        Parameters:
        orderId - ID of the Amazon Web Services Outposts order associated with the capacity task. Changing this value forces a new resource.
        Returns:
        builder
      • orderId

        public CapacityTaskState.Builder orderId​(java.lang.String orderId)
        Parameters:
        orderId - ID of the Amazon Web Services Outposts order associated with the capacity task. Changing this value forces a new resource.
        Returns:
        builder
      • outpostIdentifier

        public CapacityTaskState.Builder outpostIdentifier​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> outpostIdentifier)
        Parameters:
        outpostIdentifier - ID or ARN of the Outpost on which to run the capacity task. Both forms are accepted; the provider normalizes the value internally. Changing this value forces a new resource.
        Returns:
        builder
      • outpostIdentifier

        public CapacityTaskState.Builder outpostIdentifier​(java.lang.String outpostIdentifier)
        Parameters:
        outpostIdentifier - ID or ARN of the Outpost on which to run the capacity task. Both forms are accepted; the provider normalizes the value internally. Changing this value forces a new resource.
        Returns:
        builder
      • region

        public CapacityTaskState.Builder region​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - 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.
        Returns:
        builder
      • region

        public CapacityTaskState.Builder region​(java.lang.String region)
        Parameters:
        region - 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.
        Returns:
        builder
      • status

        public CapacityTaskState.Builder status​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - Current status of the capacity task. One of `REQUESTED`, `IN_PROGRESS`, `WAITING_FOR_EVACUATION`, `CANCELLATION_IN_PROGRESS`, `COMPLETED`, `CANCELLED`, or `FAILED`. See the [AWS documentation](https://docs.aws.amazon.com/outposts/latest/APIReference/API_GetCapacityTask.html) for semantics.
        Returns:
        builder
      • status

        public CapacityTaskState.Builder status​(java.lang.String status)
        Parameters:
        status - Current status of the capacity task. One of `REQUESTED`, `IN_PROGRESS`, `WAITING_FOR_EVACUATION`, `CANCELLATION_IN_PROGRESS`, `COMPLETED`, `CANCELLED`, or `FAILED`. See the [AWS documentation](https://docs.aws.amazon.com/outposts/latest/APIReference/API_GetCapacityTask.html) for semantics.
        Returns:
        builder
      • taskActionOnBlockingInstances

        public CapacityTaskState.Builder taskActionOnBlockingInstances​(@Nullable
                                                                       com.pulumi.core.Output<java.lang.String> taskActionOnBlockingInstances)
        Parameters:
        taskActionOnBlockingInstances - Action to take if running instances block the capacity task. Valid values are `WAIT_FOR_EVACUATION` and `FAIL_TASK`. Changing this value forces a new resource.
        Returns:
        builder
      • taskActionOnBlockingInstances

        public CapacityTaskState.Builder taskActionOnBlockingInstances​(java.lang.String taskActionOnBlockingInstances)
        Parameters:
        taskActionOnBlockingInstances - Action to take if running instances block the capacity task. Valid values are `WAIT_FOR_EVACUATION` and `FAIL_TASK`. Changing this value forces a new resource.
        Returns:
        builder