aws-sdk-bedrock 1.53.0 → 1.55.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: d949463ffa3761ba4c843b884658ce2833c3f0ceaaeeb4d99a952bb15a866635
4
- data.tar.gz: 795c2cc017319a18581c041f81db7f4ba041bd1345071baebd022aa2c58fac0d
3
+ metadata.gz: 80ce78828c6fa954091fe546d14fc37a85f8526ef2fc129b5bba05da53962b0c
4
+ data.tar.gz: 30f053e7dfb0d294a59595885683bfc1e3e1b4dfd6d22318a7f74e15d49fe2e7
5
5
  SHA512:
6
- metadata.gz: cd4c231fd4c2b626085a79708ab2d16e2b08c55f805c8fef2383be0b6926492a5d6d8a0657bb1a5b65ccf199c913321ccc0567ec48263317f0ff457f0a908257
7
- data.tar.gz: '0875fe8ddbd14c58019cc256e67369ef0d7584c72a587c85e3f4ea5a50bf912bc309189ec1f85ec0f3de5ad4ef038f3b7ffecfdcceee7cca78a16692e791791c'
6
+ metadata.gz: ec62f19bb69071e4c3813944dba6d61a3ee31658c9e1fba0124e9398ba4da149314c145b09084b7fcc2af4fa65a458c4506d12eab6041a66c37374d8f64beafc
7
+ data.tar.gz: c5611eeb71fce56e3c1b238fa10251570e3ec04133b13af5977718229c8a56c5461951fbba9120040e44082b79d5a7f4d49fb3fb6bbff422b461a175bcb6ac9a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.55.0 (2025-07-21)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Feature - Support `ENV['AWS_BEARER_TOKEN_BEDROCK']` for authentication with Amazon Bedrock APIs.
10
+
11
+ 1.54.0 (2025-07-16)
12
+ ------------------
13
+
14
+ * Feature - This release adds support for on-demand custom model inference through CustomModelDeployment APIs for Amazon Bedrock.
15
+
4
16
  1.53.0 (2025-06-30)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.53.0
1
+ 1.55.0
@@ -35,6 +35,7 @@ require 'aws-sdk-core/plugins/recursion_detection'
35
35
  require 'aws-sdk-core/plugins/telemetry'
36
36
  require 'aws-sdk-core/plugins/sign'
37
37
  require 'aws-sdk-core/plugins/protocols/rest_json'
38
+ require 'aws-sdk-bedrock/plugins/bearer_authorization'
38
39
 
39
40
  module Aws::Bedrock
40
41
  # An API client for Bedrock. To construct a client, you need to configure a `:region` and `:credentials`.
@@ -85,6 +86,7 @@ module Aws::Bedrock
85
86
  add_plugin(Aws::Plugins::Telemetry)
86
87
  add_plugin(Aws::Plugins::Sign)
87
88
  add_plugin(Aws::Plugins::Protocols::RestJson)
89
+ add_plugin(Aws::Bedrock::Plugins::BearerAuthorization)
88
90
  add_plugin(Aws::Bedrock::Plugins::Endpoints)
89
91
 
90
92
  # @overload initialize(options)
@@ -95,7 +97,7 @@ module Aws::Bedrock
95
97
  # class name or an instance of a plugin class.
96
98
  #
97
99
  # @option options [required, Aws::CredentialProvider] :credentials
98
- # Your AWS credentials. This can be an instance of any one of the
100
+ # Your AWS credentials used for authentication. This can be an instance of any one of the
99
101
  # following classes:
100
102
  #
101
103
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
@@ -128,18 +130,23 @@ module Aws::Bedrock
128
130
  # locations will be searched for credentials:
129
131
  #
130
132
  # * `Aws.config[:credentials]`
133
+ #
131
134
  # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
135
  # `:account_id` options.
133
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
- # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
136
+ #
137
+ # * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
138
+ # `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
139
+ #
135
140
  # * `~/.aws/credentials`
141
+ #
136
142
  # * `~/.aws/config`
143
+ #
137
144
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
145
  # are very aggressive. Construct and pass an instance of
139
146
  # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
147
  # enable retries and extended timeouts. Instance profile credential
141
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
- # to true.
148
+ # fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
149
+ # to `true`.
143
150
  #
144
151
  # @option options [required, String] :region
145
152
  # The AWS region to connect to. The configured `:region` is
@@ -167,6 +174,11 @@ module Aws::Bedrock
167
174
  # When false, the request will raise a `RetryCapacityNotAvailableError` and will
168
175
  # not retry instead of sleeping.
169
176
  #
177
+ # @option options [Array<String>] :auth_scheme_preference
178
+ # A list of preferred authentication schemes to use when making a request. Supported values are:
179
+ # `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
180
+ # shared config as `auth_scheme_preference`, the value should be a comma-separated list.
181
+ #
170
182
  # @option options [Boolean] :client_side_monitoring (false)
171
183
  # When `true`, client-side metrics will be collected for all API requests from
172
184
  # this client.
@@ -253,8 +265,8 @@ module Aws::Bedrock
253
265
  # 4 times. Used in `standard` and `adaptive` retry modes.
254
266
  #
255
267
  # @option options [String] :profile ("default")
256
- # Used when loading credentials from the shared credentials file
257
- # at HOME/.aws/credentials. When not specified, 'default' is used.
268
+ # Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
269
+ # When not specified, 'default' is used.
258
270
  #
259
271
  # @option options [String] :request_checksum_calculation ("when_supported")
260
272
  # Determines when a checksum will be calculated for request payloads. Values are:
@@ -367,7 +379,7 @@ module Aws::Bedrock
367
379
  # `Aws::Telemetry::OTelProvider` for telemetry provider.
368
380
  #
369
381
  # @option options [Aws::TokenProvider] :token_provider
370
- # A Bearer Token Provider. This can be an instance of any one of the
382
+ # Your Bearer token used for authentication. This can be an instance of any one of the
371
383
  # following classes:
372
384
  #
373
385
  # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
@@ -697,6 +709,92 @@ module Aws::Bedrock
697
709
  req.send_request(options)
698
710
  end
699
711
 
