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
|
@@ -2866,6 +2866,159 @@ module Aws::BedrockAgent
|
|
|
2866
2866
|
include Aws::Structure
|
|
2867
2867
|
end
|
|
2868
2868
|
|
|
2869
|
+
# @!attribute [rw] client_token
|
|
2870
|
+
# A caller-supplied token that makes a retried create return the
|
|
2871
|
+
# existing resource rather than a second one. The window is 8 hours.
|
|
2872
|
+
#
|
|
2873
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
2874
|
+
# not need to pass this option.
|
|
2875
|
+
# @return [String]
|
|
2876
|
+
#
|
|
2877
|
+
# @!attribute [rw] name
|
|
2878
|
+
# Specifies the name of the retrieval instruction.
|
|
2879
|
+
# @return [String]
|
|
2880
|
+
#
|
|
2881
|
+
# @!attribute [rw] instruction
|
|
2882
|
+
# The instruction content, as a set of named fields. Get does not
|
|
2883
|
+
# return this field until the create review passes.
|
|
2884
|
+
# @return [Types::RetrievalInstructionContent]
|
|
2885
|
+
#
|
|
2886
|
+
# @!attribute [rw] description
|
|
2887
|
+
# Specifies a description of the retrieval instruction.
|
|
2888
|
+
# @return [String]
|
|
2889
|
+
#
|
|
2890
|
+
# @!attribute [rw] customer_encryption_key_arn
|
|
2891
|
+
# The Amazon Resource Name (ARN) of a customer managed AWS Key
|
|
2892
|
+
# Management Service (AWS KMS) key used to encrypt the instruction
|
|
2893
|
+
# content at rest. If you omit it, the service uses an AWS owned key.
|
|
2894
|
+
# You fix the key at create and cannot change it later.
|
|
2895
|
+
# @return [String]
|
|
2896
|
+
#
|
|
2897
|
+
# @!attribute [rw] tags
|
|
2898
|
+
# Tags for the retrieval instruction.
|
|
2899
|
+
# @return [Hash<String,String>]
|
|
2900
|
+
#
|
|
2901
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateRetrievalInstructionRequest AWS API Documentation
|
|
2902
|
+
#
|
|
2903
|
+
class CreateRetrievalInstructionRequest < Struct.new(
|
|
2904
|
+
:client_token,
|
|
2905
|
+
:name,
|
|
2906
|
+
:instruction,
|
|
2907
|
+
:description,
|
|
2908
|
+
:customer_encryption_key_arn,
|
|
2909
|
+
:tags)
|
|
2910
|
+
SENSITIVE = [:name, :instruction, :description]
|
|
2911
|
+
include Aws::Structure
|
|
2912
|
+
end
|
|
2913
|
+
|
|
2914
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
2915
|
+
# The identifier of the newly created retrieval instruction.
|
|
2916
|
+
# @return [String]
|
|
2917
|
+
#
|
|
2918
|
+
# @!attribute [rw] retrieval_instruction_arn
|
|
2919
|
+
# The ARN of the newly created retrieval instruction.
|
|
2920
|
+
# @return [String]
|
|
2921
|
+
#
|
|
2922
|
+
# @!attribute [rw] name
|
|
2923
|
+
# The name of the retrieval instruction.
|
|
2924
|
+
# @return [String]
|
|
2925
|
+
#
|
|
2926
|
+
# @!attribute [rw] status
|
|
2927
|
+
# Always INACTIVE on this response. The content review has not run
|
|
2928
|
+
# when this call returns, so the resource is not yet usable.
|
|
2929
|
+
# @return [String]
|
|
2930
|
+
#
|
|
2931
|
+
# @!attribute [rw] last_transition_status
|
|
2932
|
+
# Always CREATING on this response. Poll GetRetrievalInstruction until
|
|
2933
|
+
# this member is neither CREATING nor UPDATING, then read the outcome
|
|
2934
|
+
# from it.
|
|
2935
|
+
# @return [String]
|
|
2936
|
+
#
|
|
2937
|
+
# @!attribute [rw] created_at
|
|
2938
|
+
# When you created the retrieval instruction.
|
|
2939
|
+
# @return [Time]
|
|
2940
|
+
#
|
|
2941
|
+
# @!attribute [rw] updated_at
|
|
2942
|
+
# When the retrieval instruction was last updated.
|
|
2943
|
+
# @return [Time]
|
|
2944
|
+
#
|
|
2945
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateRetrievalInstructionResponse AWS API Documentation
|
|
2946
|
+
#
|
|
2947
|
+
class CreateRetrievalInstructionResponse < Struct.new(
|
|
2948
|
+
:retrieval_instruction_id,
|
|
2949
|
+
:retrieval_instruction_arn,
|
|
2950
|
+
:name,
|
|
2951
|
+
:status,
|
|
2952
|
+
:last_transition_status,
|
|
2953
|
+
:created_at,
|
|
2954
|
+
:updated_at)
|
|
2955
|
+
SENSITIVE = [:name]
|
|
2956
|
+
include Aws::Structure
|
|
2957
|
+
end
|
|
2958
|
+
|
|
2959
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
2960
|
+
# The identifier of the retrieval instruction to version.
|
|
2961
|
+
# @return [String]
|
|
2962
|
+
#
|
|
2963
|
+
# @!attribute [rw] description
|
|
2964
|
+
# A description of this version. Independent of the retrieval
|
|
2965
|
+
# instruction's own description.
|
|
2966
|
+
# @return [String]
|
|
2967
|
+
#
|
|
2968
|
+
# @!attribute [rw] client_token
|
|
2969
|
+
# A caller-supplied token that makes a retried call return the version
|
|
2970
|
+
# created by the first call rather than a second version. The window
|
|
2971
|
+
# is 8 hours.
|
|
2972
|
+
#
|
|
2973
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
2974
|
+
# not need to pass this option.
|
|
2975
|
+
# @return [String]
|
|
2976
|
+
#
|
|
2977
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateRetrievalInstructionVersionRequest AWS API Documentation
|
|
2978
|
+
#
|
|
2979
|
+
class CreateRetrievalInstructionVersionRequest < Struct.new(
|
|
2980
|
+
:retrieval_instruction_id,
|
|
2981
|
+
:description,
|
|
2982
|
+
:client_token)
|
|
2983
|
+
SENSITIVE = [:description]
|
|
2984
|
+
include Aws::Structure
|
|
2985
|
+
end
|
|
2986
|
+
|
|
2987
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
2988
|
+
# The identifier of the retrieval instruction.
|
|
2989
|
+
# @return [String]
|
|
2990
|
+
#
|
|
2991
|
+
# @!attribute [rw] retrieval_instruction_arn
|
|
2992
|
+
# The ARN of the retrieval instruction. Versions do not have their own
|
|
2993
|
+
# ARN.
|
|
2994
|
+
# @return [String]
|
|
2995
|
+
#
|
|
2996
|
+
# @!attribute [rw] version
|
|
2997
|
+
# The number of the version created. Versions are numbered from 1 and
|
|
2998
|
+
# allocated monotonically; a number is never reused, even after the
|
|
2999
|
+
# version is deleted.
|
|
3000
|
+
# @return [String]
|
|
3001
|
+
#
|
|
3002
|
+
# @!attribute [rw] created_at
|
|
3003
|
+
# When this version was created.
|
|
3004
|
+
# @return [Time]
|
|
3005
|
+
#
|
|
3006
|
+
# @!attribute [rw] description
|
|
3007
|
+
# The description of this version, when one was supplied.
|
|
3008
|
+
# @return [String]
|
|
3009
|
+
#
|
|
3010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateRetrievalInstructionVersionResponse AWS API Documentation
|
|
3011
|
+
#
|
|
3012
|
+
class CreateRetrievalInstructionVersionResponse < Struct.new(
|
|
3013
|
+
:retrieval_instruction_id,
|
|
3014
|
+
:retrieval_instruction_arn,
|
|
3015
|
+
:version,
|
|
3016
|
+
:created_at,
|
|
3017
|
+
:description)
|
|
3018
|
+
SENSITIVE = [:description]
|
|
3019
|
+
include Aws::Structure
|
|
3020
|
+
end
|
|
3021
|
+
|
|
2869
3022
|
# @!attribute [rw] knowledge_base_id
|
|
2870
3023
|
# The unique identifier of the knowledge base to associate this VPC
|
|
2871
3024
|
# configuration with.
|
|
@@ -3868,6 +4021,50 @@ module Aws::BedrockAgent
|
|
|
3868
4021
|
include Aws::Structure
|
|
3869
4022
|
end
|
|
3870
4023
|
|
|
4024
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
4025
|
+
# The identifier of the retrieval instruction to delete.
|
|
4026
|
+
# @return [String]
|
|
4027
|
+
#
|
|
4028
|
+
# @!attribute [rw] retrieval_instruction_version
|
|
4029
|
+
# The version to delete. Omit this field to delete the retrieval
|
|
4030
|
+
# instruction itself, which you can do only when it has no versions;
|
|
4031
|
+
# while any version exists the service rejects the request with
|
|
4032
|
+
# ConflictException. You cannot delete DRAFT on its own; deleting the
|
|
4033
|
+
# retrieval instruction removes it.
|
|
4034
|
+
# @return [String]
|
|
4035
|
+
#
|
|
4036
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteRetrievalInstructionRequest AWS API Documentation
|
|
4037
|
+
#
|
|
4038
|
+
class DeleteRetrievalInstructionRequest < Struct.new(
|
|
4039
|
+
:retrieval_instruction_id,
|
|
4040
|
+
:retrieval_instruction_version)
|
|
4041
|
+
SENSITIVE = []
|
|
4042
|
+
include Aws::Structure
|
|
4043
|
+
end
|
|
4044
|
+
|
|
4045
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
4046
|
+
# The identifier of the deleted retrieval instruction.
|
|
4047
|
+
# @return [String]
|
|
4048
|
+
#
|
|
4049
|
+
# @!attribute [rw] retrieval_instruction_arn
|
|
4050
|
+
# The ARN of the retrieval instruction.
|
|
4051
|
+
# @return [String]
|
|
4052
|
+
#
|
|
4053
|
+
# @!attribute [rw] version
|
|
4054
|
+
# The version that you deleted. Absent when you deleted the whole
|
|
4055
|
+
# retrieval instruction.
|
|
4056
|
+
# @return [String]
|
|
4057
|
+
#
|
|
4058
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteRetrievalInstructionResponse AWS API Documentation
|
|
4059
|
+
#
|
|
4060
|
+
class DeleteRetrievalInstructionResponse < Struct.new(
|
|
4061
|
+
:retrieval_instruction_id,
|
|
4062
|
+
:retrieval_instruction_arn,
|
|
4063
|
+
:version)
|
|
4064
|
+
SENSITIVE = []
|
|
4065
|
+
include Aws::Structure
|
|
4066
|
+
end
|
|
4067
|
+
|
|
3871
4068
|
# @!attribute [rw] knowledge_base_id
|
|
3872
4069
|
# The unique identifier of the knowledge base that owns the VPC
|
|
3873
4070
|
# configuration.
|
|
@@ -5903,6 +6100,122 @@ module Aws::BedrockAgent
|
|
|
5903
6100
|
include Aws::Structure
|
|
5904
6101
|
end
|
|
5905
6102
|
|
|
6103
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
6104
|
+
# The identifier of the retrieval instruction to get.
|
|
6105
|
+
# @return [String]
|
|
6106
|
+
#
|
|
6107
|
+
# @!attribute [rw] retrieval_instruction_version
|
|
6108
|
+
# The version to return: a version number, or DRAFT for the retrieval
|
|
6109
|
+
# instruction's current reviewed content. When omitted, DRAFT is
|
|
6110
|
+
# used. This default is permanent: omitting
|
|
6111
|
+
# retrievalInstructionVersion will never resolve to a numbered
|
|
6112
|
+
# version.
|
|
6113
|
+
# @return [String]
|
|
6114
|
+
#
|
|
6115
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetRetrievalInstructionRequest AWS API Documentation
|
|
6116
|
+
#
|
|
6117
|
+
class GetRetrievalInstructionRequest < Struct.new(
|
|
6118
|
+
:retrieval_instruction_id,
|
|
6119
|
+
:retrieval_instruction_version)
|
|
6120
|
+
SENSITIVE = []
|
|
6121
|
+
include Aws::Structure
|
|
6122
|
+
end
|
|
6123
|
+
|
|
6124
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
6125
|
+
# The identifier of the retrieval instruction.
|
|
6126
|
+
# @return [String]
|
|
6127
|
+
#
|
|
6128
|
+
# @!attribute [rw] retrieval_instruction_arn
|
|
6129
|
+
# The ARN of the retrieval instruction.
|
|
6130
|
+
# @return [String]
|
|
6131
|
+
#
|
|
6132
|
+
# @!attribute [rw] name
|
|
6133
|
+
# The name of the retrieval instruction.
|
|
6134
|
+
# @return [String]
|
|
6135
|
+
#
|
|
6136
|
+
# @!attribute [rw] status
|
|
6137
|
+
# Specifies whether you can use the instruction. You can resolve only
|
|
6138
|
+
# an ACTIVE instruction at retrieval time. Monotone: INACTIVE to
|
|
6139
|
+
# ACTIVE once, never back. Numbered versions are always ACTIVE.
|
|
6140
|
+
# @return [String]
|
|
6141
|
+
#
|
|
6142
|
+
# @!attribute [rw] last_transition_status
|
|
6143
|
+
# The outcome or in-progress state of the most recent create or
|
|
6144
|
+
# update. CREATING or UPDATING means the operation is still running.
|
|
6145
|
+
# Independent of status. Always has a value from the create 202
|
|
6146
|
+
# onward. On a numbered version this is always CREATE\_SUCCESSFUL: a
|
|
6147
|
+
# version is created once, from reviewed content, and is immutable.
|
|
6148
|
+
# @return [String]
|
|
6149
|
+
#
|
|
6150
|
+
# @!attribute [rw] instruction
|
|
6151
|
+
# The reviewed content this instruction serves — what
|
|
6152
|
+
# AgenticRetrieveStream resolves while status is ACTIVE. Absent until
|
|
6153
|
+
# the first create review passes. Always present on a numbered
|
|
6154
|
+
# version.
|
|
6155
|
+
# @return [Types::RetrievalInstructionContent]
|
|
6156
|
+
#
|
|
6157
|
+
# @!attribute [rw] created_at
|
|
6158
|
+
# When the retrieval instruction was created. On a numbered version,
|
|
6159
|
+
# when that version was created.
|
|
6160
|
+
# @return [Time]
|
|
6161
|
+
#
|
|
6162
|
+
# @!attribute [rw] updated_at
|
|
6163
|
+
# When the retrieval instruction was last updated. Equal to createdAt
|
|
6164
|
+
# on a numbered version, which is immutable.
|
|
6165
|
+
# @return [Time]
|
|
6166
|
+
#
|
|
6167
|
+
# @!attribute [rw] description
|
|
6168
|
+
# A description of the retrieval instruction. On a numbered version,
|
|
6169
|
+
# the description of that version.
|
|
6170
|
+
# @return [String]
|
|
6171
|
+
#
|
|
6172
|
+
# @!attribute [rw] customer_encryption_key_arn
|
|
6173
|
+
# The ARN of the customer managed KMS key protecting this content,
|
|
6174
|
+
# when one was supplied at create.
|
|
6175
|
+
# @return [String]
|
|
6176
|
+
#
|
|
6177
|
+
# @!attribute [rw] last_transition_status_reasons
|
|
6178
|
+
# Why the most recent create or update was rejected. One entry for
|
|
6179
|
+
# each rejected field, or a single entry when the review itself
|
|
6180
|
+
# failed. Each entry has a machine-readable code and a message, and
|
|
6181
|
+
# names the field when it applies to one. The service includes this
|
|
6182
|
+
# field only when lastTransitionStatus is CREATE\_FAILED or
|
|
6183
|
+
# UPDATE\_FAILED. Never present on a numbered version.
|
|
6184
|
+
# @return [Array<Types::RetrievalInstructionFailureReason>]
|
|
6185
|
+
#
|
|
6186
|
+
# @!attribute [rw] version
|
|
6187
|
+
# The version this response describes: a version number, or DRAFT.
|
|
6188
|
+
# @return [String]
|
|
6189
|
+
#
|
|
6190
|
+
# @!attribute [rw] latest_version
|
|
6191
|
+
# The largest version number that currently exists for this retrieval
|
|
6192
|
+
# instruction, that is, the newest version you can retrieve. Present
|
|
6193
|
+
# only on a DRAFT read, and only when at least one version exists.
|
|
6194
|
+
# Because version numbers are never reused, deleting versions can
|
|
6195
|
+
# leave gaps: this is the newest existing version, not a count and not
|
|
6196
|
+
# the highest number ever created.
|
|
6197
|
+
# @return [String]
|
|
6198
|
+
#
|
|
6199
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetRetrievalInstructionResponse AWS API Documentation
|
|
6200
|
+
#
|
|
6201
|
+
class GetRetrievalInstructionResponse < Struct.new(
|
|
6202
|
+
:retrieval_instruction_id,
|
|
6203
|
+
:retrieval_instruction_arn,
|
|
6204
|
+
:name,
|
|
6205
|
+
:status,
|
|
6206
|
+
:last_transition_status,
|
|
6207
|
+
:instruction,
|
|
6208
|
+
:created_at,
|
|
6209
|
+
:updated_at,
|
|
6210
|
+
:description,
|
|
6211
|
+
:customer_encryption_key_arn,
|
|
6212
|
+
:last_transition_status_reasons,
|
|
6213
|
+
:version,
|
|
6214
|
+
:latest_version)
|
|
6215
|
+
SENSITIVE = [:name, :instruction, :description]
|
|
6216
|
+
include Aws::Structure
|
|
6217
|
+
end
|
|
6218
|
+
|
|
5906
6219
|
# @!attribute [rw] knowledge_base_id
|
|
5907
6220
|
# The unique identifier of the knowledge base that owns the VPC
|
|
5908
6221
|
# configuration.
|
|
@@ -7644,6 +7957,90 @@ module Aws::BedrockAgent
|
|
|
7644
7957
|
include Aws::Structure
|
|
7645
7958
|
end
|
|
7646
7959
|
|
|
7960
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
7961
|
+
# The identifier of the retrieval instruction whose versions to list.
|
|
7962
|
+
# @return [String]
|
|
7963
|
+
#
|
|
7964
|
+
# @!attribute [rw] max_results
|
|
7965
|
+
# Specifies the maximum number of versions to return in a single page.
|
|
7966
|
+
# The service enforces the effective upper bound.
|
|
7967
|
+
# @return [Integer]
|
|
7968
|
+
#
|
|
7969
|
+
# @!attribute [rw] next_token
|
|
7970
|
+
# The pagination token from a previous
|
|
7971
|
+
# ListRetrievalInstructionVersions response.
|
|
7972
|
+
# @return [String]
|
|
7973
|
+
#
|
|
7974
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListRetrievalInstructionVersionsRequest AWS API Documentation
|
|
7975
|
+
#
|
|
7976
|
+
class ListRetrievalInstructionVersionsRequest < Struct.new(
|
|
7977
|
+
:retrieval_instruction_id,
|
|
7978
|
+
:max_results,
|
|
7979
|
+
:next_token)
|
|
7980
|
+
SENSITIVE = []
|
|
7981
|
+
include Aws::Structure
|
|
7982
|
+
end
|
|
7983
|
+
|
|
7984
|
+
# @!attribute [rw] retrieval_instruction_version_summaries
|
|
7985
|
+
# The version summaries in this page, newest first.
|
|
7986
|
+
# @return [Array<Types::RetrievalInstructionVersionSummary>]
|
|
7987
|
+
#
|
|
7988
|
+
# @!attribute [rw] next_token
|
|
7989
|
+
# The pagination token to pass to the next
|
|
7990
|
+
# ListRetrievalInstructionVersions call, absent on the last page.
|
|
7991
|
+
# @return [String]
|
|
7992
|
+
#
|
|
7993
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListRetrievalInstructionVersionsResponse AWS API Documentation
|
|
7994
|
+
#
|
|
7995
|
+
class ListRetrievalInstructionVersionsResponse < Struct.new(
|
|
7996
|
+
:retrieval_instruction_version_summaries,
|
|
7997
|
+
:next_token)
|
|
7998
|
+
SENSITIVE = []
|
|
7999
|
+
include Aws::Structure
|
|
8000
|
+
end
|
|
8001
|
+
|
|
8002
|
+
# @!attribute [rw] status
|
|
8003
|
+
# Return only instructions with this availability status.
|
|
8004
|
+
# @return [String]
|
|
8005
|
+
#
|
|
8006
|
+
# @!attribute [rw] max_results
|
|
8007
|
+
# The maximum number of results to return in a single page. The
|
|
8008
|
+
# effective upper bound is enforced service-side.
|
|
8009
|
+
# @return [Integer]
|
|
8010
|
+
#
|
|
8011
|
+
# @!attribute [rw] next_token
|
|
8012
|
+
# The pagination token from a previous ListRetrievalInstructions
|
|
8013
|
+
# response.
|
|
8014
|
+
# @return [String]
|
|
8015
|
+
#
|
|
8016
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListRetrievalInstructionsRequest AWS API Documentation
|
|
8017
|
+
#
|
|
8018
|
+
class ListRetrievalInstructionsRequest < Struct.new(
|
|
8019
|
+
:status,
|
|
8020
|
+
:max_results,
|
|
8021
|
+
:next_token)
|
|
8022
|
+
SENSITIVE = []
|
|
8023
|
+
include Aws::Structure
|
|
8024
|
+
end
|
|
8025
|
+
|
|
8026
|
+
# @!attribute [rw] retrieval_instruction_summaries
|
|
8027
|
+
# The retrieval instruction summaries in this page.
|
|
8028
|
+
# @return [Array<Types::RetrievalInstructionSummary>]
|
|
8029
|
+
#
|
|
8030
|
+
# @!attribute [rw] next_token
|
|
8031
|
+
# The pagination token to pass to the next ListRetrievalInstructions
|
|
8032
|
+
# call, absent on the last page.
|
|
8033
|
+
# @return [String]
|
|
8034
|
+
#
|
|
8035
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListRetrievalInstructionsResponse AWS API Documentation
|
|
8036
|
+
#
|
|
8037
|
+
class ListRetrievalInstructionsResponse < Struct.new(
|
|
8038
|
+
:retrieval_instruction_summaries,
|
|
8039
|
+
:next_token)
|
|
8040
|
+
SENSITIVE = []
|
|
8041
|
+
include Aws::Structure
|
|
8042
|
+
end
|
|
8043
|
+
|
|
7647
8044
|
# @!attribute [rw] resource_arn
|
|
7648
8045
|
# The Amazon Resource Name (ARN) of the resource for which to list
|
|
7649
8046
|
# tags.
|
|
@@ -10132,6 +10529,154 @@ module Aws::BedrockAgent
|
|
|
10132
10529
|
class Unknown < RetrievalFlowNodeServiceConfiguration; end
|
|
10133
10530
|
end
|
|
10134
10531
|
|
|
10532
|
+
# The instruction content, as a set of named fields. Every field is
|
|
10533
|
+
# optional; at least one must be present. Service-side validation
|
|
10534
|
+
# enforces per-field and aggregate size limits.
|
|
10535
|
+
#
|
|
10536
|
+
# @!attribute [rw] retrieval_guidance
|
|
10537
|
+
# How to interpret and decompose the question, and what to prioritise
|
|
10538
|
+
# when searching.
|
|
10539
|
+
# @return [String]
|
|
10540
|
+
#
|
|
10541
|
+
# @!attribute [rw] persona
|
|
10542
|
+
# Who the assistant is: identity, tone and language.
|
|
10543
|
+
# @return [String]
|
|
10544
|
+
#
|
|
10545
|
+
# @!attribute [rw] answer_format
|
|
10546
|
+
# How the answer is structured, including how sources are cited.
|
|
10547
|
+
# @return [String]
|
|
10548
|
+
#
|
|
10549
|
+
# @!attribute [rw] answer_policy
|
|
10550
|
+
# Whether and how to answer: how strongly an answer must be supported,
|
|
10551
|
+
# and what to do with questions outside scope.
|
|
10552
|
+
# @return [String]
|
|
10553
|
+
#
|
|
10554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/RetrievalInstructionContent AWS API Documentation
|
|
10555
|
+
#
|
|
10556
|
+
class RetrievalInstructionContent < Struct.new(
|
|
10557
|
+
:retrieval_guidance,
|
|
10558
|
+
:persona,
|
|
10559
|
+
:answer_format,
|
|
10560
|
+
:answer_policy)
|
|
10561
|
+
SENSITIVE = [:retrieval_guidance, :persona, :answer_format, :answer_policy]
|
|
10562
|
+
include Aws::Structure
|
|
10563
|
+
end
|
|
10564
|
+
|
|
10565
|
+
# One reason the most recent create or update did not succeed. code
|
|
10566
|
+
# drives programmatic branching (fix the text, fix the configuration, or
|
|
10567
|
+
# retry); message carries the specific cause.
|
|
10568
|
+
#
|
|
10569
|
+
# @!attribute [rw] field_name
|
|
10570
|
+
# The instruction field this entry is about. Present on review
|
|
10571
|
+
# rejections of a specific field; absent when the failure applies to
|
|
10572
|
+
# the whole review, because a client-side execution failure or a
|
|
10573
|
+
# service fault has no single field.
|
|
10574
|
+
# @return [String]
|
|
10575
|
+
#
|
|
10576
|
+
# @!attribute [rw] code
|
|
10577
|
+
# Stable, machine-readable classification by fault attribution. Valid
|
|
10578
|
+
# values:
|
|
10579
|
+
#
|
|
10580
|
+
# * CONTENT\_REJECTED – The review rejected the named field's
|
|
10581
|
+
# content; revise the text and resubmit.
|
|
10582
|
+
#
|
|
10583
|
+
# * CLIENT\_ERROR – The review could not run for a customer-side
|
|
10584
|
+
# reason, for example the customer managed AWS KMS key could not be
|
|
10585
|
+
# used; fix the configuration and resubmit.
|
|
10586
|
+
#
|
|
10587
|
+
# * INTERNAL\_ERROR – The review could not complete due to a service
|
|
10588
|
+
# fault; retry the create or update.
|
|
10589
|
+
#
|
|
10590
|
+
# New values may be added over time; your client should tolerate
|
|
10591
|
+
# values it does not recognize and treat them as a failure.
|
|
10592
|
+
# @return [String]
|
|
10593
|
+
#
|
|
10594
|
+
# @!attribute [rw] message
|
|
10595
|
+
# Human-readable explanation of the specific cause. Never contains the
|
|
10596
|
+
# customer's own text.
|
|
10597
|
+
# @return [String]
|
|
10598
|
+
#
|
|
10599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/RetrievalInstructionFailureReason AWS API Documentation
|
|
10600
|
+
#
|
|
10601
|
+
class RetrievalInstructionFailureReason < Struct.new(
|
|
10602
|
+
:field_name,
|
|
10603
|
+
:code,
|
|
10604
|
+
:message)
|
|
10605
|
+
SENSITIVE = []
|
|
10606
|
+
include Aws::Structure
|
|
10607
|
+
end
|
|
10608
|
+
|
|
10609
|
+
# A summary of a retrieval instruction, without the content.
|
|
10610
|
+
#
|
|
10611
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
10612
|
+
# The identifier of the retrieval instruction.
|
|
10613
|
+
# @return [String]
|
|
10614
|
+
#
|
|
10615
|
+
# @!attribute [rw] retrieval_instruction_arn
|
|
10616
|
+
# The ARN of the retrieval instruction.
|
|
10617
|
+
# @return [String]
|
|
10618
|
+
#
|
|
10619
|
+
# @!attribute [rw] name
|
|
10620
|
+
# The name of the retrieval instruction.
|
|
10621
|
+
# @return [String]
|
|
10622
|
+
#
|
|
10623
|
+
# @!attribute [rw] status
|
|
10624
|
+
# Whether the instruction can be used. Only ACTIVE is resolvable at
|
|
10625
|
+
# retrieval time.
|
|
10626
|
+
# @return [String]
|
|
10627
|
+
#
|
|
10628
|
+
# @!attribute [rw] last_transition_status
|
|
10629
|
+
# The outcome or in-progress state of the most recent create or update
|
|
10630
|
+
# of the retrieval instruction.
|
|
10631
|
+
# @return [String]
|
|
10632
|
+
#
|
|
10633
|
+
# @!attribute [rw] created_at
|
|
10634
|
+
# When you created the retrieval instruction.
|
|
10635
|
+
# @return [Time]
|
|
10636
|
+
#
|
|
10637
|
+
# @!attribute [rw] updated_at
|
|
10638
|
+
# When the retrieval instruction was last updated.
|
|
10639
|
+
# @return [Time]
|
|
10640
|
+
#
|
|
10641
|
+
# @!attribute [rw] description
|
|
10642
|
+
# A description of the retrieval instruction.
|
|
10643
|
+
# @return [String]
|
|
10644
|
+
#
|
|
10645
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/RetrievalInstructionSummary AWS API Documentation
|
|
10646
|
+
#
|
|
10647
|
+
class RetrievalInstructionSummary < Struct.new(
|
|
10648
|
+
:retrieval_instruction_id,
|
|
10649
|
+
:retrieval_instruction_arn,
|
|
10650
|
+
:name,
|
|
10651
|
+
:status,
|
|
10652
|
+
:last_transition_status,
|
|
10653
|
+
:created_at,
|
|
10654
|
+
:updated_at,
|
|
10655
|
+
:description)
|
|
10656
|
+
SENSITIVE = [:name, :description]
|
|
10657
|
+
include Aws::Structure
|
|
10658
|
+
end
|
|
10659
|
+
|
|
10660
|
+
# A summary of one numbered version of a retrieval instruction, without
|
|
10661
|
+
# the content.
|
|
10662
|
+
#
|
|
10663
|
+
# @!attribute [rw] version
|
|
10664
|
+
# The version number.
|
|
10665
|
+
# @return [String]
|
|
10666
|
+
#
|
|
10667
|
+
# @!attribute [rw] created_at
|
|
10668
|
+
# When this version was created.
|
|
10669
|
+
# @return [Time]
|
|
10670
|
+
#
|
|
10671
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/RetrievalInstructionVersionSummary AWS API Documentation
|
|
10672
|
+
#
|
|
10673
|
+
class RetrievalInstructionVersionSummary < Struct.new(
|
|
10674
|
+
:version,
|
|
10675
|
+
:created_at)
|
|
10676
|
+
SENSITIVE = []
|
|
10677
|
+
include Aws::Structure
|
|
10678
|
+
end
|
|
10679
|
+
|
|
10135
10680
|
# Contains information about the content to ingest into a knowledge base
|
|
10136
10681
|
# connected to an Amazon S3 data source.
|
|
10137
10682
|
#
|
|
@@ -12248,6 +12793,76 @@ module Aws::BedrockAgent
|
|
|
12248
12793
|
include Aws::Structure
|
|
12249
12794
|
end
|
|
12250
12795
|
|
|
12796
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
12797
|
+
# The identifier of the retrieval instruction to update.
|
|
12798
|
+
# @return [String]
|
|
12799
|
+
#
|
|
12800
|
+
# @!attribute [rw] instruction
|
|
12801
|
+
# The replacement instruction content. This is a full replacement of
|
|
12802
|
+
# all four fields, not a patch. During UPDATING, Get continues to
|
|
12803
|
+
# return the previously-served content until the update review passes.
|
|
12804
|
+
# @return [Types::RetrievalInstructionContent]
|
|
12805
|
+
#
|
|
12806
|
+
# @!attribute [rw] description
|
|
12807
|
+
# A replacement description; applied together with the content when
|
|
12808
|
+
# the review passes. Omit to clear.
|
|
12809
|
+
# @return [String]
|
|
12810
|
+
#
|
|
12811
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateRetrievalInstructionRequest AWS API Documentation
|
|
12812
|
+
#
|
|
12813
|
+
class UpdateRetrievalInstructionRequest < Struct.new(
|
|
12814
|
+
:retrieval_instruction_id,
|
|
12815
|
+
:instruction,
|
|
12816
|
+
:description)
|
|
12817
|
+
SENSITIVE = [:instruction, :description]
|
|
12818
|
+
include Aws::Structure
|
|
12819
|
+
end
|
|
12820
|
+
|
|
12821
|
+
# @!attribute [rw] retrieval_instruction_id
|
|
12822
|
+
# The identifier of the retrieval instruction.
|
|
12823
|
+
# @return [String]
|
|
12824
|
+
#
|
|
12825
|
+
# @!attribute [rw] retrieval_instruction_arn
|
|
12826
|
+
# The ARN of the retrieval instruction.
|
|
12827
|
+
# @return [String]
|
|
12828
|
+
#
|
|
12829
|
+
# @!attribute [rw] name
|
|
12830
|
+
# The name of the retrieval instruction.
|
|
12831
|
+
# @return [String]
|
|
12832
|
+
#
|
|
12833
|
+
# @!attribute [rw] status
|
|
12834
|
+
# Whether the instruction can be used. An update never lowers status.
|
|
12835
|
+
# Unchanged from the previous value on this response.
|
|
12836
|
+
# @return [String]
|
|
12837
|
+
#
|
|
12838
|
+
# @!attribute [rw] last_transition_status
|
|
12839
|
+
# Always UPDATING on this response. Poll GetRetrievalInstruction until
|
|
12840
|
+
# this member is neither CREATING nor UPDATING, then read the outcome
|
|
12841
|
+
# from it.
|
|
12842
|
+
# @return [String]
|
|
12843
|
+
#
|
|
12844
|
+
# @!attribute [rw] created_at
|
|
12845
|
+
# When you created the retrieval instruction.
|
|
12846
|
+
# @return [Time]
|
|
12847
|
+
#
|
|
12848
|
+
# @!attribute [rw] updated_at
|
|
12849
|
+
# When the retrieval instruction was last updated.
|
|
12850
|
+
# @return [Time]
|
|
12851
|
+
#
|
|
12852
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateRetrievalInstructionResponse AWS API Documentation
|
|
12853
|
+
#
|
|
12854
|
+
class UpdateRetrievalInstructionResponse < Struct.new(
|
|
12855
|
+
:retrieval_instruction_id,
|
|
12856
|
+
:retrieval_instruction_arn,
|
|
12857
|
+
:name,
|
|
12858
|
+
:status,
|
|
12859
|
+
:last_transition_status,
|
|
12860
|
+
:created_at,
|
|
12861
|
+
:updated_at)
|
|
12862
|
+
SENSITIVE = [:name]
|
|
12863
|
+
include Aws::Structure
|
|
12864
|
+
end
|
|
12865
|
+
|
|
12251
12866
|
# The configuration of web URLs that you want to crawl. You should be
|
|
12252
12867
|
# authorized to crawl the URLs.
|
|
12253
12868
|
#
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED