Class: Aws::BedrockAgentCore::Types::RecordExpirySpecification

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

Overview

Note:

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

Specifies the record expiry (long-term memory time-to-live) applied to the records in a batch request. Provide exactly one of recordExpiryDurationDays or action. Set recordExpiryDurationDays to configure or update the expiry, or set action to REMOVE to remove a previously configured expiry.

Defined Under Namespace

Classes: Action, RecordExpiryDurationDays, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#action ⇒ String

The action to apply to the existing record expiry configuration. Set to REMOVE to remove a previously configured expiry so that the records no longer expire. This value does not apply when creating records.

Returns:

  • (String)


9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 9110

class RecordExpirySpecification < Struct.new(
  :record_expiry_duration_days,
  :action,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class RecordExpiryDurationDays < RecordExpirySpecification; end
  class Action < RecordExpirySpecification; end
  class Unknown < RecordExpirySpecification; end
end

#record_expiry_duration_days ⇒ Integer

The duration, in days, after which the records in this request expire. The minimum is 31 days.

Returns:

  • (Integer)


9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 9110

class RecordExpirySpecification < Struct.new(
  :record_expiry_duration_days,
  :action,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class RecordExpiryDurationDays < RecordExpirySpecification; end
  class Action < RecordExpirySpecification; end
  class Unknown < RecordExpirySpecification; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



9110
9111
9112
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 9110

def unknown
  @unknown
end