712
+ # Deploys a custom model for on-demand inference in Amazon Bedrock.
713
+ # After you deploy your custom model, you use the deployment's Amazon
714
+ # Resource Name (ARN) as the `modelId` parameter when you submit prompts
715
+ # and generate responses with model inference.
716
+ #
717
+ # For more information about setting up on-demand inference for custom
718
+ # models, see [Set up inference for a custom model][1].
719
+ #
720
+ # The following actions are related to the `CreateCustomModelDeployment`
721
+ # operation:
722
+ #
723
+ # * [GetCustomModelDeployment][2]
724
+ #
725
+ # * [ListCustomModelDeployments][3]
726
+ #
727
+ # * [DeleteCustomModelDeployment][4]
728
+ #
729
+ #
730
+ #
731
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
732
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html
733
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html
734
+ # [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
735
+ #
736
+ # @option params [required, String] :model_deployment_name
737
+ # The name for the custom model deployment. The name must be unique
738
+ # within your Amazon Web Services account and Region.
739
+ #
740
+ # @option params [required, String] :model_arn
741
+ # The Amazon Resource Name (ARN) of the custom model to deploy for
742
+ # on-demand inference. The custom model must be in the `Active` state.
743
+ #
744
+ # @option params [String] :description
745
+ # A description for the custom model deployment to help you identify its
746
+ # purpose.
747
+ #
748
+ # @option params [Array<Types::Tag>] :tags
749
+ # Tags to assign to the custom model deployment. You can use tags to
750
+ # organize and track your Amazon Web Services resources for cost
751
+ # allocation and management purposes.
752
+ #
753
+ # @option params [String] :client_request_token
754
+ # A unique, case-sensitive identifier to ensure that the operation
755
+ # completes no more than one time. If this token matches a previous
756
+ # request, Amazon Bedrock ignores the request, but does not return an
757
+ # error. For more information, see [Ensuring idempotency][1].
758
+ #
759
+ # **A suitable default value is auto-generated.** You should normally
760
+ # not need to pass this option.**
761
+ #
762
+ #
763
+ #
764
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-idempotency.html
765
+ #
766
+ # @return [Types::CreateCustomModelDeploymentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
767
+ #
768
+ # * {Types::CreateCustomModelDeploymentResponse#custom_model_deployment_arn #custom_model_deployment_arn} => String
769
+ #
770
+ # @example Request syntax with placeholder values
771
+ #
772
+ # resp = client.create_custom_model_deployment({
773
+ # model_deployment_name: "ModelDeploymentName", # required
774
+ # model_arn: "CustomModelArn", # required
775
+ # description: "CustomModelDeploymentDescription",
776
+ # tags: [
777
+ # {
778
+ # key: "TagKey", # required
779
+ # value: "TagValue", # required
780
+ # },
781
+ # ],
782
+ # client_request_token: "IdempotencyToken",
783
+ # })
784
+ #
785
+ # @example Response structure
786
+ #
787
+ # resp.custom_model_deployment_arn #=> String
788
+ #
789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelDeployment AWS API Documentation
790
+ #
791
+ # @overload create_custom_model_deployment(params = {})
792
+ # @param [Hash] params ({})
793
+ def create_custom_model_deployment(params = {}, options = {})
794
+ req = build_request(:create_custom_model_deployment, params)
795
+ req.send_request(options)
796
+ end
797
+
700
798
  # Creates an evaluation job.
701
799
  #
702
800
  # @option params [required, String] :job_name
@@ -2377,6 +2475,46 @@ module Aws::Bedrock
2377
2475
  req.send_request(options)
2378
2476
  end
2379
2477
 
2478
+ # Deletes a custom model deployment. This operation stops the deployment
2479
+ # and removes it from your account. After deletion, the deployment ARN
2480
+ # can no longer be used for inference requests.
2481
+ #
2482
+ # The following actions are related to the `DeleteCustomModelDeployment`
2483
+ # operation:
2484
+ #
2485
+ # * [CreateCustomModelDeployment][1]
2486
+ #
2487
+ # * [GetCustomModelDeployment][2]
2488
+ #
2489
+ # * [ListCustomModelDeployments][3]
2490
+ #
2491
+ #
2492
+ #
2493
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html
2494
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html
2495
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html
2496
+ #
2497
+ # @option params [required, String] :custom_model_deployment_identifier
2498
+ # The Amazon Resource Name (ARN) or name of the custom model deployment
2499
+ # to delete.
2500
+ #
2501
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2502
+ #
2503
+ # @example Request syntax with placeholder values
2504
+ #
2505
+ # resp = client.delete_custom_model_deployment({
2506
+ # custom_model_deployment_identifier: "CustomModelDeploymentIdentifier", # required
2507
+ # })
2508
+ #
2509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteCustomModelDeployment AWS API Documentation
2510
+ #
2511
+ # @overload delete_custom_model_deployment(params = {})
2512
+ # @param [Hash] params ({})
2513
+ def delete_custom_model_deployment(params = {}, options = {})
2514
+ req = build_request(:delete_custom_model_deployment, params)
2515
+ req.send_request(options)
2516
+ end
2517
+
2380
2518
  # Delete the model access agreement for the specified model.
2381
2519
  #
2382
2520
  # @option params [required, String] :model_id
@@ -2688,6 +2826,66 @@ module Aws::Bedrock
2688
2826
  req.send_request(options)
2689
2827
  end
2690
2828
 
2829
+ # Retrieves information about a custom model deployment, including its
2830
+ # status, configuration, and metadata. Use this operation to monitor the
2831
+ # deployment status and retrieve details needed for inference requests.
2832
+ #
2833
+ # The following actions are related to the `GetCustomModelDeployment`
2834
+ # operation:
2835
+ #
2836
+ # * [CreateCustomModelDeployment][1]
2837
+ #
2838
+ # * [ListCustomModelDeployments][2]
2839
+ #
2840
+ # * [DeleteCustomModelDeployment][3]
2841
+ #
2842
+ #
2843
+ #
2844
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html
2845
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html
2846
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
2847
+ #
2848
+ # @option params [required, String] :custom_model_deployment_identifier
2849
+ # The Amazon Resource Name (ARN) or name of the custom model deployment
2850
+ # to retrieve information about.
2851
+ #
2852
+ # @return [Types::GetCustomModelDeploymentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2853
+ #
2854
+ # * {Types::GetCustomModelDeploymentResponse#custom_model_deployment_arn #custom_model_deployment_arn} => String
2855
+ # * {Types::GetCustomModelDeploymentResponse#model_deployment_name #model_deployment_name} => String
2856
+ # * {Types::GetCustomModelDeploymentResponse#model_arn #model_arn} => String
2857
+ # * {Types::GetCustomModelDeploymentResponse#created_at #created_at} => Time
2858
+ # * {Types::GetCustomModelDeploymentResponse#status #status} => String
2859
+ # * {Types::GetCustomModelDeploymentResponse#description #description} => String
2860
+ # * {Types::GetCustomModelDeploymentResponse#failure_message #failure_message} => String
2861
+ # * {Types::GetCustomModelDeploymentResponse#last_updated_at #last_updated_at} => Time
2862
+ #
2863
+ # @example Request syntax with placeholder values
2864
+ #
2865
+ # resp = client.get_custom_model_deployment({
2866
+ # custom_model_deployment_identifier: "CustomModelDeploymentIdentifier", # required
2867
+ # })
2868
+ #
2869
+ # @example Response structure
2870
+ #
2871
+ # resp.custom_model_deployment_arn #=> String
2872
+ # resp.model_deployment_name #=> String
2873
+ # resp.model_arn #=> String
2874
+ # resp.created_at #=> Time
2875
+ # resp.status #=> String, one of "Creating", "Active", "Failed"
2876
+ # resp.description #=> String
2877
+ # resp.failure_message #=> String
2878
+ # resp.last_updated_at #=> Time
2879
+ #
2880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModelDeployment AWS API Documentation
2881
+ #
2882
+ # @overload get_custom_model_deployment(params = {})
2883
+ # @param [Hash] params ({})
2884
+ def get_custom_model_deployment(params = {}, options = {})
2885
+ req = build_request(:get_custom_model_deployment, params)
2886
+ req.send_request(options)
2887
+ end
2888
+
2691
2889
  # Gets information about an evaluation job, such as the status of the
2692
2890
  # job.
2693
2891
  #
@@ -3669,6 +3867,102 @@ module Aws::Bedrock
3669
3867
  req.send_request(options)
3670
3868
  end
3671
3869
 
