Class: Aws::ElasticsearchService::Types::RetentionOptions

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb

Overview

Note:

RetentionOptions is a union - when making an API calls you must set exactly one of the members.

Note:

RetentionOptions is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RetentionOptions corresponding to the set member.

Controls how long the cluster that you cut over from is kept after cutover completes. Specify exactly one of RetentionInHours or RetentionAction.

Defined Under Namespace

Classes: RetentionAction, RetentionInHours, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#retention_action ⇒ String

Ends the retention period now. Valid only after cutover completes.

Returns:

  • (String)


4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
# File 'gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb', line 4192

class RetentionOptions < Struct.new(
  :retention_in_hours,
  :retention_action,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class RetentionInHours < RetentionOptions; end
  class RetentionAction < RetentionOptions; end
  class Unknown < RetentionOptions; end
end

#retention_in_hours ⇒ Integer

The number of hours to keep the cluster that you cut over from. The retention period starts when cutover completes. The minimum is 1 hour. In an UpdateClone response after cutover completes, this value is the number of hours remaining in the retention period, rounded up.

Returns:

  • (Integer)


4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
# File 'gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb', line 4192

class RetentionOptions < Struct.new(
  :retention_in_hours,
  :retention_action,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class RetentionInHours < RetentionOptions; end
  class RetentionAction < RetentionOptions; end
  class Unknown < RetentionOptions; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



4192
4193
4194
# File 'gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb', line 4192

def unknown
  @unknown
end