aws-sdk-bedrockruntime 1.2.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +27 -27
- data/lib/aws-sdk-bedrockruntime/client_api.rb +5 -5
- data/lib/aws-sdk-bedrockruntime/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/errors.rb +4 -4
- data/lib/aws-sdk-bedrockruntime/event_streams.rb +6 -6
- data/lib/aws-sdk-bedrockruntime/plugins/endpoints.rb +3 -2
- data/lib/aws-sdk-bedrockruntime/types.rb +19 -19
- data/lib/aws-sdk-bedrockruntime/waiters.rb +15 -0
- data/lib/aws-sdk-bedrockruntime.rb +2 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e47aba4aaaef4d803a0830d5bae55f9f5eef29e9c45c8c32ff8947c66c5437f2
|
4
|
+
data.tar.gz: cc26cecb150bc309daf5105d6b2ca9c5f3d61bd0fe55d12955d4883af35e450b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc87bab9d2a5ec57c4d63739449d4628430130018c225e191116358aa90b11e79812b1185bda6012ba768897f912498a96fc0effeaaa65e5b530c5f7e96f4696
|
7
|
+
data.tar.gz: d0a44c08b6c16f714413d2dd07f02897ac948f6daea73a678945230e1cbd46c506c03a7dfec44ba485a58795efcff11d30b5828bf875b49cda68f15cf02edc1b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.4.0 (2023-11-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for minor versions/aliases for invoke model identifier.
|
8
|
+
|
9
|
+
1.3.0 (2023-11-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.2.0 (2023-11-14)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
@@ -412,10 +412,6 @@ module Aws::BedrockRuntime
|
|
412
412
|
#
|
413
413
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html
|
414
414
|
#
|
415
|
-
# @option params [String] :accept
|
416
|
-
# The desired MIME type of the inference body in the response. The
|
417
|
-
# default value is `application/json`.
|
418
|
-
#
|
419
415
|
# @option params [required, String, StringIO, File] :body
|
420
416
|
# Input data in the format specified in the content-type request header.
|
421
417
|
# To see the format and content of this field for different models,
|
@@ -429,6 +425,10 @@ module Aws::BedrockRuntime
|
|
429
425
|
# The MIME type of the input data in the request. The default value is
|
430
426
|
# `application/json`.
|
431
427
|
#
|
428
|
+
# @option params [String] :accept
|
429
|
+
# The desired MIME type of the inference body in the response. The
|
430
|
+
# default value is `application/json`.
|
431
|
+
#
|
432
432
|
# @option params [required, String] :model_id
|
433
433
|
# Identifier of the model.
|
434
434
|
#
|
@@ -440,9 +440,9 @@ module Aws::BedrockRuntime
|
|
440
440
|
# @example Request syntax with placeholder values
|
441
441
|
#
|
442
442
|
# resp = client.invoke_model({
|
443
|
-
# accept: "MimeType",
|
444
443
|
# body: "data", # required
|
445
444
|
# content_type: "MimeType",
|
445
|
+
# accept: "MimeType",
|
446
446
|
# model_id: "InvokeModelIdentifier", # required
|
447
447
|
# })
|
448
448
|
#
|
@@ -473,10 +473,6 @@ module Aws::BedrockRuntime
|
|
473
473
|
#
|
474
474
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html
|
475
475
|
#
|
476
|
-
# @option params [String] :accept
|
477
|
-
# The desired MIME type of the inference body in the response. The
|
478
|
-
# default value is `application/json`.
|
479
|
-
#
|
480
476
|
# @option params [required, String, StringIO, File] :body
|
481
477
|
# Inference input in the format specified by the content-type. To see
|
482
478
|
# the format and content of this field for different models, refer to
|
@@ -490,6 +486,10 @@ module Aws::BedrockRuntime
|
|
490
486
|
# The MIME type of the input data in the request. The default value is
|
491
487
|
# `application/json`.
|
492
488
|
#
|
489
|
+
# @option params [String] :accept
|
490
|
+
# The desired MIME type of the inference body in the response. The
|
491
|
+
# default value is `application/json`.
|
492
|
+
#
|
493
493
|
# @option params [required, String] :model_id
|
494
494
|
# Id of the model to invoke using the streaming request.
|
495
495
|
#
|
@@ -550,14 +550,14 @@ module Aws::BedrockRuntime
|
|
550
550
|
# handler.on_model_stream_error_exception_event do |event|
|
551
551
|
# event # => Aws::BedrockRuntime::Types::modelStreamErrorException
|
552
552
|
# end
|
553
|
-
# handler.
|
554
|
-
# event # => Aws::BedrockRuntime::Types::
|
553
|
+
# handler.on_validation_exception_event do |event|
|
554
|
+
# event # => Aws::BedrockRuntime::Types::validationException
|
555
555
|
# end
|
556
556
|
# handler.on_throttling_exception_event do |event|
|
557
557
|
# event # => Aws::BedrockRuntime::Types::throttlingException
|
558
558
|
# end
|
559
|
-
# handler.
|
560
|
-
# event # => Aws::BedrockRuntime::Types::
|
559
|
+
# handler.on_model_timeout_exception_event do |event|
|
560
|
+
# event # => Aws::BedrockRuntime::Types::modelTimeoutException
|
561
561
|
# end
|
562
562
|
#
|
563
563
|
# client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
|
@@ -575,14 +575,14 @@ module Aws::BedrockRuntime
|
|
575
575
|
# stream.on_model_stream_error_exception_event do |event|
|
576
576
|
# event # => Aws::BedrockRuntime::Types::modelStreamErrorException
|
577
577
|
# end
|
578
|
-
# stream.
|
579
|
-
# event # => Aws::BedrockRuntime::Types::
|
578
|
+
# stream.on_validation_exception_event do |event|
|
579
|
+
# event # => Aws::BedrockRuntime::Types::validationException
|
580
580
|
# end
|
581
581
|
# stream.on_throttling_exception_event do |event|
|
582
582
|
# event # => Aws::BedrockRuntime::Types::throttlingException
|
583
583
|
# end
|
584
|
-
# stream.
|
585
|
-
# event # => Aws::BedrockRuntime::Types::
|
584
|
+
# stream.on_model_timeout_exception_event do |event|
|
585
|
+
# event # => Aws::BedrockRuntime::Types::modelTimeoutException
|
586
586
|
# end
|
587
587
|
# end
|
588
588
|
#
|
@@ -600,14 +600,14 @@ module Aws::BedrockRuntime
|
|
600
600
|
# handler.on_model_stream_error_exception_event do |event|
|
601
601
|
# event # => Aws::BedrockRuntime::Types::modelStreamErrorException
|
602
602
|
# end
|
603
|
-
# handler.
|
604
|
-
# event # => Aws::BedrockRuntime::Types::
|
603
|
+
# handler.on_validation_exception_event do |event|
|
604
|
+
# event # => Aws::BedrockRuntime::Types::validationException
|
605
605
|
# end
|
606
606
|
# handler.on_throttling_exception_event do |event|
|
607
607
|
# event # => Aws::BedrockRuntime::Types::throttlingException
|
608
608
|
# end
|
609
|
-
# handler.
|
610
|
-
# event # => Aws::BedrockRuntime::Types::
|
609
|
+
# handler.on_model_timeout_exception_event do |event|
|
610
|
+
# event # => Aws::BedrockRuntime::Types::modelTimeoutException
|
611
611
|
# end
|
612
612
|
#
|
613
613
|
# client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler) do |stream|
|
@@ -630,9 +630,9 @@ module Aws::BedrockRuntime
|
|
630
630
|
# @example Request syntax with placeholder values
|
631
631
|
#
|
632
632
|
# resp = client.invoke_model_with_response_stream({
|
633
|
-
# accept: "MimeType",
|
634
633
|
# body: "data", # required
|
635
634
|
# content_type: "MimeType",
|
635
|
+
# accept: "MimeType",
|
636
636
|
# model_id: "InvokeModelIdentifier", # required
|
637
637
|
# })
|
638
638
|
#
|
@@ -640,7 +640,7 @@ module Aws::BedrockRuntime
|
|
640
640
|
#
|
641
641
|
# All events are available at resp.body:
|
642
642
|
# resp.body #=> Enumerator
|
643
|
-
# resp.body.event_types #=> [:chunk, :internal_server_exception, :model_stream_error_exception, :
|
643
|
+
# resp.body.event_types #=> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception]
|
644
644
|
#
|
645
645
|
# For :chunk event available at #on_chunk_event callback and response eventstream enumerator:
|
646
646
|
# event.bytes #=> String
|
@@ -650,16 +650,16 @@ module Aws::BedrockRuntime
|
|
650
650
|
#
|
651
651
|
# For :model_stream_error_exception event available at #on_model_stream_error_exception_event callback and response eventstream enumerator:
|
652
652
|
# event.message #=> String
|
653
|
-
# event.original_message #=> String
|
654
653
|
# event.original_status_code #=> Integer
|
654
|
+
# event.original_message #=> String
|
655
655
|
#
|
656
|
-
# For :
|
656
|
+
# For :validation_exception event available at #on_validation_exception_event callback and response eventstream enumerator:
|
657
657
|
# event.message #=> String
|
658
658
|
#
|
659
659
|
# For :throttling_exception event available at #on_throttling_exception_event callback and response eventstream enumerator:
|
660
660
|
# event.message #=> String
|
661
661
|
#
|
662
|
-
# For :
|
662
|
+
# For :model_timeout_exception event available at #on_model_timeout_exception_event callback and response eventstream enumerator:
|
663
663
|
# event.message #=> String
|
664
664
|
#
|
665
665
|
# resp.content_type #=> String
|
@@ -704,7 +704,7 @@ module Aws::BedrockRuntime
|
|
704
704
|
params: params,
|
705
705
|
config: config)
|
706
706
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
707
|
-
context[:gem_version] = '1.
|
707
|
+
context[:gem_version] = '1.4.0'
|
708
708
|
Seahorse::Client::Request.new(handlers, context)
|
709
709
|
end
|
710
710
|
|
@@ -42,9 +42,9 @@ module Aws::BedrockRuntime
|
|
42
42
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
43
43
|
InternalServerException.struct_class = Types::InternalServerException
|
44
44
|
|
45
|
-
InvokeModelRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Accept"))
|
46
45
|
InvokeModelRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
|
47
46
|
InvokeModelRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Content-Type"))
|
47
|
+
InvokeModelRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Accept"))
|
48
48
|
InvokeModelRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId"))
|
49
49
|
InvokeModelRequest.struct_class = Types::InvokeModelRequest
|
50
50
|
InvokeModelRequest[:payload] = :body
|
@@ -56,9 +56,9 @@ module Aws::BedrockRuntime
|
|
56
56
|
InvokeModelResponse[:payload] = :body
|
57
57
|
InvokeModelResponse[:payload_member] = InvokeModelResponse.member(:body)
|
58
58
|
|
59
|
-
InvokeModelWithResponseStreamRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "X-Amzn-Bedrock-Accept"))
|
60
59
|
InvokeModelWithResponseStreamRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
|
61
60
|
InvokeModelWithResponseStreamRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Content-Type"))
|
61
|
+
InvokeModelWithResponseStreamRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "X-Amzn-Bedrock-Accept"))
|
62
62
|
InvokeModelWithResponseStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId"))
|
63
63
|
InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest
|
64
64
|
InvokeModelWithResponseStreamRequest[:payload] = :body
|
@@ -79,8 +79,8 @@ module Aws::BedrockRuntime
|
|
79
79
|
ModelNotReadyException.struct_class = Types::ModelNotReadyException
|
80
80
|
|
81
81
|
ModelStreamErrorException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
82
|
-
ModelStreamErrorException.add_member(:original_message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "originalMessage"))
|
83
82
|
ModelStreamErrorException.add_member(:original_status_code, Shapes::ShapeRef.new(shape: StatusCode, location_name: "originalStatusCode"))
|
83
|
+
ModelStreamErrorException.add_member(:original_message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "originalMessage"))
|
84
84
|
ModelStreamErrorException.struct_class = Types::ModelStreamErrorException
|
85
85
|
|
86
86
|
ModelTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
@@ -95,9 +95,9 @@ module Aws::BedrockRuntime
|
|
95
95
|
ResponseStream.add_member(:chunk, Shapes::ShapeRef.new(shape: PayloadPart, event: true, location_name: "chunk"))
|
96
96
|
ResponseStream.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
|
97
97
|
ResponseStream.add_member(:model_stream_error_exception, Shapes::ShapeRef.new(shape: ModelStreamErrorException, location_name: "modelStreamErrorException"))
|
98
|
-
ResponseStream.add_member(:model_timeout_exception, Shapes::ShapeRef.new(shape: ModelTimeoutException, location_name: "modelTimeoutException"))
|
99
|
-
ResponseStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
|
100
98
|
ResponseStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
|
99
|
+
ResponseStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
|
100
|
+
ResponseStream.add_member(:model_timeout_exception, Shapes::ShapeRef.new(shape: ModelTimeoutException, location_name: "modelTimeoutException"))
|
101
101
|
ResponseStream.struct_class = Types::ResponseStream
|
102
102
|
|
103
103
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
@@ -32,7 +32,7 @@ module Aws::BedrockRuntime
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-runtime-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -129,13 +129,13 @@ module Aws::BedrockRuntime
|
|
129
129
|
end
|
130
130
|
|
131
131
|
# @return [String]
|
132
|
-
def
|
133
|
-
@data[:
|
132
|
+
def original_status_code
|
133
|
+
@data[:original_status_code]
|
134
134
|
end
|
135
135
|
|
136
136
|
# @return [String]
|
137
|
-
def
|
138
|
-
@data[:
|
137
|
+
def original_message
|
138
|
+
@data[:original_message]
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
@@ -27,16 +27,16 @@ module Aws::BedrockRuntime
|
|
27
27
|
@event_emitter.on(:model_stream_error_exception, block) if block_given?
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
31
|
-
@event_emitter.on(:
|
30
|
+
def on_validation_exception_event(&block)
|
31
|
+
@event_emitter.on(:validation_exception, block) if block_given?
|
32
32
|
end
|
33
33
|
|
34
34
|
def on_throttling_exception_event(&block)
|
35
35
|
@event_emitter.on(:throttling_exception, block) if block_given?
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
39
|
-
@event_emitter.on(:
|
38
|
+
def on_model_timeout_exception_event(&block)
|
39
|
+
@event_emitter.on(:model_timeout_exception, block) if block_given?
|
40
40
|
end
|
41
41
|
|
42
42
|
def on_error_event(&block)
|
@@ -55,9 +55,9 @@ module Aws::BedrockRuntime
|
|
55
55
|
on_chunk_event(&block)
|
56
56
|
on_internal_server_exception_event(&block)
|
57
57
|
on_model_stream_error_exception_event(&block)
|
58
|
-
on_model_timeout_exception_event(&block)
|
59
|
-
on_throttling_exception_event(&block)
|
60
58
|
on_validation_exception_event(&block)
|
59
|
+
on_throttling_exception_event(&block)
|
60
|
+
on_model_timeout_exception_event(&block)
|
61
61
|
on_error_event(&block)
|
62
62
|
on_initial_response_event(&block)
|
63
63
|
on_unknown_event(&block)
|
@@ -25,16 +25,17 @@ module Aws::BedrockRuntime
|
|
25
25
|
# @api private
|
26
26
|
class Handler < Seahorse::Client::Handler
|
27
27
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
28
|
unless context[:discovered_endpoint]
|
30
29
|
params = parameters_for_operation(context)
|
31
30
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
31
|
|
33
32
|
context.http_request.endpoint = endpoint.url
|
34
33
|
apply_endpoint_headers(context, endpoint.headers)
|
34
|
+
|
35
|
+
context[:endpoint_params] = params
|
36
|
+
context[:endpoint_properties] = endpoint.properties
|
35
37
|
end
|
36
38
|
|
37
|
-
context[:endpoint_params] = params
|
38
39
|
context[:auth_scheme] =
|
39
40
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
41
|
|
@@ -37,11 +37,6 @@ module Aws::BedrockRuntime
|
|
37
37
|
include Aws::Structure
|
38
38
|
end
|
39
39
|
|
40
|
-
# @!attribute [rw] accept
|
41
|
-
# The desired MIME type of the inference body in the response. The
|
42
|
-
# default value is `application/json`.
|
43
|
-
# @return [String]
|
44
|
-
#
|
45
40
|
# @!attribute [rw] body
|
46
41
|
# Input data in the format specified in the content-type request
|
47
42
|
# header. To see the format and content of this field for different
|
@@ -57,6 +52,11 @@ module Aws::BedrockRuntime
|
|
57
52
|
# `application/json`.
|
58
53
|
# @return [String]
|
59
54
|
#
|
55
|
+
# @!attribute [rw] accept
|
56
|
+
# The desired MIME type of the inference body in the response. The
|
57
|
+
# default value is `application/json`.
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
60
|
# @!attribute [rw] model_id
|
61
61
|
# Identifier of the model.
|
62
62
|
# @return [String]
|
@@ -64,9 +64,9 @@ module Aws::BedrockRuntime
|
|
64
64
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelRequest AWS API Documentation
|
65
65
|
#
|
66
66
|
class InvokeModelRequest < Struct.new(
|
67
|
-
:accept,
|
68
67
|
:body,
|
69
68
|
:content_type,
|
69
|
+
:accept,
|
70
70
|
:model_id)
|
71
71
|
SENSITIVE = [:body]
|
72
72
|
include Aws::Structure
|
@@ -95,11 +95,6 @@ module Aws::BedrockRuntime
|
|
95
95
|
include Aws::Structure
|
96
96
|
end
|
97
97
|
|
98
|
-
# @!attribute [rw] accept
|
99
|
-
# The desired MIME type of the inference body in the response. The
|
100
|
-
# default value is `application/json`.
|
101
|
-
# @return [String]
|
102
|
-
#
|
103
98
|
# @!attribute [rw] body
|
104
99
|
# Inference input in the format specified by the content-type. To see
|
105
100
|
# the format and content of this field for different models, refer to
|
@@ -115,6 +110,11 @@ module Aws::BedrockRuntime
|
|
115
110
|
# `application/json`.
|
116
111
|
# @return [String]
|
117
112
|
#
|
113
|
+
# @!attribute [rw] accept
|
114
|
+
# The desired MIME type of the inference body in the response. The
|
115
|
+
# default value is `application/json`.
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
118
|
# @!attribute [rw] model_id
|
119
119
|
# Id of the model to invoke using the streaming request.
|
120
120
|
# @return [String]
|
@@ -122,9 +122,9 @@ module Aws::BedrockRuntime
|
|
122
122
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamRequest AWS API Documentation
|
123
123
|
#
|
124
124
|
class InvokeModelWithResponseStreamRequest < Struct.new(
|
125
|
-
:accept,
|
126
125
|
:body,
|
127
126
|
:content_type,
|
127
|
+
:accept,
|
128
128
|
:model_id)
|
129
129
|
SENSITIVE = [:body]
|
130
130
|
include Aws::Structure
|
@@ -195,20 +195,20 @@ module Aws::BedrockRuntime
|
|
195
195
|
# @!attribute [rw] message
|
196
196
|
# @return [String]
|
197
197
|
#
|
198
|
-
# @!attribute [rw] original_message
|
199
|
-
# The original message.
|
200
|
-
# @return [String]
|
201
|
-
#
|
202
198
|
# @!attribute [rw] original_status_code
|
203
199
|
# The original status code.
|
204
200
|
# @return [Integer]
|
205
201
|
#
|
202
|
+
# @!attribute [rw] original_message
|
203
|
+
# The original message.
|
204
|
+
# @return [String]
|
205
|
+
#
|
206
206
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ModelStreamErrorException AWS API Documentation
|
207
207
|
#
|
208
208
|
class ModelStreamErrorException < Struct.new(
|
209
209
|
:message,
|
210
|
-
:original_message,
|
211
210
|
:original_status_code,
|
211
|
+
:original_message,
|
212
212
|
:event_type)
|
213
213
|
SENSITIVE = []
|
214
214
|
include Aws::Structure
|
@@ -315,9 +315,9 @@ module Aws::BedrockRuntime
|
|
315
315
|
:chunk,
|
316
316
|
:internal_server_exception,
|
317
317
|
:model_stream_error_exception,
|
318
|
-
:
|
318
|
+
:validation_exception,
|
319
319
|
:throttling_exception,
|
320
|
-
:
|
320
|
+
:model_timeout_exception
|
321
321
|
]
|
322
322
|
end
|
323
323
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::BedrockRuntime
|
13
|
+
module Waiters
|
14
|
+
end
|
15
|
+
end
|
@@ -16,6 +16,7 @@ require_relative 'aws-sdk-bedrockruntime/client_api'
|
|
16
16
|
require_relative 'aws-sdk-bedrockruntime/plugins/endpoints.rb'
|
17
17
|
require_relative 'aws-sdk-bedrockruntime/client'
|
18
18
|
require_relative 'aws-sdk-bedrockruntime/errors'
|
19
|
+
require_relative 'aws-sdk-bedrockruntime/waiters'
|
19
20
|
require_relative 'aws-sdk-bedrockruntime/resource'
|
20
21
|
require_relative 'aws-sdk-bedrockruntime/endpoint_parameters'
|
21
22
|
require_relative 'aws-sdk-bedrockruntime/endpoint_provider'
|
@@ -53,6 +54,6 @@ require_relative 'aws-sdk-bedrockruntime/event_streams'
|
|
53
54
|
# @!group service
|
54
55
|
module Aws::BedrockRuntime
|
55
56
|
|
56
|
-
GEM_VERSION = '1.
|
57
|
+
GEM_VERSION = '1.4.0'
|
57
58
|
|
58
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.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: 2023-11-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.188.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.188.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- lib/aws-sdk-bedrockruntime/plugins/endpoints.rb
|
68
68
|
- lib/aws-sdk-bedrockruntime/resource.rb
|
69
69
|
- lib/aws-sdk-bedrockruntime/types.rb
|
70
|
+
- lib/aws-sdk-bedrockruntime/waiters.rb
|
70
71
|
homepage: https://github.com/aws/aws-sdk-ruby
|
71
72
|
licenses:
|
72
73
|
- Apache-2.0
|
@@ -81,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
82
|
requirements:
|
82
83
|
- - ">="
|
83
84
|
- !ruby/object:Gem::Version
|
84
|
-
version: '2.
|
85
|
+
version: '2.5'
|
85
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
87
|
requirements:
|
87
88
|
- - ">="
|