3870
+ # Lists custom model deployments in your account. You can filter the
3871
+ # results by creation time, name, status, and associated model. Use this
3872
+ # operation to manage and monitor your custom model deployments.
3873
+ #
3874
+ # We recommend using pagination to ensure that the operation returns
3875
+ # quickly and successfully.
3876
+ #
3877
+ # The following actions are related to the `ListCustomModelDeployments`
3878
+ # operation:
3879
+ #
3880
+ # * [CreateCustomModelDeployment][1]
3881
+ #
3882
+ # * [GetCustomModelDeployment][2]
3883
+ #
3884
+ # * [DeleteCustomModelDeployment][3]
3885
+ #
3886
+ #
3887
+ #
3888
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html
3889
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html
3890
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
3891
+ #
3892
+ # @option params [Time,DateTime,Date,Integer,String] :created_before
3893
+ # Filters deployments created before the specified date and time.
3894
+ #
3895
+ # @option params [Time,DateTime,Date,Integer,String] :created_after
3896
+ # Filters deployments created after the specified date and time.
3897
+ #
3898
+ # @option params [String] :name_contains
3899
+ # Filters deployments whose names contain the specified string.
3900
+ #
3901
+ # @option params [Integer] :max_results
3902
+ # The maximum number of results to return in a single call.
3903
+ #
3904
+ # @option params [String] :next_token
3905
+ # The token for the next set of results. Use this token to retrieve
3906
+ # additional results when the response is truncated.
3907
+ #
3908
+ # @option params [String] :sort_by
3909
+ # The field to sort the results by. The only supported value is
3910
+ # `CreationTime`.
3911
+ #
3912
+ # @option params [String] :sort_order
3913
+ # The sort order for the results. Valid values are `Ascending` and
3914
+ # `Descending`. Default is `Descending`.
3915
+ #
3916
+ # @option params [String] :status_equals
3917
+ # Filters deployments by status. Valid values are `CREATING`, `ACTIVE`,
3918
+ # and `FAILED`.
3919
+ #
3920
+ # @option params [String] :model_arn_equals
3921
+ # Filters deployments by the Amazon Resource Name (ARN) of the
3922
+ # associated custom model.
3923
+ #
3924
+ # @return [Types::ListCustomModelDeploymentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3925
+ #
3926
+ # * {Types::ListCustomModelDeploymentsResponse#next_token #next_token} => String
3927
+ # * {Types::ListCustomModelDeploymentsResponse#model_deployment_summaries #model_deployment_summaries} => Array&lt;Types::CustomModelDeploymentSummary&gt;
3928
+ #
3929
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3930
+ #
3931
+ # @example Request syntax with placeholder values
3932
+ #
3933
+ # resp = client.list_custom_model_deployments({
3934
+ # created_before: Time.now,
3935
+ # created_after: Time.now,
3936
+ # name_contains: "ModelDeploymentName",
3937
+ # max_results: 1,
3938
+ # next_token: "PaginationToken",
3939
+ # sort_by: "CreationTime", # accepts CreationTime
3940
+ # sort_order: "Ascending", # accepts Ascending, Descending
3941
+ # status_equals: "Creating", # accepts Creating, Active, Failed
3942
+ # model_arn_equals: "CustomModelArn",
3943
+ # })
3944
+ #
3945
+ # @example Response structure
3946
+ #
3947
+ # resp.next_token #=> String
3948
+ # resp.model_deployment_summaries #=> Array
3949
+ # resp.model_deployment_summaries[0].custom_model_deployment_arn #=> String
3950
+ # resp.model_deployment_summaries[0].custom_model_deployment_name #=> String
3951
+ # resp.model_deployment_summaries[0].model_arn #=> String
3952
+ # resp.model_deployment_summaries[0].created_at #=> Time
3953
+ # resp.model_deployment_summaries[0].status #=> String, one of "Creating", "Active", "Failed"
3954
+ # resp.model_deployment_summaries[0].last_updated_at #=> Time
3955
+ # resp.model_deployment_summaries[0].failure_message #=> String
3956
+ #
3957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModelDeployments AWS API Documentation
3958
+ #
3959
+ # @overload list_custom_model_deployments(params = {})
3960
+ # @param [Hash] params ({})
3961
+ def list_custom_model_deployments(params = {}, options = {})
3962
+ req = build_request(:list_custom_model_deployments, params)
3963
+ req.send_request(options)
3964
+ end
3965
+
3672
3966
  # Returns a list of the custom models that you have created with the
3673
3967
  # `CreateModelCustomizationJob` operation.
3674
3968
  #
@@ -5459,7 +5753,7 @@ module Aws::Bedrock
5459
5753
  tracer: tracer
5460
5754
  )
5461
5755
  context[:gem_name] = 'aws-sdk-bedrock'
5462
- context[:gem_version] = '1.53.0'
5756
+ context[:gem_version] = '1.55.0'
5463
5757
  Seahorse::Client::Request.new(handlers, context)
5464
5758
  end
5465
5759
 
@@ -52,6 +52,8 @@ module Aws::Bedrock
52
52
  CommitmentDuration = Shapes::StringShape.new(name: 'CommitmentDuration')
53
53
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
54
54
  ContentType = Shapes::StringShape.new(name: 'ContentType')
55
+ CreateCustomModelDeploymentRequest = Shapes::StructureShape.new(name: 'CreateCustomModelDeploymentRequest')
56
+ CreateCustomModelDeploymentResponse = Shapes::StructureShape.new(name: 'CreateCustomModelDeploymentResponse')
55
57
  CreateCustomModelRequest = Shapes::StructureShape.new(name: 'CreateCustomModelRequest')
56
58
  CreateCustomModelResponse = Shapes::StructureShape.new(name: 'CreateCustomModelResponse')
57
59
  CreateEvaluationJobRequest = Shapes::StructureShape.new(name: 'CreateEvaluationJobRequest')
@@ -84,6 +86,12 @@ module Aws::Bedrock
84
86
  CustomMetricEvaluatorModelConfig = Shapes::StructureShape.new(name: 'CustomMetricEvaluatorModelConfig')
85
87
  CustomMetricInstructions = Shapes::StringShape.new(name: 'CustomMetricInstructions')
86
88
  CustomModelArn = Shapes::StringShape.new(name: 'CustomModelArn')
89
+ CustomModelDeploymentArn = Shapes::StringShape.new(name: 'CustomModelDeploymentArn')
90
+ CustomModelDeploymentDescription = Shapes::StringShape.new(name: 'CustomModelDeploymentDescription')
91
+ CustomModelDeploymentIdentifier = Shapes::StringShape.new(name: 'CustomModelDeploymentIdentifier')
92
+ CustomModelDeploymentStatus = Shapes::StringShape.new(name: 'CustomModelDeploymentStatus')
93
+ CustomModelDeploymentSummary = Shapes::StructureShape.new(name: 'CustomModelDeploymentSummary')
94
+ CustomModelDeploymentSummaryList = Shapes::ListShape.new(name: 'CustomModelDeploymentSummaryList')
87
95
  CustomModelName = Shapes::StringShape.new(name: 'CustomModelName')
88
96
  CustomModelSummary = Shapes::StructureShape.new(name: 'CustomModelSummary')
89
97
  CustomModelSummaryList = Shapes::ListShape.new(name: 'CustomModelSummaryList')
@@ -92,6 +100,8 @@ module Aws::Bedrock
92
100
  CustomizationConfig = Shapes::UnionShape.new(name: 'CustomizationConfig')
93
101
  CustomizationType = Shapes::StringShape.new(name: 'CustomizationType')
94
102
  DataProcessingDetails = Shapes::StructureShape.new(name: 'DataProcessingDetails')
103
+ DeleteCustomModelDeploymentRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelDeploymentRequest')
104
+ DeleteCustomModelDeploymentResponse = Shapes::StructureShape.new(name: 'DeleteCustomModelDeploymentResponse')
95
105
  DeleteCustomModelRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelRequest')
96
106
  DeleteCustomModelResponse = Shapes::StructureShape.new(name: 'DeleteCustomModelResponse')
