aws-sdk-bedrockruntime 1.4.0 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e47aba4aaaef4d803a0830d5bae55f9f5eef29e9c45c8c32ff8947c66c5437f2
4
- data.tar.gz: cc26cecb150bc309daf5105d6b2ca9c5f3d61bd0fe55d12955d4883af35e450b
3
+ metadata.gz: 3b2d8b2b15d0b645438082efa8cc021dacc23b1edaad27237f1bcb530a99703e
4
+ data.tar.gz: 1143c1e6b8065ab13d4155e03120b5717f87a5d791b6b9ba17507161867bb4b2
5
5
  SHA512:
6
- metadata.gz: cc87bab9d2a5ec57c4d63739449d4628430130018c225e191116358aa90b11e79812b1185bda6012ba768897f912498a96fc0effeaaa65e5b530c5f7e96f4696
7
- data.tar.gz: d0a44c08b6c16f714413d2dd07f02897ac948f6daea73a678945230e1cbd46c506c03a7dfec44ba485a58795efcff11d30b5828bf875b49cda68f15cf02edc1b
6
+ metadata.gz: e3a7125448b85f078ad163ff9c4b0ff571f895320dd1cb33af4a0942041fa9ec4c155a97a1d46788c666f0104f533f1872a01fc3c058213ffd0868e43e0d9483
7
+ data.tar.gz: eaf09e1d79b45fa084ccd8753b1e48bbf7b8e890ebdef33ae661274f160acd12423190963e2858988841945b4d5597f7a010ee0d9be1f0ee1b29aa15a66efdc4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.5.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.4.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.5.0
@@ -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.4.0'
707
+ context[:gem_version] = '1.5.0'
708
708
  Seahorse::Client::Request.new(handlers, context)
709
709
  end
710
710
 
@@ -14,6 +14,7 @@ module Aws::BedrockRuntime
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::BedrockRuntime::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-bedrockruntime/event_streams'
54
54
  # @!group service
55
55
  module Aws::BedrockRuntime
56
56
 
57
- GEM_VERSION = '1.4.0'
57
+ GEM_VERSION = '1.5.0'
58
58
 
