aws-sdk-bedrockagent 1.86.0 → 1.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +403 -1
- data/lib/aws-sdk-bedrockagent/client_api.rb +260 -0
- data/lib/aws-sdk-bedrockagent/types.rb +615 -0
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +127 -0
- data/sig/errors.rbs +7 -7
- data/sig/types.rbs +150 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6db7719ecd1a0e06ccaf16855bb84d8ba2f35409b87b8c6715b28cc7f6fb8a13
|
|
4
|
+
data.tar.gz: 7f58f7a60040e07dfb274c826cea4ba39c7149df28a81fdd6b2bc97fdd86f909
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba7991d928655d4932cd48b0ce03caae09490f667a4de2321baecc48042c477a26c70c8117345bb0a674812baec70b19fc486b481dea561a0e74ffaf52afad63
|
|
7
|
+
data.tar.gz: 90f9d534c9984b97c4aa77908e9ec9494a37e06198e8bf367930fbc44aba6e1749ae0701c3b1533402fd6d0e070813bf8b8d1acd81966493d57e30229317d4f0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.87.0 (2026-10-19)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds Retrieval Instructions for Amazon Bedrock Knowledge Bases. Create, get, update, delete, list, and version customer-authored instructions that guide how a knowledge base retrieves and answers, with content review before use.
|
|
8
|
+
|
|
4
9
|
1.86.0 (2026-10-01)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.87.0
|
|
@@ -3037,6 +3037,138 @@ module Aws::BedrockAgent
|
|
|
3037
3037
|
req.send_request(options)
|
|
3038
3038
|
end
|
|
3039
3039
|
|
|
3040
|
+
# Creates a new retrieval instruction. The retrieval instruction is
|
|
3041
|
+
# usable once its status becomes ACTIVE. Use GetRetrievalInstruction to
|
|
3042
|
+
# check whether it is ready.
|
|
3043
|
+
#
|
|
3044
|
+
# @option params [String] :client_token
|
|
3045
|
+
# A caller-supplied token that makes a retried create return the
|
|
3046
|
+
# existing resource rather than a second one. The window is 8 hours.
|
|
3047
|
+
#
|
|
3048
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
3049
|
+
# not need to pass this option.**
|
|
3050
|
+
#
|
|
3051
|
+
# @option params [required, String] :name
|
|
3052
|
+
# Specifies the name of the retrieval instruction.
|
|
3053
|
+
#
|
|
3054
|
+
# @option params [required, Types::RetrievalInstructionContent] :instruction
|
|
3055
|
+
# The instruction content, as a set of named fields. Get does not return
|
|
3056
|
+
# this field until the create review passes.
|
|
3057
|
+
#
|
|
3058
|
+
# @option params [String] :description
|
|
3059
|
+
# Specifies a description of the retrieval instruction.
|
|
3060
|
+
#
|
|
3061
|
+
# @option params [String] :customer_encryption_key_arn
|
|
3062
|
+
# The Amazon Resource Name (ARN) of a customer managed AWS Key
|
|
3063
|
+
# Management Service (AWS KMS) key used to encrypt the instruction
|
|
3064
|
+
# content at rest. If you omit it, the service uses an AWS owned key.
|
|
3065
|
+
# You fix the key at create and cannot change it later.
|
|
3066
|
+
#
|
|
3067
|
+
# @option params [Hash<String,String>] :tags
|
|
3068
|
+
# Tags for the retrieval instruction.
|
|
3069
|
+
#
|
|
3070
|
+
# @return [Types::CreateRetrievalInstructionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3071
|
+
#
|
|
3072
|
+
# * {Types::CreateRetrievalInstructionResponse#retrieval_instruction_id #retrieval_instruction_id} => String
|
|
3073
|
+
# * {Types::CreateRetrievalInstructionResponse#retrieval_instruction_arn #retrieval_instruction_arn} => String
|
|
3074
|
+
# * {Types::CreateRetrievalInstructionResponse#name #name} => String
|
|
3075
|
+
# * {Types::CreateRetrievalInstructionResponse#status #status} => String
|
|
3076
|
+
# * {Types::CreateRetrievalInstructionResponse#last_transition_status #last_transition_status} => String
|
|
3077
|
+
# * {Types::CreateRetrievalInstructionResponse#created_at #created_at} => Time
|
|
3078
|
+
# * {Types::CreateRetrievalInstructionResponse#updated_at #updated_at} => Time
|
|
3079
|
+
#
|
|
3080
|
+
# @example Request syntax with placeholder values
|
|
3081
|
+
#
|
|
3082
|
+
# resp = client.create_retrieval_instruction({
|
|
3083
|
+
# client_token: "ClientToken",
|
|
3084
|
+
# name: "RetrievalInstructionName", # required
|
|
3085
|
+
# instruction: { # required
|
|
3086
|
+
# retrieval_guidance: "RetrievalInstructionFieldText",
|
|
3087
|
+
# persona: "RetrievalInstructionFieldText",
|
|
3088
|
+
# answer_format: "RetrievalInstructionFieldText",
|
|
3089
|
+
# answer_policy: "RetrievalInstructionFieldText",
|
|
3090
|
+
# },
|
|
3091
|
+
# description: "RetrievalInstructionDescription",
|
|
3092
|
+
# customer_encryption_key_arn: "KmsKeyArn",
|
|
3093
|
+
# tags: {
|
|
3094
|
+
# "TagKey" => "TagValue",
|
|
3095
|
+
# },
|
|
3096
|
+
# })
|
|
3097
|
+
#
|
|
3098
|
+
# @example Response structure
|
|
3099
|
+
#
|
|
3100
|
+
# resp.retrieval_instruction_id #=> String
|
|
3101
|
+
# resp.retrieval_instruction_arn #=> String
|
|
3102
|
+
# resp.name #=> String
|
|
3103
|
+
# resp.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
3104
|
+
# resp.last_transition_status #=> String, one of "CREATING", "UPDATING", "CREATE_SUCCESSFUL", "CREATE_FAILED", "UPDATE_SUCCESSFUL", "UPDATE_FAILED"
|
|
3105
|
+
# resp.created_at #=> Time
|
|
3106
|
+
# resp.updated_at #=> Time
|
|
3107
|
+
#
|
|
3108
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateRetrievalInstruction AWS API Documentation
|
|
3109
|
+
#
|
|
3110
|
+
# @overload create_retrieval_instruction(params = {})
|
|
3111
|
+
# @param [Hash] params ({})
|
|
3112
|
+
def create_retrieval_instruction(params = {}, options = {})
|
|
3113
|
+
req = build_request(:create_retrieval_instruction, params)
|
|
3114
|
+
req.send_request(options)
|
|
3115
|
+
end
|
|
3116
|
+
|
|
3117
|
+
# Creates an immutable numbered version from the retrieval
|
|
3118
|
+
# instruction's current reviewed content. The service creates the
|
|
3119
|
+
# version synchronously.
|
|
3120
|
+
#
|
|
3121
|
+
# The service numbers versions from 1 and assigns them in order, never
|
|
3122
|
+
# reusing a number.
|
|
3123
|
+
#
|
|
3124
|
+
# @option params [required, String] :retrieval_instruction_id
|
|
3125
|
+
# The identifier of the retrieval instruction to version.
|
|
3126
|
+
#
|
|
3127
|
+
# @option params [String] :description
|
|
3128
|
+
# A description of this version. Independent of the retrieval
|
|
3129
|
+
# instruction's own description.
|
|
3130
|
+
#
|
|
3131
|
+
# @option params [String] :client_token
|
|
3132
|
+
# A caller-supplied token that makes a retried call return the version
|
|
3133
|
+
# created by the first call rather than a second version. The window is
|
|
3134
|
+
# 8 hours.
|
|
3135
|
+
#
|
|
3136
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
3137
|
+
# not need to pass this option.**
|
|
3138
|
+
#
|
|
3139
|
+
# @return [Types::CreateRetrievalInstructionVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3140
|
+
#
|
|
3141
|
+
# * {Types::CreateRetrievalInstructionVersionResponse#retrieval_instruction_id #retrieval_instruction_id} => String
|
|
3142
|
+
# * {Types::CreateRetrievalInstructionVersionResponse#retrieval_instruction_arn #retrieval_instruction_arn} => String
|
|
3143
|
+
# * {Types::CreateRetrievalInstructionVersionResponse#version #version} => String
|
|
3144
|
+
# * {Types::CreateRetrievalInstructionVersionResponse#created_at #created_at} => Time
|
|
3145
|
+
# * {Types::CreateRetrievalInstructionVersionResponse#description #description} => String
|
|
3146
|
+
#
|
|
3147
|
+
# @example Request syntax with placeholder values
|
|
3148
|
+
#
|
|
3149
|
+
# resp = client.create_retrieval_instruction_version({
|
|
3150
|
+
# retrieval_instruction_id: "RetrievalInstructionId", # required
|
|
3151
|
+
# description: "RetrievalInstructionDescription",
|
|
3152
|
+
# client_token: "ClientToken",
|
|
3153
|
+
# })
|
|
3154
|
+
#
|
|
3155
|
+
# @example Response structure
|
|
3156
|
+
#
|
|
3157
|
+
# resp.retrieval_instruction_id #=> String
|
|
3158
|
+
# resp.retrieval_instruction_arn #=> String
|
|
3159
|
+
# resp.version #=> String
|
|
3160
|
+
# resp.created_at #=> Time
|
|
3161
|
+
# resp.description #=> String
|
|
3162
|
+
#
|
|
3163
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateRetrievalInstructionVersion AWS API Documentation
|
|
3164
|
+
#
|
|
3165
|
+
# @overload create_retrieval_instruction_version(params = {})
|
|
3166
|
+
# @param [Hash] params ({})
|
|
3167
|
+
def create_retrieval_instruction_version(params = {}, options = {})
|
|
3168
|
+
req = build_request(:create_retrieval_instruction_version, params)
|
|
3169
|
+
req.send_request(options)
|
|
3170
|
+
end
|
|
3171
|
+
|
|
3040
3172
|
# Creates a VPC configuration that lets a knowledge base connect to a
|
|
3041
3173
|
# resource in your private VPC. This operation is asynchronous: it
|
|
3042
3174
|
# returns a `vpcConfigurationId` with status `CREATING`. Poll
|
|
@@ -3657,6 +3789,52 @@ module Aws::BedrockAgent
|
|
|
3657
3789
|
req.send_request(options)
|
|
3658
3790
|
end
|
|
3659
3791
|
|
|
3792
|
+
# Deletes a retrieval instruction or a single version of it. Omit
|
|
3793
|
+
# retrievalInstructionVersion to delete the retrieval instruction
|
|
3794
|
+
# itself; the service rejects that request with ConflictException while
|
|
3795
|
+
# the retrieval instruction has versions or while lastTransitionStatus
|
|
3796
|
+
# is CREATING or UPDATING. Specify retrievalInstructionVersion to delete
|
|
3797
|
+
# only that version; the retrieval instruction and its other versions
|
|
3798
|
+
# are unaffected.
|
|
3799
|
+
#
|
|
3800
|
+
# @option params [required, String] :retrieval_instruction_id
|
|
3801
|
+
# The identifier of the retrieval instruction to delete.
|
|
3802
|
+
#
|
|
3803
|
+
# @option params [String] :retrieval_instruction_version
|
|
3804
|
+
# The version to delete. Omit this field to delete the retrieval
|
|
3805
|
+
# instruction itself, which you can do only when it has no versions;
|
|
3806
|
+
# while any version exists the service rejects the request with
|
|
3807
|
+
# ConflictException. You cannot delete DRAFT on its own; deleting the
|
|
3808
|
+
# retrieval instruction removes it.
|
|
3809
|
+
#
|
|
3810
|
+
# @return [Types::DeleteRetrievalInstructionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3811
|
+
#
|
|
3812
|
+
# * {Types::DeleteRetrievalInstructionResponse#retrieval_instruction_id #retrieval_instruction_id} => String
|
|
3813
|
+
# * {Types::DeleteRetrievalInstructionResponse#retrieval_instruction_arn #retrieval_instruction_arn} => String
|
|
3814
|
+
# * {Types::DeleteRetrievalInstructionResponse#version #version} => String
|
|
3815
|
+
#
|
|
3816
|
+
# @example Request syntax with placeholder values
|
|
3817
|
+
#
|
|
3818
|
+
# resp = client.delete_retrieval_instruction({
|
|
3819
|
+
# retrieval_instruction_id: "RetrievalInstructionId", # required
|
|
3820
|
+
# retrieval_instruction_version: "RetrievalInstructionNumericalVersion",
|
|
3821
|
+
# })
|
|
3822
|
+
#
|
|
3823
|
+
# @example Response structure
|
|
3824
|
+
#
|
|
3825
|
+
# resp.retrieval_instruction_id #=> String
|
|
3826
|
+
# resp.retrieval_instruction_arn #=> String
|
|
3827
|
+
# resp.version #=> String
|
|
3828
|
+
#
|
|
3829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteRetrievalInstruction AWS API Documentation
|
|
3830
|
+
#
|
|
3831
|
+
# @overload delete_retrieval_instruction(params = {})
|
|
3832
|
+
# @param [Hash] params ({})
|
|
3833
|
+
def delete_retrieval_instruction(params = {}, options = {})
|
|
3834
|
+
req = build_request(:delete_retrieval_instruction, params)
|
|
3835
|
+
req.send_request(options)
|
|
3836
|
+
end
|
|
3837
|
+
|
|
3660
3838
|
# Deletes a VPC configuration. This operation is asynchronous: it
|
|
3661
3839
|
# returns status `DELETING`. Poll `GetVpcConfiguration` until it returns
|
|
3662
3840
|
# a `ResourceNotFoundException`, indicating the configuration is
|
|
@@ -5020,6 +5198,72 @@ module Aws::BedrockAgent
|
|
|
5020
5198
|
req.send_request(options)
|
|
5021
5199
|
end
|
|
5022
5200
|
|
|
5201
|
+
# Gets a retrieval instruction. Also used to poll the terminal reporting
|
|
5202
|
+
# of an asynchronous create or update.
|
|
5203
|
+
#
|
|
5204
|
+
# @option params [required, String] :retrieval_instruction_id
|
|
5205
|
+
# The identifier of the retrieval instruction to get.
|
|
5206
|
+
#
|
|
5207
|
+
# @option params [String] :retrieval_instruction_version
|
|
5208
|
+
# The version to return: a version number, or DRAFT for the retrieval
|
|
5209
|
+
# instruction's current reviewed content. When omitted, DRAFT is used.
|
|
5210
|
+
# This default is permanent: omitting retrievalInstructionVersion will
|
|
5211
|
+
# never resolve to a numbered version.
|
|
5212
|
+
#
|
|
5213
|
+
# @return [Types::GetRetrievalInstructionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5214
|
+
#
|
|
5215
|
+
# * {Types::GetRetrievalInstructionResponse#retrieval_instruction_id #retrieval_instruction_id} => String
|
|
5216
|
+
# * {Types::GetRetrievalInstructionResponse#retrieval_instruction_arn #retrieval_instruction_arn} => String
|
|
5217
|
+
# * {Types::GetRetrievalInstructionResponse#name #name} => String
|
|
5218
|
+
# * {Types::GetRetrievalInstructionResponse#status #status} => String
|
|
5219
|
+
# * {Types::GetRetrievalInstructionResponse#last_transition_status #last_transition_status} => String
|
|
5220
|
+
# * {Types::GetRetrievalInstructionResponse#instruction #instruction} => Types::RetrievalInstructionContent
|
|
5221
|
+
# * {Types::GetRetrievalInstructionResponse#created_at #created_at} => Time
|
|
5222
|
+
# * {Types::GetRetrievalInstructionResponse#updated_at #updated_at} => Time
|
|
5223
|
+
# * {Types::GetRetrievalInstructionResponse#description #description} => String
|
|
5224
|
+
# * {Types::GetRetrievalInstructionResponse#customer_encryption_key_arn #customer_encryption_key_arn} => String
|
|
5225
|
+
# * {Types::GetRetrievalInstructionResponse#last_transition_status_reasons #last_transition_status_reasons} => Array<Types::RetrievalInstructionFailureReason>
|
|
5226
|
+
# * {Types::GetRetrievalInstructionResponse#version #version} => String
|
|
5227
|
+
# * {Types::GetRetrievalInstructionResponse#latest_version #latest_version} => String
|
|
5228
|
+
#
|
|
5229
|
+
# @example Request syntax with placeholder values
|
|
5230
|
+
#
|
|
5231
|
+
# resp = client.get_retrieval_instruction({
|
|
5232
|
+
# retrieval_instruction_id: "RetrievalInstructionId", # required
|
|
5233
|
+
# retrieval_instruction_version: "RetrievalInstructionVersionSelector",
|
|
5234
|
+
# })
|
|
5235
|
+
#
|
|
5236
|
+
# @example Response structure
|
|
5237
|
+
#
|
|
5238
|
+
# resp.retrieval_instruction_id #=> String
|
|
5239
|
+
# resp.retrieval_instruction_arn #=> String
|
|
5240
|
+
# resp.name #=> String
|
|
5241
|
+
# resp.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
5242
|
+
# resp.last_transition_status #=> String, one of "CREATING", "UPDATING", "CREATE_SUCCESSFUL", "CREATE_FAILED", "UPDATE_SUCCESSFUL", "UPDATE_FAILED"
|
|
5243
|
+
# resp.instruction.retrieval_guidance #=> String
|
|
5244
|
+
# resp.instruction.persona #=> String
|
|
5245
|
+
# resp.instruction.answer_format #=> String
|
|
5246
|
+
# resp.instruction.answer_policy #=> String
|
|
5247
|
+
# resp.created_at #=> Time
|
|
5248
|
+
# resp.updated_at #=> Time
|
|
5249
|
+
# resp.description #=> String
|
|
5250
|
+
# resp.customer_encryption_key_arn #=> String
|
|
5251
|
+
# resp.last_transition_status_reasons #=> Array
|
|
5252
|
+
# resp.last_transition_status_reasons[0].field_name #=> String, one of "RETRIEVAL_GUIDANCE", "PERSONA", "ANSWER_FORMAT", "ANSWER_POLICY"
|
|
5253
|
+
# resp.last_transition_status_reasons[0].code #=> String, one of "CONTENT_REJECTED", "CLIENT_ERROR", "INTERNAL_ERROR"
|
|
5254
|
+
# resp.last_transition_status_reasons[0].message #=> String
|
|
5255
|
+
# resp.version #=> String
|
|
5256
|
+
# resp.latest_version #=> String
|
|
5257
|
+
#
|
|
5258
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetRetrievalInstruction AWS API Documentation
|
|
5259
|
+
#
|
|
5260
|
+
# @overload get_retrieval_instruction(params = {})
|
|
5261
|
+
# @param [Hash] params ({})
|
|
5262
|
+
def get_retrieval_instruction(params = {}, options = {})
|
|
5263
|
+
req = build_request(:get_retrieval_instruction, params)
|
|
5264
|
+
req.send_request(options)
|
|
5265
|
+
end
|
|
5266
|
+
|
|
5023
5267
|
# Returns the details and current status of a single VPC configuration.
|
|
5024
5268
|
# Use this operation to poll for the outcome of an asynchronous create
|
|
5025
5269
|
# or delete.
|
|
@@ -6012,6 +6256,104 @@ module Aws::BedrockAgent
|
|
|
6012
6256
|
req.send_request(options)
|
|
6013
6257
|
end
|
|
6014
6258
|
|
|
6259
|
+
# Lists the numbered versions of a retrieval instruction, newest first.
|
|
6260
|
+
# DRAFT is not listed; read it with GetRetrievalInstruction without
|
|
6261
|
+
# retrievalInstructionVersion. Results are paginated. Use the nextToken
|
|
6262
|
+
# parameter to retrieve additional results.
|
|
6263
|
+
#
|
|
6264
|
+
# @option params [required, String] :retrieval_instruction_id
|
|
6265
|
+
# The identifier of the retrieval instruction whose versions to list.
|
|
6266
|
+
#
|
|
6267
|
+
# @option params [Integer] :max_results
|
|
6268
|
+
# Specifies the maximum number of versions to return in a single page.
|
|
6269
|
+
# The service enforces the effective upper bound.
|
|
6270
|
+
#
|
|
6271
|
+
# @option params [String] :next_token
|
|
6272
|
+
# The pagination token from a previous ListRetrievalInstructionVersions
|
|
6273
|
+
# response.
|
|
6274
|
+
#
|
|
6275
|
+
# @return [Types::ListRetrievalInstructionVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6276
|
+
#
|
|
6277
|
+
# * {Types::ListRetrievalInstructionVersionsResponse#retrieval_instruction_version_summaries #retrieval_instruction_version_summaries} => Array<Types::RetrievalInstructionVersionSummary>
|
|
6278
|
+
# * {Types::ListRetrievalInstructionVersionsResponse#next_token #next_token} => String
|
|
6279
|
+
#
|
|
6280
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
6281
|
+
#
|
|
6282
|
+
# @example Request syntax with placeholder values
|
|
6283
|
+
#
|
|
6284
|
+
# resp = client.list_retrieval_instruction_versions({
|
|
6285
|
+
# retrieval_instruction_id: "RetrievalInstructionId", # required
|
|
6286
|
+
# max_results: 1,
|
|
6287
|
+
# next_token: "NextToken",
|
|
6288
|
+
# })
|
|
6289
|
+
#
|
|
6290
|
+
# @example Response structure
|
|
6291
|
+
#
|
|
6292
|
+
# resp.retrieval_instruction_version_summaries #=> Array
|
|
6293
|
+
# resp.retrieval_instruction_version_summaries[0].version #=> String
|
|
6294
|
+
# resp.retrieval_instruction_version_summaries[0].created_at #=> Time
|
|
6295
|
+
# resp.next_token #=> String
|
|
6296
|
+
#
|
|
6297
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListRetrievalInstructionVersions AWS API Documentation
|
|
6298
|
+
#
|
|
6299
|
+
# @overload list_retrieval_instruction_versions(params = {})
|
|
6300
|
+
# @param [Hash] params ({})
|
|
6301
|
+
def list_retrieval_instruction_versions(params = {}, options = {})
|
|
6302
|
+
req = build_request(:list_retrieval_instruction_versions, params)
|
|
6303
|
+
req.send_request(options)
|
|
6304
|
+
end
|
|
6305
|
+
|
|
6306
|
+
# Lists the retrieval instructions in the caller's account. Results are
|
|
6307
|
+
# paginated. Use the nextToken parameter to retrieve additional results.
|
|
6308
|
+
#
|
|
6309
|
+
# @option params [String] :status
|
|
6310
|
+
# Return only instructions with this availability status.
|
|
6311
|
+
#
|
|
6312
|
+
# @option params [Integer] :max_results
|
|
6313
|
+
# The maximum number of results to return in a single page. The
|
|
6314
|
+
# effective upper bound is enforced service-side.
|
|
6315
|
+
#
|
|
6316
|
+
# @option params [String] :next_token
|
|
6317
|
+
# The pagination token from a previous ListRetrievalInstructions
|
|
6318
|
+
# response.
|
|
6319
|
+
#
|
|
6320
|
+
# @return [Types::ListRetrievalInstructionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6321
|
+
#
|
|
6322
|
+
# * {Types::ListRetrievalInstructionsResponse#retrieval_instruction_summaries #retrieval_instruction_summaries} => Array<Types::RetrievalInstructionSummary>
|
|
6323
|
+
# * {Types::ListRetrievalInstructionsResponse#next_token #next_token} => String
|
|
6324
|
+
#
|
|
6325
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
6326
|
+
#
|
|
6327
|
+
# @example Request syntax with placeholder values
|
|
6328
|
+
#
|
|
6329
|
+
# resp = client.list_retrieval_instructions({
|
|
6330
|
+
# status: "ACTIVE", # accepts ACTIVE, INACTIVE
|
|
6331
|
+
# max_results: 1,
|
|
6332
|
+
# next_token: "NextToken",
|
|
6333
|
+
# })
|
|
6334
|
+
#
|
|
6335
|
+
# @example Response structure
|
|
6336
|
+
#
|
|
6337
|
+
# resp.retrieval_instruction_summaries #=> Array
|
|
6338
|
+
# resp.retrieval_instruction_summaries[0].retrieval_instruction_id #=> String
|
|
6339
|
+
# resp.retrieval_instruction_summaries[0].retrieval_instruction_arn #=> String
|
|
6340
|
+
# resp.retrieval_instruction_summaries[0].name #=> String
|
|
6341
|
+
# resp.retrieval_instruction_summaries[0].status #=> String, one of "ACTIVE", "INACTIVE"
|
|
6342
|
+
# resp.retrieval_instruction_summaries[0].last_transition_status #=> String, one of "CREATING", "UPDATING", "CREATE_SUCCESSFUL", "CREATE_FAILED", "UPDATE_SUCCESSFUL", "UPDATE_FAILED"
|
|
6343
|
+
# resp.retrieval_instruction_summaries[0].created_at #=> Time
|
|
6344
|
+
# resp.retrieval_instruction_summaries[0].updated_at #=> Time
|
|
6345
|
+
# resp.retrieval_instruction_summaries[0].description #=> String
|
|
6346
|
+
# resp.next_token #=> String
|
|
6347
|
+
#
|
|
6348
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListRetrievalInstructions AWS API Documentation
|
|
6349
|
+
#
|
|
6350
|
+
# @overload list_retrieval_instructions(params = {})
|
|
6351
|
+
# @param [Hash] params ({})
|
|
6352
|
+
def list_retrieval_instructions(params = {}, options = {})
|
|
6353
|
+
req = build_request(:list_retrieval_instructions, params)
|
|
6354
|
+
req.send_request(options)
|
|
6355
|
+
end
|
|
6356
|
+
|
|
6015
6357
|
# List all the tags for the resource you specify.
|
|
6016
6358
|
#
|
|
6017
6359
|
# @option params [required, String] :resource_arn
|
|
@@ -8462,6 +8804,66 @@ module Aws::BedrockAgent
|
|
|
8462
8804
|
req.send_request(options)
|
|
8463
8805
|
end
|
|
8464
8806
|
|
|
8807
|
+
# Updates the content of a retrieval instruction. The update is
|
|
8808
|
+
# processed asynchronously; the stored content is a candidate until
|
|
8809
|
+
# content review passes, and the served content does not change while
|
|
8810
|
+
# the update is in flight. The service rejects the request with
|
|
8811
|
+
# ConflictException while lastTransitionStatus is CREATING or UPDATING.
|
|
8812
|
+
#
|
|
8813
|
+
# @option params [required, String] :retrieval_instruction_id
|
|
8814
|
+
# The identifier of the retrieval instruction to update.
|
|
8815
|
+
#
|
|
8816
|
+
# @option params [required, Types::RetrievalInstructionContent] :instruction
|
|
8817
|
+
# The replacement instruction content. This is a full replacement of all
|
|
8818
|
+
# four fields, not a patch. During UPDATING, Get continues to return the
|
|
8819
|
+
# previously-served content until the update review passes.
|
|
8820
|
+
#
|
|
8821
|
+
# @option params [String] :description
|
|
8822
|
+
# A replacement description; applied together with the content when the
|
|
8823
|
+
# review passes. Omit to clear.
|
|
8824
|
+
#
|
|
8825
|
+
# @return [Types::UpdateRetrievalInstructionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
8826
|
+
#
|
|
8827
|
+
# * {Types::UpdateRetrievalInstructionResponse#retrieval_instruction_id #retrieval_instruction_id} => String
|
|
8828
|
+
# * {Types::UpdateRetrievalInstructionResponse#retrieval_instruction_arn #retrieval_instruction_arn} => String
|
|
8829
|
+
# * {Types::UpdateRetrievalInstructionResponse#name #name} => String
|
|
8830
|
+
# * {Types::UpdateRetrievalInstructionResponse#status #status} => String
|
|
8831
|
+
# * {Types::UpdateRetrievalInstructionResponse#last_transition_status #last_transition_status} => String
|
|
8832
|
+
# * {Types::UpdateRetrievalInstructionResponse#created_at #created_at} => Time
|
|
8833
|
+
# * {Types::UpdateRetrievalInstructionResponse#updated_at #updated_at} => Time
|
|
8834
|
+
#
|
|
8835
|
+
# @example Request syntax with placeholder values
|
|
8836
|
+
#
|
|
8837
|
+
# resp = client.update_retrieval_instruction({
|
|
8838
|
+
# retrieval_instruction_id: "RetrievalInstructionId", # required
|
|
8839
|
+
# instruction: { # required
|
|
8840
|
+
# retrieval_guidance: "RetrievalInstructionFieldText",
|
|
8841
|
+
# persona: "RetrievalInstructionFieldText",
|
|
8842
|
+
# answer_format: "RetrievalInstructionFieldText",
|
|
8843
|
+
# answer_policy: "RetrievalInstructionFieldText",
|
|
8844
|
+
# },
|
|
8845
|
+
# description: "RetrievalInstructionDescription",
|
|
8846
|
+
# })
|
|
8847
|
+
#
|
|
8848
|
+
# @example Response structure
|
|
8849
|
+
#
|
|
8850
|
+
# resp.retrieval_instruction_id #=> String
|
|
8851
|
+
# resp.retrieval_instruction_arn #=> String
|
|
8852
|
+
# resp.name #=> String
|
|
8853
|
+
# resp.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
8854
|
+
# resp.last_transition_status #=> String, one of "CREATING", "UPDATING", "CREATE_SUCCESSFUL", "CREATE_FAILED", "UPDATE_SUCCESSFUL", "UPDATE_FAILED"
|
|
8855
|
+
# resp.created_at #=> Time
|
|
8856
|
+
# resp.updated_at #=> Time
|
|
8857
|
+
#
|
|
8858
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateRetrievalInstruction AWS API Documentation
|
|
8859
|
+
#
|
|
8860
|
+
# @overload update_retrieval_instruction(params = {})
|
|
8861
|
+
# @param [Hash] params ({})
|
|
8862
|
+
def update_retrieval_instruction(params = {}, options = {})
|
|
8863
|
+
req = build_request(:update_retrieval_instruction, params)
|
|
8864
|
+
req.send_request(options)
|
|
8865
|
+
end
|
|
8866
|
+
|
|
8465
8867
|
# Validates the definition of a flow.
|
|
8466
8868
|
#
|
|
8467
8869
|
# @option params [required, Types::FlowDefinition] :definition
|
|
@@ -8820,7 +9222,7 @@ module Aws::BedrockAgent
|
|
|
8820
9222
|
tracer: tracer
|
|
8821
9223
|
)
|
|
8822
9224
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
|
8823
|
-
context[:gem_version] = '1.
|
|
9225
|
+
context[:gem_version] = '1.87.0'
|
|
8824
9226
|
Seahorse::Client::Request.new(handlers, context)
|
|
8825
9227
|
end
|
|
8826
9228
|
|