97
107
  DeleteFoundationModelAgreementRequest = Shapes::StructureShape.new(name: 'DeleteFoundationModelAgreementRequest')
@@ -183,6 +193,8 @@ module Aws::Bedrock
183
193
  FoundationModelSummary = Shapes::StructureShape.new(name: 'FoundationModelSummary')
184
194
  FoundationModelSummaryList = Shapes::ListShape.new(name: 'FoundationModelSummaryList')
185
195
  GenerationConfiguration = Shapes::StructureShape.new(name: 'GenerationConfiguration')
196
+ GetCustomModelDeploymentRequest = Shapes::StructureShape.new(name: 'GetCustomModelDeploymentRequest')
197
+ GetCustomModelDeploymentResponse = Shapes::StructureShape.new(name: 'GetCustomModelDeploymentResponse')
186
198
  GetCustomModelRequest = Shapes::StructureShape.new(name: 'GetCustomModelRequest')
187
199
  GetCustomModelResponse = Shapes::StructureShape.new(name: 'GetCustomModelResponse')
188
200
  GetEvaluationJobRequest = Shapes::StructureShape.new(name: 'GetEvaluationJobRequest')
@@ -358,6 +370,8 @@ module Aws::Bedrock
358
370
  KnowledgeBaseVectorSearchConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseVectorSearchConfiguration')
359
371
  KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger = Shapes::IntegerShape.new(name: 'KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger')
360
372
  LegalTerm = Shapes::StructureShape.new(name: 'LegalTerm')
373
+ ListCustomModelDeploymentsRequest = Shapes::StructureShape.new(name: 'ListCustomModelDeploymentsRequest')
374
+ ListCustomModelDeploymentsResponse = Shapes::StructureShape.new(name: 'ListCustomModelDeploymentsResponse')
361
375
  ListCustomModelsRequest = Shapes::StructureShape.new(name: 'ListCustomModelsRequest')
362
376
  ListCustomModelsResponse = Shapes::StructureShape.new(name: 'ListCustomModelsResponse')
363
377
  ListEvaluationJobsRequest = Shapes::StructureShape.new(name: 'ListEvaluationJobsRequest')
@@ -418,6 +432,7 @@ module Aws::Bedrock
418
432
  ModelCustomizationJobSummary = Shapes::StructureShape.new(name: 'ModelCustomizationJobSummary')
419
433
  ModelCustomizationList = Shapes::ListShape.new(name: 'ModelCustomizationList')
420
434
  ModelDataSource = Shapes::UnionShape.new(name: 'ModelDataSource')
435
+ ModelDeploymentName = Shapes::StringShape.new(name: 'ModelDeploymentName')
421
436
  ModelId = Shapes::StringShape.new(name: 'ModelId')
422
437
  ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
423
438
  ModelImportJobArn = Shapes::StringShape.new(name: 'ModelImportJobArn')
@@ -648,6 +663,16 @@ module Aws::Bedrock
648
663
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
649
664
  ConflictException.struct_class = Types::ConflictException
650
665
 
666
+ CreateCustomModelDeploymentRequest.add_member(:model_deployment_name, Shapes::ShapeRef.new(shape: ModelDeploymentName, required: true, location_name: "modelDeploymentName"))
667
+ CreateCustomModelDeploymentRequest.add_member(:model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, required: true, location_name: "modelArn"))
668
+ CreateCustomModelDeploymentRequest.add_member(:description, Shapes::ShapeRef.new(shape: CustomModelDeploymentDescription, location_name: "description"))
669
+ CreateCustomModelDeploymentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
670
+ CreateCustomModelDeploymentRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken" => true}))
671
+ CreateCustomModelDeploymentRequest.struct_class = Types::CreateCustomModelDeploymentRequest
672
+
673
+ CreateCustomModelDeploymentResponse.add_member(:custom_model_deployment_arn, Shapes::ShapeRef.new(shape: CustomModelDeploymentArn, required: true, location_name: "customModelDeploymentArn"))
674
+ CreateCustomModelDeploymentResponse.struct_class = Types::CreateCustomModelDeploymentResponse
675
+
651
676
  CreateCustomModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
652
677
  CreateCustomModelRequest.add_member(:model_source_config, Shapes::ShapeRef.new(shape: ModelDataSource, required: true, location_name: "modelSourceConfig"))
653
678
  CreateCustomModelRequest.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
@@ -827,6 +852,17 @@ module Aws::Bedrock
827
852
  CustomMetricEvaluatorModelConfig.add_member(:bedrock_evaluator_models, Shapes::ShapeRef.new(shape: CustomMetricBedrockEvaluatorModels, required: true, location_name: "bedrockEvaluatorModels"))
828
853
  CustomMetricEvaluatorModelConfig.struct_class = Types::CustomMetricEvaluatorModelConfig
829
854
 
855
+ CustomModelDeploymentSummary.add_member(:custom_model_deployment_arn, Shapes::ShapeRef.new(shape: CustomModelDeploymentArn, required: true, location_name: "customModelDeploymentArn"))
856
+ CustomModelDeploymentSummary.add_member(:custom_model_deployment_name, Shapes::ShapeRef.new(shape: ModelDeploymentName, required: true, location_name: "customModelDeploymentName"))
857
+ CustomModelDeploymentSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
858
+ CustomModelDeploymentSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
859
+ CustomModelDeploymentSummary.add_member(:status, Shapes::ShapeRef.new(shape: CustomModelDeploymentStatus, required: true, location_name: "status"))
860
+ CustomModelDeploymentSummary.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedAt"))
861
+ CustomModelDeploymentSummary.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
862
+ CustomModelDeploymentSummary.struct_class = Types::CustomModelDeploymentSummary
863
+
864
+ CustomModelDeploymentSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelDeploymentSummary)
865
+
830
866
  CustomModelSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, required: true, location_name: "modelArn"))
831
867
  CustomModelSummary.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
832
868
  CustomModelSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
@@ -854,6 +890,11 @@ module Aws::Bedrock
854
890
  DataProcessingDetails.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
855
891
  DataProcessingDetails.struct_class = Types::DataProcessingDetails
856
892
 
893
+ DeleteCustomModelDeploymentRequest.add_member(:custom_model_deployment_identifier, Shapes::ShapeRef.new(shape: CustomModelDeploymentIdentifier, required: true, location: "uri", location_name: "customModelDeploymentIdentifier"))
894
+ DeleteCustomModelDeploymentRequest.struct_class = Types::DeleteCustomModelDeploymentRequest
895
+
896
+ DeleteCustomModelDeploymentResponse.struct_class = Types::DeleteCustomModelDeploymentResponse
897
+
857
898
  DeleteCustomModelRequest.add_member(:model_identifier, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location: "uri", location_name: "modelIdentifier"))
858
899
  DeleteCustomModelRequest.struct_class = Types::DeleteCustomModelRequest
859
900
 
@@ -1101,6 +1142,19 @@ module Aws::Bedrock
1101
1142
  GenerationConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
1102
1143
  GenerationConfiguration.struct_class = Types::GenerationConfiguration
1103
1144
 
