aws-sdk-bedrockagent 1.43.0 → 1.49.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 +30 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +49 -40
- data/lib/aws-sdk-bedrockagent/client_api.rb +3 -0
- data/lib/aws-sdk-bedrockagent/endpoint_provider.rb +13 -17
- data/lib/aws-sdk-bedrockagent/types.rb +29 -21
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +8 -2
- data/sig/types.rbs +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d9a93ad2541b7738095a0af9ceef1150d9a711effd0d998b902f05bdeedc2f
|
4
|
+
data.tar.gz: e8289989f37bb59f53b723cd27ab0e25d6afe8def9848cff8042c288c40ba340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eac7beea7b38d10b52b09b7f572877d87df12e0b4c07e346fc516597f45b0d2ab287ce0970c24dcae8957355e420f2311f599a996370a612ddecc27d8406b2c
|
7
|
+
data.tar.gz: 2c2adb40e3eaeb7d2e4f311a314464aebbb7a2628219ada32ae842adc7f6d5a64c3e0b897a33f4bfe2a6ad96c20f74456f9e35092edb58122adb086fc3398c18
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,36 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2025-02-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release lets Amazon Bedrock Flows support newer models by increasing the maximum length of output in a prompt configuration. This release also increases the maximum number of prompt variables to 20 and the maximum number of node inputs to 20.
|
8
|
+
|
9
|
+
1.48.0 (2025-02-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release improves support for newer models in Amazon Bedrock Flows.
|
13
|
+
|
14
|
+
1.47.0 (2025-02-21)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Introduce a new parameter which represents the user-agent header value used by the Bedrock Knowledge Base Web Connector.
|
18
|
+
|
19
|
+
1.46.0 (2025-02-18)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
24
|
+
1.45.0 (2025-02-12)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - This releases adds the additionalModelRequestFields field to the CreateAgent and UpdateAgent operations. Use additionalModelRequestFields to specify additional inference parameters for a model beyond the base inference parameters.
|
28
|
+
|
29
|
+
1.44.0 (2025-02-06)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
4
34
|
1.43.0 (2025-01-27)
|
5
35
|
------------------
|
6
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
@@ -7,34 +7,34 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
-
require 'seahorse/client/plugins/content_length
|
11
|
-
require 'aws-sdk-core/plugins/credentials_configuration
|
12
|
-
require 'aws-sdk-core/plugins/logging
|
13
|
-
require 'aws-sdk-core/plugins/param_converter
|
14
|
-
require 'aws-sdk-core/plugins/param_validator
|
15
|
-
require 'aws-sdk-core/plugins/user_agent
|
16
|
-
require 'aws-sdk-core/plugins/helpful_socket_errors
|
17
|
-
require 'aws-sdk-core/plugins/retry_errors
|
18
|
-
require 'aws-sdk-core/plugins/global_configuration
|
19
|
-
require 'aws-sdk-core/plugins/regional_endpoint
|
20
|
-
require 'aws-sdk-core/plugins/endpoint_discovery
|
21
|
-
require 'aws-sdk-core/plugins/endpoint_pattern
|
22
|
-
require 'aws-sdk-core/plugins/response_paging
|
23
|
-
require 'aws-sdk-core/plugins/stub_responses
|
24
|
-
require 'aws-sdk-core/plugins/idempotency_token
|
25
|
-
require 'aws-sdk-core/plugins/invocation_id
|
26
|
-
require 'aws-sdk-core/plugins/jsonvalue_converter
|
27
|
-
require 'aws-sdk-core/plugins/client_metrics_plugin
|
28
|
-
require 'aws-sdk-core/plugins/client_metrics_send_plugin
|
29
|
-
require 'aws-sdk-core/plugins/transfer_encoding
|
30
|
-
require 'aws-sdk-core/plugins/http_checksum
|
31
|
-
require 'aws-sdk-core/plugins/checksum_algorithm
|
32
|
-
require 'aws-sdk-core/plugins/request_compression
|
33
|
-
require 'aws-sdk-core/plugins/defaults_mode
|
34
|
-
require 'aws-sdk-core/plugins/recursion_detection
|
35
|
-
require 'aws-sdk-core/plugins/telemetry
|
36
|
-
require 'aws-sdk-core/plugins/sign
|
37
|
-
require 'aws-sdk-core/plugins/protocols/rest_json
|
10
|
+
require 'seahorse/client/plugins/content_length'
|
11
|
+
require 'aws-sdk-core/plugins/credentials_configuration'
|
12
|
+
require 'aws-sdk-core/plugins/logging'
|
13
|
+
require 'aws-sdk-core/plugins/param_converter'
|
14
|
+
require 'aws-sdk-core/plugins/param_validator'
|
15
|
+
require 'aws-sdk-core/plugins/user_agent'
|
16
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors'
|
17
|
+
require 'aws-sdk-core/plugins/retry_errors'
|
18
|
+
require 'aws-sdk-core/plugins/global_configuration'
|
19
|
+
require 'aws-sdk-core/plugins/regional_endpoint'
|
20
|
+
require 'aws-sdk-core/plugins/endpoint_discovery'
|
21
|
+
require 'aws-sdk-core/plugins/endpoint_pattern'
|
22
|
+
require 'aws-sdk-core/plugins/response_paging'
|
23
|
+
require 'aws-sdk-core/plugins/stub_responses'
|
24
|
+
require 'aws-sdk-core/plugins/idempotency_token'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id'
|
26
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter'
|
27
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin'
|
28
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin'
|
29
|
+
require 'aws-sdk-core/plugins/transfer_encoding'
|
30
|
+
require 'aws-sdk-core/plugins/http_checksum'
|
31
|
+
require 'aws-sdk-core/plugins/checksum_algorithm'
|
32
|
+
require 'aws-sdk-core/plugins/request_compression'
|
33
|
+
require 'aws-sdk-core/plugins/defaults_mode'
|
34
|
+
require 'aws-sdk-core/plugins/recursion_detection'
|
35
|
+
require 'aws-sdk-core/plugins/telemetry'
|
36
|
+
require 'aws-sdk-core/plugins/sign'
|
37
|
+
require 'aws-sdk-core/plugins/protocols/rest_json'
|
38
38
|
|
39
39
|
module Aws::BedrockAgent
|
40
40
|
# An API client for BedrockAgent. To construct a client, you need to configure a `:region` and `:credentials`.
|
@@ -777,6 +777,8 @@ module Aws::BedrockAgent
|
|
777
777
|
# override_lambda: "LambdaArn",
|
778
778
|
# prompt_configurations: [ # required
|
779
779
|
# {
|
780
|
+
# additional_model_request_fields: {
|
781
|
+
# },
|
780
782
|
# base_prompt_template: "BasePromptTemplate",
|
781
783
|
# foundation_model: "ModelIdentifier",
|
782
784
|
# inference_configuration: {
|
@@ -1259,6 +1261,7 @@ module Aws::BedrockAgent
|
|
1259
1261
|
# inclusion_filters: ["FilterPattern"],
|
1260
1262
|
# scope: "HOST_ONLY", # accepts HOST_ONLY, SUBDOMAINS
|
1261
1263
|
# user_agent: "UserAgent",
|
1264
|
+
# user_agent_header: "UserAgentHeader",
|
1262
1265
|
# },
|
1263
1266
|
# source_configuration: { # required
|
1264
1267
|
# url_configuration: { # required
|
@@ -1383,6 +1386,7 @@ module Aws::BedrockAgent
|
|
1383
1386
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.inclusion_filters[0] #=> String
|
1384
1387
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.scope #=> String, one of "HOST_ONLY", "SUBDOMAINS"
|
1385
1388
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.user_agent #=> String
|
1389
|
+
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.user_agent_header #=> String
|
1386
1390
|
# resp.data_source.data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls #=> Array
|
1387
1391
|
# resp.data_source.data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls[0].url #=> String
|
1388
1392
|
# resp.data_source.data_source_id #=> String
|
@@ -2986,12 +2990,12 @@ module Aws::BedrockAgent
|
|
2986
2990
|
|
2987
2991
|
# Deletes documents from a data source and syncs the changes to the
|
2988
2992
|
# knowledge base that is connected to it. For more information, see
|
2989
|
-
# [Ingest
|
2993
|
+
# [Ingest changes directly into a knowledge base][1] in the Amazon
|
2990
2994
|
# Bedrock User Guide.
|
2991
2995
|
#
|
2992
2996
|
#
|
2993
2997
|
#
|
2994
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
2998
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html
|
2995
2999
|
#
|
2996
3000
|
# @option params [String] :client_token
|
2997
3001
|
# A unique, case-sensitive identifier to ensure that the API request
|
@@ -3575,6 +3579,7 @@ module Aws::BedrockAgent
|
|
3575
3579
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.inclusion_filters[0] #=> String
|
3576
3580
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.scope #=> String, one of "HOST_ONLY", "SUBDOMAINS"
|
3577
3581
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.user_agent #=> String
|
3582
|
+
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.user_agent_header #=> String
|
3578
3583
|
# resp.data_source.data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls #=> Array
|
3579
3584
|
# resp.data_source.data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls[0].url #=> String
|
3580
3585
|
# resp.data_source.data_source_id #=> String
|
@@ -4101,12 +4106,12 @@ module Aws::BedrockAgent
|
|
4101
4106
|
end
|
4102
4107
|
|
4103
4108
|
# Retrieves specific documents from a data source that is connected to a
|
4104
|
-
# knowledge base. For more information, see [Ingest
|
4105
|
-
# knowledge base
|
4109
|
+
# knowledge base. For more information, see [Ingest changes directly
|
4110
|
+
# into a knowledge base][1] in the Amazon Bedrock User Guide.
|
4106
4111
|
#
|
4107
4112
|
#
|
4108
4113
|
#
|
4109
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
4114
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html
|
4110
4115
|
#
|
4111
4116
|
# @option params [required, String] :data_source_id
|
4112
4117
|
# The unique identifier of the data source that contains the documents.
|
@@ -4258,12 +4263,12 @@ module Aws::BedrockAgent
|
|
4258
4263
|
# Ingests documents directly into the knowledge base that is connected
|
4259
4264
|
# to the data source. The `dataSourceType` specified in the content for
|
4260
4265
|
# each document must match the type of the data source that you specify
|
4261
|
-
# in the header. For more information, see [Ingest
|
4262
|
-
# knowledge base
|
4266
|
+
# in the header. For more information, see [Ingest changes directly into
|
4267
|
+
# a knowledge base][1] in the Amazon Bedrock User Guide.
|
4263
4268
|
#
|
4264
4269
|
#
|
4265
4270
|
#
|
4266
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
4271
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html
|
4267
4272
|
#
|
4268
4273
|
# @option params [String] :client_token
|
4269
4274
|
# A unique, case-sensitive identifier to ensure that the API request
|
@@ -5010,12 +5015,12 @@ module Aws::BedrockAgent
|
|
5010
5015
|
|
5011
5016
|
# Retrieves all the documents contained in a data source that is
|
5012
5017
|
# connected to a knowledge base. For more information, see [Ingest
|
5013
|
-
#
|
5014
|
-
#
|
5018
|
+
# changes directly into a knowledge base][1] in the Amazon Bedrock User
|
5019
|
+
# Guide.
|
5015
5020
|
#
|
5016
5021
|
#
|
5017
5022
|
#
|
5018
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
5023
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html
|
5019
5024
|
#
|
5020
5025
|
# @option params [required, String] :data_source_id
|
5021
5026
|
# The unique identifier of the data source that contains the documents.
|
@@ -5602,6 +5607,8 @@ module Aws::BedrockAgent
|
|
5602
5607
|
# override_lambda: "LambdaArn",
|
5603
5608
|
# prompt_configurations: [ # required
|
5604
5609
|
# {
|
5610
|
+
# additional_model_request_fields: {
|
5611
|
+
# },
|
5605
5612
|
# base_prompt_template: "BasePromptTemplate",
|
5606
5613
|
# foundation_model: "ModelIdentifier",
|
5607
5614
|
# inference_configuration: {
|
@@ -6125,6 +6132,7 @@ module Aws::BedrockAgent
|
|
6125
6132
|
# inclusion_filters: ["FilterPattern"],
|
6126
6133
|
# scope: "HOST_ONLY", # accepts HOST_ONLY, SUBDOMAINS
|
6127
6134
|
# user_agent: "UserAgent",
|
6135
|
+
# user_agent_header: "UserAgentHeader",
|
6128
6136
|
# },
|
6129
6137
|
# source_configuration: { # required
|
6130
6138
|
# url_configuration: { # required
|
@@ -6250,6 +6258,7 @@ module Aws::BedrockAgent
|
|
6250
6258
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.inclusion_filters[0] #=> String
|
6251
6259
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.scope #=> String, one of "HOST_ONLY", "SUBDOMAINS"
|
6252
6260
|
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.user_agent #=> String
|
6261
|
+
# resp.data_source.data_source_configuration.web_configuration.crawler_configuration.user_agent_header #=> String
|
6253
6262
|
# resp.data_source.data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls #=> Array
|
6254
6263
|
# resp.data_source.data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls[0].url #=> String
|
6255
6264
|
# resp.data_source.data_source_id #=> String
|
@@ -7439,7 +7448,7 @@ module Aws::BedrockAgent
|
|
7439
7448
|
tracer: tracer
|
7440
7449
|
)
|
7441
7450
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
7442
|
-
context[:gem_version] = '1.
|
7451
|
+
context[:gem_version] = '1.49.0'
|
7443
7452
|
Seahorse::Client::Request.new(handlers, context)
|
7444
7453
|
end
|
7445
7454
|
|
@@ -618,6 +618,7 @@ module Aws::BedrockAgent
|
|
618
618
|
Url = Shapes::StringShape.new(name: 'Url')
|
619
619
|
UrlConfiguration = Shapes::StructureShape.new(name: 'UrlConfiguration')
|
620
620
|
UserAgent = Shapes::StringShape.new(name: 'UserAgent')
|
621
|
+
UserAgentHeader = Shapes::StringShape.new(name: 'UserAgentHeader')
|
621
622
|
ValidateFlowDefinitionRequest = Shapes::StructureShape.new(name: 'ValidateFlowDefinitionRequest')
|
622
623
|
ValidateFlowDefinitionResponse = Shapes::StructureShape.new(name: 'ValidateFlowDefinitionResponse')
|
623
624
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
@@ -2081,6 +2082,7 @@ module Aws::BedrockAgent
|
|
2081
2082
|
PromptAgentResource.add_member(:agent_identifier, Shapes::ShapeRef.new(shape: AgentAliasArn, required: true, location_name: "agentIdentifier"))
|
2082
2083
|
PromptAgentResource.struct_class = Types::PromptAgentResource
|
2083
2084
|
|
2085
|
+
PromptConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
|
2084
2086
|
PromptConfiguration.add_member(:base_prompt_template, Shapes::ShapeRef.new(shape: BasePromptTemplate, location_name: "basePromptTemplate"))
|
2085
2087
|
PromptConfiguration.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
|
2086
2088
|
PromptConfiguration.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
|
@@ -2704,6 +2706,7 @@ module Aws::BedrockAgent
|
|
2704
2706
|
WebCrawlerConfiguration.add_member(:inclusion_filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "inclusionFilters"))
|
2705
2707
|
WebCrawlerConfiguration.add_member(:scope, Shapes::ShapeRef.new(shape: WebScopeType, location_name: "scope"))
|
2706
2708
|
WebCrawlerConfiguration.add_member(:user_agent, Shapes::ShapeRef.new(shape: UserAgent, location_name: "userAgent"))
|
2709
|
+
WebCrawlerConfiguration.add_member(:user_agent_header, Shapes::ShapeRef.new(shape: UserAgentHeader, location_name: "userAgentHeader"))
|
2707
2710
|
WebCrawlerConfiguration.struct_class = Types::WebCrawlerConfiguration
|
2708
2711
|
|
2709
2712
|
WebCrawlerLimits.add_member(:max_pages, Shapes::ShapeRef.new(shape: WebCrawlerLimitsMaxPagesInteger, location_name: "maxPages"))
|
@@ -10,40 +10,36 @@
|
|
10
10
|
module Aws::BedrockAgent
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
15
|
-
use_fips = parameters.use_fips
|
16
|
-
endpoint = parameters.endpoint
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
16
|
end
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
19
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
25
21
|
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
27
|
end
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
29
|
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
35
31
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
33
|
end
|
38
34
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
35
|
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
41
37
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
39
|
end
|
44
40
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
41
|
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
43
|
end
|
48
44
|
end
|
49
45
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -1231,20 +1231,11 @@ module Aws::BedrockAgent
|
|
1231
1231
|
include Aws::Structure
|
1232
1232
|
end
|
1233
1233
|
|
1234
|
-
# Settings for a foundation model
|
1235
|
-
#
|
1236
|
-
#
|
1237
|
-
#
|
1238
|
-
#
|
1239
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
|
1234
|
+
# Settings for a foundation model used to parse documents for a data
|
1235
|
+
# source.
|
1240
1236
|
#
|
1241
1237
|
# @!attribute [rw] model_arn
|
1242
|
-
# The ARN of the foundation model
|
1243
|
-
# parsing.
|
1244
|
-
#
|
1245
|
-
#
|
1246
|
-
#
|
1247
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
|
1238
|
+
# The ARN of the foundation model to use for parsing.
|
1248
1239
|
# @return [String]
|
1249
1240
|
#
|
1250
1241
|
# @!attribute [rw] parsing_modality
|
@@ -7509,6 +7500,16 @@ module Aws::BedrockAgent
|
|
7509
7500
|
#
|
7510
7501
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html
|
7511
7502
|
#
|
7503
|
+
# @!attribute [rw] additional_model_request_fields
|
7504
|
+
# If the Converse or ConverseStream operations support the model,
|
7505
|
+
# `additionalModelRequestFields` contains additional inference
|
7506
|
+
# parameters, beyond the base set of inference parameters in the
|
7507
|
+
# `inferenceConfiguration` field.
|
7508
|
+
#
|
7509
|
+
# For more information, see *Inference request parameters and response
|
7510
|
+
# fields for foundation models* in the Amazon Bedrock user guide.
|
7511
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
7512
|
+
#
|
7512
7513
|
# @!attribute [rw] base_prompt_template
|
7513
7514
|
# Defines the prompt template with which to replace the default prompt
|
7514
7515
|
# template. You can use placeholder variables in the base prompt
|
@@ -7580,6 +7581,7 @@ module Aws::BedrockAgent
|
|
7580
7581
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PromptConfiguration AWS API Documentation
|
7581
7582
|
#
|
7582
7583
|
class PromptConfiguration < Struct.new(
|
7584
|
+
:additional_model_request_fields,
|
7583
7585
|
:base_prompt_template,
|
7584
7586
|
:foundation_model,
|
7585
7587
|
:inference_configuration,
|
@@ -10617,8 +10619,8 @@ module Aws::BedrockAgent
|
|
10617
10619
|
# the knowledge base.
|
10618
10620
|
#
|
10619
10621
|
# @!attribute [rw] embedding_model_arn
|
10620
|
-
# The Amazon Resource Name (ARN) of the model
|
10621
|
-
#
|
10622
|
+
# The Amazon Resource Name (ARN) of the model used to create vector
|
10623
|
+
# embeddings for the knowledge base.
|
10622
10624
|
# @return [String]
|
10623
10625
|
#
|
10624
10626
|
# @!attribute [rw] embedding_model_configuration
|
@@ -10682,11 +10684,16 @@ module Aws::BedrockAgent
|
|
10682
10684
|
# @return [String]
|
10683
10685
|
#
|
10684
10686
|
# @!attribute [rw] user_agent
|
10685
|
-
#
|
10686
|
-
#
|
10687
|
-
#
|
10688
|
-
#
|
10689
|
-
#
|
10687
|
+
# Returns the user agent suffix for your web crawler.
|
10688
|
+
# @return [String]
|
10689
|
+
#
|
10690
|
+
# @!attribute [rw] user_agent_header
|
10691
|
+
# A string used for identifying the crawler or bot when it accesses a
|
10692
|
+
# web server. The user agent header value consists of the
|
10693
|
+
# `bedrockbot`, UUID, and a user agent suffix for your crawler (if one
|
10694
|
+
# is provided). By default, it is set to `bedrockbot_UUID`. You can
|
10695
|
+
# optionally append a custom suffix to `bedrockbot_UUID` to allowlist
|
10696
|
+
# a specific user agent permitted to access your source URLs.
|
10690
10697
|
# @return [String]
|
10691
10698
|
#
|
10692
10699
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/WebCrawlerConfiguration AWS API Documentation
|
@@ -10696,8 +10703,9 @@ module Aws::BedrockAgent
|
|
10696
10703
|
:exclusion_filters,
|
10697
10704
|
:inclusion_filters,
|
10698
10705
|
:scope,
|
10699
|
-
:user_agent
|
10700
|
-
|
10706
|
+
:user_agent,
|
10707
|
+
:user_agent_header)
|
10708
|
+
SENSITIVE = [:exclusion_filters, :inclusion_filters, :user_agent, :user_agent_header]
|
10701
10709
|
include Aws::Structure
|
10702
10710
|
end
|
10703
10711
|
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -145,6 +145,8 @@ module Aws
|
|
145
145
|
override_lambda: ::String?,
|
146
146
|
prompt_configurations: Array[
|
147
147
|
{
|
148
|
+
additional_model_request_fields: {
|
149
|
+
}?,
|
148
150
|
base_prompt_template: ::String?,
|
149
151
|
foundation_model: ::String?,
|
150
152
|
inference_configuration: {
|
@@ -317,7 +319,8 @@ module Aws
|
|
317
319
|
exclusion_filters: Array[::String]?,
|
318
320
|
inclusion_filters: Array[::String]?,
|
319
321
|
scope: ("HOST_ONLY" | "SUBDOMAINS")?,
|
320
|
-
user_agent: ::String
|
322
|
+
user_agent: ::String?,
|
323
|
+
user_agent_header: ::String?
|
321
324
|
}?,
|
322
325
|
source_configuration: {
|
323
326
|
url_configuration: {
|
@@ -1681,6 +1684,8 @@ module Aws
|
|
1681
1684
|
override_lambda: ::String?,
|
1682
1685
|
prompt_configurations: Array[
|
1683
1686
|
{
|
1687
|
+
additional_model_request_fields: {
|
1688
|
+
}?,
|
1684
1689
|
base_prompt_template: ::String?,
|
1685
1690
|
foundation_model: ::String?,
|
1686
1691
|
inference_configuration: {
|
@@ -1882,7 +1887,8 @@ module Aws
|
|
1882
1887
|
exclusion_filters: Array[::String]?,
|
1883
1888
|
inclusion_filters: Array[::String]?,
|
1884
1889
|
scope: ("HOST_ONLY" | "SUBDOMAINS")?,
|
1885
|
-
user_agent: ::String
|
1890
|
+
user_agent: ::String?,
|
1891
|
+
user_agent_header: ::String?
|
1886
1892
|
}?,
|
1887
1893
|
source_configuration: {
|
1888
1894
|
url_configuration: {
|
data/sig/types.rbs
CHANGED
@@ -1908,6 +1908,7 @@ module Aws::BedrockAgent
|
|
1908
1908
|
end
|
1909
1909
|
|
1910
1910
|
class PromptConfiguration
|
1911
|
+
attr_accessor additional_model_request_fields: untyped
|
1911
1912
|
attr_accessor base_prompt_template: ::String
|
1912
1913
|
attr_accessor foundation_model: ::String
|
1913
1914
|
attr_accessor inference_configuration: Types::InferenceConfiguration
|
@@ -2755,7 +2756,8 @@ module Aws::BedrockAgent
|
|
2755
2756
|
attr_accessor inclusion_filters: ::Array[::String]
|
2756
2757
|
attr_accessor scope: ("HOST_ONLY" | "SUBDOMAINS")
|
2757
2758
|
attr_accessor user_agent: ::String
|
2758
|
-
|
2759
|
+
attr_accessor user_agent_header: ::String
|
2760
|
+
SENSITIVE: [:exclusion_filters, :inclusion_filters, :user_agent, :user_agent_header]
|
2759
2761
|
end
|
2760
2762
|
|
2761
2763
|
class WebCrawlerLimits
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|