Class: Aws::ECS::Types::ProtectedTask

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

An object representing the protection status details for a task. You can set the protection status with the [UpdateTaskProtection] API and get the status of tasks with the [GetTaskProtection] API.

[1]: docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateTaskProtection.html [2]: docs.aws.amazon.com/AmazonECS/latest/APIReference/API_GetTaskProtection.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#expiration_dateTime

The epoch time when protection for the task will expire.

Returns:

  • (Time)


7730
7731
7732
7733
7734
7735
7736
# File 'lib/aws-sdk-ecs/types.rb', line 7730

class ProtectedTask < Struct.new(
  :task_arn,
  :protection_enabled,
  :expiration_date)
  SENSITIVE = []
  include Aws::Structure
end

#protection_enabledBoolean

The protection status of the task. If scale-in protection is on for a task, the value is ‘true`. Otherwise, it is `false`.

Returns:

  • (Boolean)


7730
7731
7732
7733
7734
7735
7736
# File 'lib/aws-sdk-ecs/types.rb', line 7730

class ProtectedTask < Struct.new(
  :task_arn,
  :protection_enabled,
  :expiration_date)
  SENSITIVE = []
  include Aws::Structure
end

#task_arnString

The task ARN.

Returns:

  • (String)


7730
7731
7732
7733
7734
7735
7736
# File 'lib/aws-sdk-ecs/types.rb', line 7730

class ProtectedTask < Struct.new(
  :task_arn,
  :protection_enabled,
  :expiration_date)
  SENSITIVE = []
  include Aws::Structure
end