1145
+ GetCustomModelDeploymentRequest.add_member(:custom_model_deployment_identifier, Shapes::ShapeRef.new(shape: CustomModelDeploymentIdentifier, required: true, location: "uri", location_name: "customModelDeploymentIdentifier"))
1146
+ GetCustomModelDeploymentRequest.struct_class = Types::GetCustomModelDeploymentRequest
1147
+
1148
+ GetCustomModelDeploymentResponse.add_member(:custom_model_deployment_arn, Shapes::ShapeRef.new(shape: CustomModelDeploymentArn, required: true, location_name: "customModelDeploymentArn"))
1149
+ GetCustomModelDeploymentResponse.add_member(:model_deployment_name, Shapes::ShapeRef.new(shape: ModelDeploymentName, required: true, location_name: "modelDeploymentName"))
1150
+ GetCustomModelDeploymentResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, required: true, location_name: "modelArn"))
1151
+ GetCustomModelDeploymentResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
1152
+ GetCustomModelDeploymentResponse.add_member(:status, Shapes::ShapeRef.new(shape: CustomModelDeploymentStatus, required: true, location_name: "status"))
1153
+ GetCustomModelDeploymentResponse.add_member(:description, Shapes::ShapeRef.new(shape: CustomModelDeploymentDescription, location_name: "description"))
1154
+ GetCustomModelDeploymentResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
1155
+ GetCustomModelDeploymentResponse.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedAt"))
1156
+ GetCustomModelDeploymentResponse.struct_class = Types::GetCustomModelDeploymentResponse
1157
+
1104
1158
  GetCustomModelRequest.add_member(:model_identifier, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location: "uri", location_name: "modelIdentifier"))
1105
1159
  GetCustomModelRequest.struct_class = Types::GetCustomModelRequest
1106
1160
 
@@ -1671,6 +1725,21 @@ module Aws::Bedrock
1671
1725
  LegalTerm.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
1672
1726
  LegalTerm.struct_class = Types::LegalTerm
1673
1727
 
1728
+ ListCustomModelDeploymentsRequest.add_member(:created_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "createdBefore"))
1729
+ ListCustomModelDeploymentsRequest.add_member(:created_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "createdAfter"))
1730
+ ListCustomModelDeploymentsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: ModelDeploymentName, location: "querystring", location_name: "nameContains"))
1731
+ ListCustomModelDeploymentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1732
+ ListCustomModelDeploymentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
1733
+ ListCustomModelDeploymentsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortModelsBy, location: "querystring", location_name: "sortBy"))
1734
+ ListCustomModelDeploymentsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
1735
+ ListCustomModelDeploymentsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: CustomModelDeploymentStatus, location: "querystring", location_name: "statusEquals"))
1736
+ ListCustomModelDeploymentsRequest.add_member(:model_arn_equals, Shapes::ShapeRef.new(shape: CustomModelArn, location: "querystring", location_name: "modelArnEquals"))
1737
+ ListCustomModelDeploymentsRequest.struct_class = Types::ListCustomModelDeploymentsRequest
1738
+
1739
+ ListCustomModelDeploymentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
1740
+ ListCustomModelDeploymentsResponse.add_member(:model_deployment_summaries, Shapes::ShapeRef.new(shape: CustomModelDeploymentSummaryList, location_name: "modelDeploymentSummaries"))
1741
+ ListCustomModelDeploymentsResponse.struct_class = Types::ListCustomModelDeploymentsResponse
1742
+
1674
1743
  ListCustomModelsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
1675
1744
  ListCustomModelsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
1676
1745
  ListCustomModelsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: CustomModelName, location: "querystring", location_name: "nameContains"))
@@ -2395,6 +2464,21 @@ module Aws::Bedrock
2395
2464
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2396
2465
  end)
2397
2466
 
2467
+ api.add_operation(:create_custom_model_deployment, Seahorse::Model::Operation.new.tap do |o|
2468
+ o.name = "CreateCustomModelDeployment"
2469
+ o.http_method = "POST"
2470
+ o.http_request_uri = "/model-customization/custom-model-deployments"
2471
+ o.input = Shapes::ShapeRef.new(shape: CreateCustomModelDeploymentRequest)
2472
+ o.output = Shapes::ShapeRef.new(shape: CreateCustomModelDeploymentResponse)
2473
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2474
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2475
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2476
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2477
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
2478
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2479
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2480
+ end)
2481
+
2398
2482
  api.add_operation(:create_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
2399
2483
  o.name = "CreateEvaluationJob"
2400
2484
  o.http_method = "POST"
@@ -2590,6 +2674,20 @@ module Aws::Bedrock
2590
2674
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2591
2675
  end)
2592
2676
 
2677
+ api.add_operation(:delete_custom_model_deployment, Seahorse::Model::Operation.new.tap do |o|
2678
+ o.name = "DeleteCustomModelDeployment"
2679
+ o.http_method = "DELETE"
2680
+ o.http_request_uri = "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}"
2681
+ o.input = Shapes::ShapeRef.new(shape: DeleteCustomModelDeploymentRequest)
2682
+ o.output = Shapes::ShapeRef.new(shape: DeleteCustomModelDeploymentResponse)
2683
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2684
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2685
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2686
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2687
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2688
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2689
+ end)
2690
+
2593
2691
  api.add_operation(:delete_foundation_model_agreement, Seahorse::Model::Operation.new.tap do |o|
2594
2692
  o.name = "DeleteFoundationModelAgreement"
2595
2693
  o.http_method = "POST"
@@ -2724,6 +2822,19 @@ module Aws::Bedrock
2724
2822
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2725
2823
  end)
2726
2824
 
2825
+ api.add_operation(:get_custom_model_deployment, Seahorse::Model::Operation.new.tap do |o|
2826
+ o.name = "GetCustomModelDeployment"
2827
+ o.http_method = "GET"
2828
+ o.http_request_uri = "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}"
2829
+ o.input = Shapes::ShapeRef.new(shape: GetCustomModelDeploymentRequest)
2830
+ o.output = Shapes::ShapeRef.new(shape: GetCustomModelDeploymentResponse)
2831
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2832
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2833
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2834
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2835
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2836
+ end)
2837
+
2727
2838
  api.add_operation(:get_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
2728
2839
  o.name = "GetEvaluationJob"
2729
2840
  o.http_method = "GET"
@@ -2916,6 +3027,24 @@ module Aws::Bedrock
2916
3027
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2917
3028
  end)
2918
3029
 