59
59
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,108 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockRuntime
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?event_stream_handler: Proc,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?input_event_stream_handler: Proc,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?output_event_stream_handler: Proc,
43
+ ?profile: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?stub_responses: untyped,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> instance
75
+ | (?Hash[Symbol, untyped]) -> instance
76
+
77
+
78
+ interface _InvokeModelResponseSuccess
79
+ include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelResponse]
80
+ def body: () -> ::String
81
+ def content_type: () -> ::String
82
+ end
83
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model-instance_method
84
+ def invoke_model: (
85
+ body: ::String,
86
+ ?content_type: ::String,
87
+ ?accept: ::String,
88
+ model_id: ::String
89
+ ) -> _InvokeModelResponseSuccess
90
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
91
+
92
+ interface _InvokeModelWithResponseStreamResponseSuccess
93
+ include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelWithResponseStreamResponse]
94
+ def body: () -> Types::ResponseStream
95
+ def content_type: () -> ::String
96
+ end
97
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_response_stream-instance_method
98
+ def invoke_model_with_response_stream: (
99
+ body: ::String,
100
+ ?content_type: ::String,
101
+ ?accept: ::String,
102
+ model_id: ::String
103
+ ) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
104
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
105
+ end
106
+ end
107
+ end
108
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,50 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockRuntime
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ModelErrorException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ def original_status_code: () -> ::String
23
+ def resource_name: () -> ::String
24
+ end
25
+ class ModelNotReadyException < ::Aws::Errors::ServiceError
26
+ def message: () -> ::String
27
+ end
28
+ class ModelStreamErrorException < ::Aws::Errors::ServiceError
29
+ def message: () -> ::String
30
+ def original_status_code: () -> ::String
31
+ def original_message: () -> ::String
32
+ end
33
+ class ModelTimeoutException < ::Aws::Errors::ServiceError
34
+ def message: () -> ::String
35
+ end
36
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
37
+ def message: () -> ::String
38
+ end
39
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
40
+ def message: () -> ::String
41
+ end
42
+ class ThrottlingException < ::Aws::Errors::ServiceError
43
+ def message: () -> ::String
44
+ end
45
+ class ValidationException < ::Aws::Errors::ServiceError
46
+ def message: () -> ::String
47
+ end
48
+ end
49
+ end
50
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,82 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockRuntime
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?event_stream_handler: Proc,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?input_event_stream_handler: Proc,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?output_event_stream_handler: Proc,
43
+ ?profile: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?stub_responses: untyped,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> void
75
+ | (?Hash[Symbol, untyped]) -> void
76
+
77
+ def client: () -> Client
78
+
79
+
80
+ end
81
+ end
82
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,108 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::BedrockRuntime
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class InternalServerException
17
+ attr_accessor message: ::String
18
+ attr_accessor event_type: untyped
19
+ SENSITIVE: []
20
+ end
21
+
22
+ class InvokeModelRequest
23
+ attr_accessor body: ::String
24
+ attr_accessor content_type: ::String
25
+ attr_accessor accept: ::String
26
+ attr_accessor model_id: ::String
27
+ SENSITIVE: [:body]
28
+ end
29
+
30
+ class InvokeModelResponse
31
+ attr_accessor body: ::String
32
+ attr_accessor content_type: ::String
33
+ SENSITIVE: [:body]
34
+ end
35
+
36
+ class InvokeModelWithResponseStreamRequest
37
+ attr_accessor body: ::String
38
+ attr_accessor content_type: ::String
39
+ attr_accessor accept: ::String
40
+ attr_accessor model_id: ::String
41
+ SENSITIVE: [:body]
42
+ end
43
+
44
+ class InvokeModelWithResponseStreamResponse
45
+ attr_accessor body: Types::ResponseStream
46
+ attr_accessor content_type: ::String
47
+ SENSITIVE: []
48
+ end
49
+
50
+ class ModelErrorException
51
+ attr_accessor message: ::String
52
+ attr_accessor original_status_code: ::Integer
53
+ attr_accessor resource_name: ::String
54
+ SENSITIVE: []
55
+ end
56
+
57
+ class ModelNotReadyException
58
+ attr_accessor message: ::String
59
+ SENSITIVE: []
60
+ end
61
+
62
+ class ModelStreamErrorException
63
+ attr_accessor message: ::String
64
+ attr_accessor original_status_code: ::Integer
65
+ attr_accessor original_message: ::String
66
+ attr_accessor event_type: untyped
67
+ SENSITIVE: []
68
+ end
69
+
70
+ class ModelTimeoutException
71
+ attr_accessor message: ::String
72
+ attr_accessor event_type: untyped
73
+ SENSITIVE: []
74
+ end
75
+
76
+ class PayloadPart
77
+ attr_accessor bytes: ::String
78
+ attr_accessor event_type: untyped
79
+ SENSITIVE: [:bytes]
80
+ end
81
+
82
+ class ResourceNotFoundException
83
+ attr_accessor message: ::String
84
+ SENSITIVE: []
85
+ end
86
+
87
+ class ServiceQuotaExceededException
88
+ attr_accessor message: ::String
89
+ SENSITIVE: []
90
+ end
91
+
92
+ class ThrottlingException
93
+ attr_accessor message: ::String
94
+ attr_accessor event_type: untyped
95
+ SENSITIVE: []
96
+ end
97
+
98
+ class ValidationException
99
+ attr_accessor message: ::String
100
+ attr_accessor event_type: untyped
101
+ SENSITIVE: []
102
+ end
103
+
104
+ class ResponseStream < Enumerator[untyped, untyped]
105
+ def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception]
106
+ end
107
+ end
108
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockRuntime
10
+ module Waiters
11
+ end
12
+ end
13
+ 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.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-01-26 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.188.0
22
+ version: 3.191.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.188.0
32
+ version: 3.191.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -68,13 +68,18 @@ files:
68
68
  - lib/aws-sdk-bedrockruntime/resource.rb
69
69
  - lib/aws-sdk-bedrockruntime/types.rb
70
70
  - lib/aws-sdk-bedrockruntime/waiters.rb
71
+ - sig/client.rbs
72
+ - sig/errors.rbs
73
+ - sig/resource.rbs
74
+ - sig/types.rbs
75
+ - sig/waiters.rbs
71
76
  homepage: https://github.com/aws/aws-sdk-ruby
72
77
  licenses:
73
78
  - Apache-2.0
74
79
  metadata:
75
80
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-bedrockruntime
76
81
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-bedrockruntime/CHANGELOG.md
77
- post_install_message:
82
+ post_install_message:
78
83
  rdoc_options: []
79
84
  require_paths:
80
85
  - lib
@@ -89,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
94
  - !ruby/object:Gem::Version
90
95
  version: '0'
91
96
  requirements: []
92
- rubygems_version: 3.1.6
93
- signing_key:
97
+ rubygems_version: 3.4.10
98
+ signing_key:
94
99
  specification_version: 4
95
100
  summary: AWS SDK for Ruby - Amazon Bedrock Runtime
96
101
  test_files: []