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)


4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
# File 'gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb', line 4113

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)


4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
# File 'gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb', line 4113

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



4113
4114
4115
# File 'gems/aws-sdk-elasticsearchservice/lib/aws-sdk-elasticsearchservice/types.rb', line 4113

def unknown
  @unknown
end