3030
+ api.add_operation(:list_custom_model_deployments, Seahorse::Model::Operation.new.tap do |o|
3031
+ o.name = "ListCustomModelDeployments"
3032
+ o.http_method = "GET"
3033
+ o.http_request_uri = "/model-customization/custom-model-deployments"
3034
+ o.input = Shapes::ShapeRef.new(shape: ListCustomModelDeploymentsRequest)
3035
+ o.output = Shapes::ShapeRef.new(shape: ListCustomModelDeploymentsResponse)
3036
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3037
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3038
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3039
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3040
+ o[:pager] = Aws::Pager.new(
3041
+ limit_key: "max_results",
3042
+ tokens: {
3043
+ "next_token" => "next_token"
3044
+ }
3045
+ )
3046
+ end)
3047
+
2919
3048
  api.add_operation(:list_custom_models, Seahorse::Model::Operation.new.tap do |o|
2920
3049
  o.name = "ListCustomModels"
2921
3050
  o.http_method = "GET"
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws::Bedrock
4
+ module Plugins
5
+ # @api private
6
+ class BearerAuthorization < Seahorse::Client::Plugin
7
+ def after_initialize(client)
8
+ return unless (token = ENV['AWS_BEARER_TOKEN_BEDROCK'])
9
+
10
+ token_provider = Aws::StaticTokenProvider.new(token)
11
+ token_provider.metrics = ['BEARER_SERVICE_ENV_VARS']
12
+ client.config.token_provider ||= token_provider
13
+ end
14
+
15
+ class Handler < Seahorse::Client::Handler
16
+ def call(context)
17
+ # This also sets the preferred auth scheme even if the code token has precedence.
18
+ context[:auth_scheme] = { 'name' => 'bearer' } if ENV['AWS_BEARER_TOKEN_BEDROCK']
19
+ @handler.call(context)
20
+ end
21
+ end
22
+
23
+ # After endpoint/auth but before builders.
24
+ handle(Handler, priority: 60)
25
+ end
26
+ end
27
+ end
@@ -283,6 +283,67 @@ module Aws::Bedrock
283
283
  include Aws::Structure
284
284
  end
285
285
 
286
+ # @!attribute [rw] model_deployment_name
287
+ # The name for the custom model deployment. The name must be unique
288
+ # within your Amazon Web Services account and Region.
289
+ # @return [String]
290
+ #
291
+ # @!attribute [rw] model_arn
292
+ # The Amazon Resource Name (ARN) of the custom model to deploy for
293
+ # on-demand inference. The custom model must be in the `Active` state.
294
+ # @return [String]
295
+ #
296
+ # @!attribute [rw] description
297
+ # A description for the custom model deployment to help you identify
298
+ # its purpose.
299
+ # @return [String]
300
+ #
301
+ # @!attribute [rw] tags
302
+ # Tags to assign to the custom model deployment. You can use tags to
303
+ # organize and track your Amazon Web Services resources for cost
304
+ # allocation and management purposes.
305
+ # @return [Array<Types::Tag>]
306
+ #
307
+ # @!attribute [rw] client_request_token
308
+ # A unique, case-sensitive identifier to ensure that the operation
309
+ # completes no more than one time. If this token matches a previous
310
+ # request, Amazon Bedrock ignores the request, but does not return an
311
+ # error. For more information, see [Ensuring idempotency][1].
312
+ #
313
+ # **A suitable default value is auto-generated.** You should normally
314
+ # not need to pass this option.
315
+ #
316
+ #
317
+ #
318
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-idempotency.html
319
+ # @return [String]
320
+ #
321
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelDeploymentRequest AWS API Documentation
322
+ #
323
+ class CreateCustomModelDeploymentRequest < Struct.new(
324
+ :model_deployment_name,
325
+ :model_arn,
326
+ :description,
327
+ :tags,
328
+ :client_request_token)
329
+ SENSITIVE = []
330
+ include Aws::Structure
331
+ end
332
+
333
+ # @!attribute [rw] custom_model_deployment_arn
334
+ # The Amazon Resource Name (ARN) of the custom model deployment. Use
335
+ # this ARN as the `modelId` parameter when invoking the model with the
336
+ # `InvokeModel` or `Converse` operations.
337
+ # @return [String]
338
+ #
339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelDeploymentResponse AWS API Documentation
340
+ #
341
+ class CreateCustomModelDeploymentResponse < Struct.new(
342
+ :custom_model_deployment_arn)
343
+ SENSITIVE = []
344
+ include Aws::Structure
345
+ end
346
+
286
347
  # @!attribute [rw] model_name
287
348
  # A unique name for the custom model.
288
349
  # @return [String]
@@ -1404,6 +1465,55 @@ module Aws::Bedrock
1404
1465
  include Aws::Structure
1405
1466
  end
1406
1467
 
1468
+ # Contains summary information about a custom model deployment,
1469
+ # including its ARN, name, status, and associated custom model.
1470
+ #
1471
+ # @!attribute [rw] custom_model_deployment_arn
1472
+ # The Amazon Resource Name (ARN) of the custom model deployment.
1473
+ # @return [String]
1474
+ #
1475
+ # @!attribute [rw] custom_model_deployment_name
1476
+ # The name of the custom model deployment.
1477
+ # @return [String]
1478
+ #
1479
+ # @!attribute [rw] model_arn
1480
+ # The Amazon Resource Name (ARN) of the custom model associated with
1481
+ # this deployment.
1482
+ # @return [String]
1483
+ #
1484
+ # @!attribute [rw] created_at
1485
+ # The date and time when the custom model deployment was created.
1486
+ # @return [Time]
1487
+ #
1488
+ # @!attribute [rw] status
1489
+ # The status of the custom model deployment. Possible values are
1490
+ # `CREATING`, `ACTIVE`, and `FAILED`.
1491
+ # @return [String]
1492
+ #
1493
+ # @!attribute [rw] last_updated_at
1494
+ # The date and time when the custom model deployment was last
1495
+ # modified.
1496
+ # @return [Time]
1497
+ #
1498
+ # @!attribute [rw] failure_message
1499
+ # If the deployment status is `FAILED`, this field contains a message
1500
+ # describing the failure reason.
1501
+ # @return [String]
1502
+ #
1503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelDeploymentSummary AWS API Documentation
1504
+ #
1505
+ class CustomModelDeploymentSummary < Struct.new(
1506
+ :custom_model_deployment_arn,
1507
+ :custom_model_deployment_name,
1508
+ :model_arn,
1509
+ :created_at,
1510
+ :status,
1511
+ :last_updated_at,
1512
+ :failure_message)
1513
+ SENSITIVE = []
1514
+ include Aws::Structure
1515
+ end
1516
+
1407
1517
  # Summary information for a custom model.
1408
1518
  #
1409
1519
  # @!attribute [rw] model_arn
@@ -1543,6 +1653,23 @@ module Aws::Bedrock
1543
1653
  include Aws::Structure
1544
1654
  end
1545
1655
 
1656
+ # @!attribute [rw] custom_model_deployment_identifier
1657
+ # The Amazon Resource Name (ARN) or name of the custom model
1658
+ # deployment to delete.
1659
+ # @return [String]
1660
+ #
1661
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteCustomModelDeploymentRequest AWS API Documentation
1662
+ #
1663
+ class DeleteCustomModelDeploymentRequest < Struct.new(
1664
+ :custom_model_deployment_identifier)
1665
+ SENSITIVE = []
1666
+ include Aws::Structure
1667
+ end
1668
+
1669
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteCustomModelDeploymentResponse AWS API Documentation
1670
+ #
1671
+ class DeleteCustomModelDeploymentResponse < Aws::EmptyStructure; end
1672
+
1546
1673
  # @!attribute [rw] model_identifier
1547
1674
  # Name of the model to delete.
1548
1675
  # @return [String]
@@ -2597,6 +2724,77 @@ module Aws::Bedrock
2597
2724
  include Aws::Structure
2598
2725
  end
2599
2726
 
2727
+ # @!attribute [rw] custom_model_deployment_identifier
2728
+ # The Amazon Resource Name (ARN) or name of the custom model
2729
+ # deployment to retrieve information about.
2730
+ # @return [String]
2731
+ #
2732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModelDeploymentRequest AWS API Documentation
2733
+ #
2734
+ class GetCustomModelDeploymentRequest < Struct.new(
2735
+ :custom_model_deployment_identifier)
2736
+ SENSITIVE = []
2737
+ include Aws::Structure
2738
+ end
2739
+
2740
+ # @!attribute [rw] custom_model_deployment_arn
2741
+ # The Amazon Resource Name (ARN) of the custom model deployment.
2742
+ # @return [String]
2743
+ #
2744
+ # @!attribute [rw] model_deployment_name
2745
+ # The name of the custom model deployment.
2746
+ # @return [String]
2747
+ #
2748
+ # @!attribute [rw] model_arn
2749
+ # The Amazon Resource Name (ARN) of the custom model associated with
2750
+ # this deployment.
2751
+ # @return [String]
2752
+ #
2753
+ # @!attribute [rw] created_at
2754
+ # The date and time when the custom model deployment was created.
2755
+ # @return [Time]
2756
+ #
2757
+ # @!attribute [rw] status
2758
+ # The status of the custom model deployment. Possible values are:
2759
+ #
2760
+ # * `CREATING` - The deployment is being set up and prepared for
2761
+ # inference.
2762
+ #
2763
+ # * `ACTIVE` - The deployment is ready and available for inference
2764
+ # requests.
2765
+ #
2766
+ # * `FAILED` - The deployment failed to be created or became
2767
+ # unavailable.
2768
+ # @return [String]
2769
+ #
2770
+ # @!attribute [rw] description
2771
+ # The description of the custom model deployment.
2772
+ # @return [String]
2773
+ #
2774
+ # @!attribute [rw] failure_message
2775
+ # If the deployment status is `FAILED`, this field contains a message
2776
+ # describing the failure reason.
2777
+ # @return [String]
2778
+ #
2779
+ # @!attribute [rw] last_updated_at
2780
+ # The date and time when the custom model deployment was last updated.
2781
+ # @return [Time]
2782
+ #
2783
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModelDeploymentResponse AWS API Documentation
2784
+ #
2785
+ class GetCustomModelDeploymentResponse < Struct.new(
2786
+ :custom_model_deployment_arn,
2787
+ :model_deployment_name,
2788
+ :model_arn,
2789
+ :created_at,
2790
+ :status,
2791
+ :description,
2792
+ :failure_message,
2793
+ :last_updated_at)
2794
+ SENSITIVE = []
2795
+ include Aws::Structure
2796
+ end
2797
+
2600
2798
  # @!attribute [rw] model_identifier
2601
2799
  # Name or Amazon Resource Name (ARN) of the custom model.
2602
2800
  # @return [String]
@@ -5943,6 +6141,81 @@ module Aws::Bedrock
5943
6141
  include Aws::Structure
5944
6142
  end
5945
6143
 
6144
+ # @!attribute [rw] created_before
6145
+ # Filters deployments created before the specified date and time.
6146
+ # @return [Time]
6147
+ #
6148
+ # @!attribute [rw] created_after
6149
+ # Filters deployments created after the specified date and time.
6150
+ # @return [Time]
6151
+ #
6152
+ # @!attribute [rw] name_contains
6153
+ # Filters deployments whose names contain the specified string.
6154
+ # @return [String]
6155
+ #
6156
+ # @!attribute [rw] max_results
6157
+ # The maximum number of results to return in a single call.
6158
+ # @return [Integer]
6159
+ #
6160
+ # @!attribute [rw] next_token
6161
+ # The token for the next set of results. Use this token to retrieve
6162
+ # additional results when the response is truncated.
6163
+ # @return [String]
6164
+ #
6165
+ # @!attribute [rw] sort_by
6166
+ # The field to sort the results by. The only supported value is
6167
+ # `CreationTime`.
6168
+ # @return [String]
6169
+ #
6170
+ # @!attribute [rw] sort_order
6171
+ # The sort order for the results. Valid values are `Ascending` and
6172
+ # `Descending`. Default is `Descending`.
6173
+ # @return [String]
6174
+ #
6175
+ # @!attribute [rw] status_equals
6176
+ # Filters deployments by status. Valid values are `CREATING`,
6177
+ # `ACTIVE`, and `FAILED`.
6178
+ # @return [String]
6179
+ #
6180
+ # @!attribute [rw] model_arn_equals
6181
+ # Filters deployments by the Amazon Resource Name (ARN) of the
6182
+ # associated custom model.
6183
+ # @return [String]
6184
+ #
6185
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModelDeploymentsRequest AWS API Documentation
6186
+ #
6187
+ class ListCustomModelDeploymentsRequest < Struct.new(
6188
+ :created_before,
6189
+ :created_after,
6190
+ :name_contains,
6191
+ :max_results,
6192
+ :next_token,
6193
+ :sort_by,
6194
+ :sort_order,
6195
+ :status_equals,
6196
+ :model_arn_equals)
6197
+ SENSITIVE = []
6198
+ include Aws::Structure
6199
+ end
6200
+
6201
+ # @!attribute [rw] next_token
6202
+ # The token for the next set of results. This value is null when there
6203
+ # are no more results to return.
6204
+ # @return [String]
6205
+ #
6206
+ # @!attribute [rw] model_deployment_summaries
6207
+ # A list of custom model deployment summaries.
6208
+ # @return [Array<Types::CustomModelDeploymentSummary>]
6209
+ #
6210
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModelDeploymentsResponse AWS API Documentation
6211
+ #
6212
+ class ListCustomModelDeploymentsResponse < Struct.new(
6213
+ :next_token,
6214
+ :model_deployment_summaries)
6215
+ SENSITIVE = []
6216
+ include Aws::Structure
6217
+ end
6218
+
5946
6219
  # @!attribute [rw] creation_time_before
5947
6220
  # Return custom models created before the specified time.
5948
6221
  # @return [Time]
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.53.0'
58
+ GEM_VERSION = '1.55.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -18,6 +18,7 @@ module Aws
18
18
  ?account_id: String,
19
19
  ?active_endpoint_cache: bool,
20
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
21
22
  ?client_side_monitoring: bool,
22
23
  ?client_side_monitoring_client_id: String,
23
24
  ?client_side_monitoring_host: String,
@@ -112,6 +113,25 @@ module Aws
112
113
  ) -> _CreateCustomModelResponseSuccess
113
114
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelResponseSuccess
114
115
 
116
+ interface _CreateCustomModelDeploymentResponseSuccess
117
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelDeploymentResponse]
118
+ def custom_model_deployment_arn: () -> ::String
119
+ end
120
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model_deployment-instance_method
121
+ def create_custom_model_deployment: (
122
+ model_deployment_name: ::String,
123
+ model_arn: ::String,
124
+ ?description: ::String,
125
+ ?tags: Array[
126
+ {
127
+ key: ::String,
128
+ value: ::String
129
+ },
130
+ ],
131
+ ?client_request_token: ::String
132
+ ) -> _CreateCustomModelDeploymentResponseSuccess
133
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelDeploymentResponseSuccess
134
+
115
135
  interface _CreateEvaluationJobResponseSuccess
116
136
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
117
137
  def job_arn: () -> ::String
@@ -938,6 +958,15 @@ module Aws
938
958
  ) -> _DeleteCustomModelResponseSuccess
939
959
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelResponseSuccess
940
960
 
961
+ interface _DeleteCustomModelDeploymentResponseSuccess
962
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCustomModelDeploymentResponse]
963
+ end
964
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_custom_model_deployment-instance_method
965
+ def delete_custom_model_deployment: (
966
+ custom_model_deployment_identifier: ::String
967
+ ) -> _DeleteCustomModelDeploymentResponseSuccess
968
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelDeploymentResponseSuccess
969
+
941
970
  interface _DeleteFoundationModelAgreementResponseSuccess
942
971
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFoundationModelAgreementResponse]
943
972
  end
@@ -1045,6 +1074,23 @@ module Aws
1045
1074
  ) -> _GetCustomModelResponseSuccess
1046
1075
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCustomModelResponseSuccess
1047
1076
 
1077
+ interface _GetCustomModelDeploymentResponseSuccess
1078
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCustomModelDeploymentResponse]
1079
+ def custom_model_deployment_arn: () -> ::String
1080
+ def model_deployment_name: () -> ::String
1081
+ def model_arn: () -> ::String
1082
+ def created_at: () -> ::Time
1083
+ def status: () -> ("Creating" | "Active" | "Failed")
1084
+ def description: () -> ::String
1085
+ def failure_message: () -> ::String
1086
+ def last_updated_at: () -> ::Time
1087
+ end
1088
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model_deployment-instance_method
1089
+ def get_custom_model_deployment: (
1090
+ custom_model_deployment_identifier: ::String
1091
+ ) -> _GetCustomModelDeploymentResponseSuccess
1092
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCustomModelDeploymentResponseSuccess
1093
+
1048
1094
  interface _GetEvaluationJobResponseSuccess
1049
1095
  include ::Seahorse::Client::_ResponseSuccess[Types::GetEvaluationJobResponse]
1050
1096
  def job_name: () -> ::String
@@ -1325,6 +1371,25 @@ module Aws
1325
1371
  ) -> _GetUseCaseForModelAccessResponseSuccess
1326
1372
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUseCaseForModelAccessResponseSuccess
1327
1373
 
1374
+ interface _ListCustomModelDeploymentsResponseSuccess
1375
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelDeploymentsResponse]
1376
+ def next_token: () -> ::String
1377
+ def model_deployment_summaries: () -> ::Array[Types::CustomModelDeploymentSummary]
1378
+ end
1379
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_custom_model_deployments-instance_method
1380
+ def list_custom_model_deployments: (
1381
+ ?created_before: ::Time,
1382
+ ?created_after: ::Time,
1383
+ ?name_contains: ::String,
1384
+ ?max_results: ::Integer,
1385
+ ?next_token: ::String,
1386
+ ?sort_by: ("CreationTime"),
1387
+ ?sort_order: ("Ascending" | "Descending"),
1388
+ ?status_equals: ("Creating" | "Active" | "Failed"),
1389
+ ?model_arn_equals: ::String
1390
+ ) -> _ListCustomModelDeploymentsResponseSuccess
1391
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelDeploymentsResponseSuccess
1392
+
1328
1393
  interface _ListCustomModelsResponseSuccess
1329
1394
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelsResponse]
1330
1395
  def next_token: () -> ::String
data/sig/resource.rbs CHANGED
@@ -18,6 +18,7 @@ module Aws
18
18
  ?account_id: String,
19
19
  ?active_endpoint_cache: bool,
20
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
21
22
  ?client_side_monitoring: bool,
22
23
  ?client_side_monitoring_client_id: String,
23
24
  ?client_side_monitoring_host: String,
data/sig/types.rbs CHANGED
@@ -91,6 +91,20 @@ module Aws::Bedrock
91
91
  SENSITIVE: []
92
92
  end
93
93
 
94
+ class CreateCustomModelDeploymentRequest
95
+ attr_accessor model_deployment_name: ::String
96
+ attr_accessor model_arn: ::String
97
+ attr_accessor description: ::String
98
+ attr_accessor tags: ::Array[Types::Tag]
99
+ attr_accessor client_request_token: ::String
100
+ SENSITIVE: []
101
+ end
102
+
103
+ class CreateCustomModelDeploymentResponse
104
+ attr_accessor custom_model_deployment_arn: ::String
105
+ SENSITIVE: []
106
+ end
107
+
94
108
  class CreateCustomModelRequest
95
109
  attr_accessor model_name: ::String
96
110
  attr_accessor model_source_config: Types::ModelDataSource
@@ -326,6 +340,17 @@ module Aws::Bedrock
326
340
  SENSITIVE: []
327
341
  end
328
342
 
343
+ class CustomModelDeploymentSummary
344
+ attr_accessor custom_model_deployment_arn: ::String
345
+ attr_accessor custom_model_deployment_name: ::String
346
+ attr_accessor model_arn: ::String
347
+ attr_accessor created_at: ::Time
348
+ attr_accessor status: ("Creating" | "Active" | "Failed")
349
+ attr_accessor last_updated_at: ::Time
350
+ attr_accessor failure_message: ::String
351
+ SENSITIVE: []
352
+ end
353
+
329
354
  class CustomModelSummary
330
355
  attr_accessor model_arn: ::String
331
356
  attr_accessor model_name: ::String
@@ -362,6 +387,14 @@ module Aws::Bedrock
362
387
  SENSITIVE: []
363
388
  end
364
389
 
390
+ class DeleteCustomModelDeploymentRequest
391
+ attr_accessor custom_model_deployment_identifier: ::String
392
+ SENSITIVE: []
393
+ end
394
+
395
+ class DeleteCustomModelDeploymentResponse < Aws::EmptyStructure
396
+ end
397
+
365
398
  class DeleteCustomModelRequest
366
399
  attr_accessor model_identifier: ::String
367
400
  SENSITIVE: []
@@ -691,6 +724,23 @@ module Aws::Bedrock
691
724
  SENSITIVE: []
692
725
  end
693
726
 
727
+ class GetCustomModelDeploymentRequest
728
+ attr_accessor custom_model_deployment_identifier: ::String
729
+ SENSITIVE: []
730
+ end
731
+
732
+ class GetCustomModelDeploymentResponse
733
+ attr_accessor custom_model_deployment_arn: ::String
734
+ attr_accessor model_deployment_name: ::String
735
+ attr_accessor model_arn: ::String
736
+ attr_accessor created_at: ::Time
737
+ attr_accessor status: ("Creating" | "Active" | "Failed")
738
+ attr_accessor description: ::String
739
+ attr_accessor failure_message: ::String
740
+ attr_accessor last_updated_at: ::Time
741
+ SENSITIVE: []
742
+ end
743
+
694
744
  class GetCustomModelRequest
695
745
  attr_accessor model_identifier: ::String
696
746
  SENSITIVE: []
@@ -1383,6 +1433,25 @@ module Aws::Bedrock
1383
1433
  SENSITIVE: []
1384
1434
  end
1385
1435
 
1436
+ class ListCustomModelDeploymentsRequest
1437
+ attr_accessor created_before: ::Time
1438
+ attr_accessor created_after: ::Time
1439
+ attr_accessor name_contains: ::String
1440
+ attr_accessor max_results: ::Integer
1441
+ attr_accessor next_token: ::String
1442
+ attr_accessor sort_by: ("CreationTime")
1443
+ attr_accessor sort_order: ("Ascending" | "Descending")
1444
+ attr_accessor status_equals: ("Creating" | "Active" | "Failed")
1445
+ attr_accessor model_arn_equals: ::String
1446
+ SENSITIVE: []
1447
+ end
1448
+
1449
+ class ListCustomModelDeploymentsResponse
1450
+ attr_accessor next_token: ::String
1451
+ attr_accessor model_deployment_summaries: ::Array[Types::CustomModelDeploymentSummary]
1452
+ SENSITIVE: []
1453
+ end
1454
+
1386
1455
  class ListCustomModelsRequest
1387
1456
  attr_accessor creation_time_before: ::Time
1388
1457
  attr_accessor creation_time_after: ::Time
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.53.0
4
+ version: 1.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.225.0
21
+ version: 3.227.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.225.0
31
+ version: 3.227.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -62,6 +62,7 @@ files:
62
62
  - lib/aws-sdk-bedrock/endpoint_provider.rb
63
63
  - lib/aws-sdk-bedrock/endpoints.rb
64
64
  - lib/aws-sdk-bedrock/errors.rb
65
+ - lib/aws-sdk-bedrock/plugins/bearer_authorization.rb
65
66
  - lib/aws-sdk-bedrock/plugins/endpoints.rb
66
67
  - lib/aws-sdk-bedrock/resource.rb
67
68
  - lib/aws-sdk-bedrock/types.rb