aws-sdk-bedrock 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-bedrock/client.rb +1189 -0
- data/lib/aws-sdk-bedrock/client_api.rb +631 -0
- data/lib/aws-sdk-bedrock/customizations.rb +0 -0
- data/lib/aws-sdk-bedrock/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-bedrock/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +226 -0
- data/lib/aws-sdk-bedrock/errors.rb +171 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +98 -0
- data/lib/aws-sdk-bedrock/resource.rb +26 -0
- data/lib/aws-sdk-bedrock/types.rb +1169 -0
- data/lib/aws-sdk-bedrock.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,631 @@
|
|
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
|
+
module Aws::Bedrock
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
BaseModelIdentifier = Shapes::StringShape.new(name: 'BaseModelIdentifier')
|
18
|
+
BedrockModelId = Shapes::StringShape.new(name: 'BedrockModelId')
|
19
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
20
|
+
BrandedName = Shapes::StringShape.new(name: 'BrandedName')
|
21
|
+
BucketName = Shapes::StringShape.new(name: 'BucketName')
|
22
|
+
CloudWatchConfig = Shapes::StructureShape.new(name: 'CloudWatchConfig')
|
23
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
24
|
+
CreateModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'CreateModelCustomizationJobRequest')
|
25
|
+
CreateModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'CreateModelCustomizationJobResponse')
|
26
|
+
CustomModelArn = Shapes::StringShape.new(name: 'CustomModelArn')
|
27
|
+
CustomModelName = Shapes::StringShape.new(name: 'CustomModelName')
|
28
|
+
CustomModelSummary = Shapes::StructureShape.new(name: 'CustomModelSummary')
|
29
|
+
CustomModelSummaryList = Shapes::ListShape.new(name: 'CustomModelSummaryList')
|
30
|
+
DeleteCustomModelRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelRequest')
|
31
|
+
DeleteCustomModelResponse = Shapes::StructureShape.new(name: 'DeleteCustomModelResponse')
|
32
|
+
DeleteModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationRequest')
|
33
|
+
DeleteModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationResponse')
|
34
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
35
|
+
FineTuningJobStatus = Shapes::StringShape.new(name: 'FineTuningJobStatus')
|
36
|
+
FoundationModelArn = Shapes::StringShape.new(name: 'FoundationModelArn')
|
37
|
+
FoundationModelDetails = Shapes::StructureShape.new(name: 'FoundationModelDetails')
|
38
|
+
FoundationModelSummary = Shapes::StructureShape.new(name: 'FoundationModelSummary')
|
39
|
+
FoundationModelSummaryList = Shapes::ListShape.new(name: 'FoundationModelSummaryList')
|
40
|
+
GetCustomModelRequest = Shapes::StructureShape.new(name: 'GetCustomModelRequest')
|
41
|
+
GetCustomModelResponse = Shapes::StructureShape.new(name: 'GetCustomModelResponse')
|
42
|
+
GetFoundationModelRequest = Shapes::StructureShape.new(name: 'GetFoundationModelRequest')
|
43
|
+
GetFoundationModelResponse = Shapes::StructureShape.new(name: 'GetFoundationModelResponse')
|
44
|
+
GetModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'GetModelCustomizationJobRequest')
|
45
|
+
GetModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'GetModelCustomizationJobResponse')
|
46
|
+
GetModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'GetModelInvocationLoggingConfigurationRequest')
|
47
|
+
GetModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'GetModelInvocationLoggingConfigurationResponse')
|
48
|
+
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
49
|
+
InferenceType = Shapes::StringShape.new(name: 'InferenceType')
|
50
|
+
InferenceTypeList = Shapes::ListShape.new(name: 'InferenceTypeList')
|
51
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
52
|
+
JobName = Shapes::StringShape.new(name: 'JobName')
|
53
|
+
KeyPrefix = Shapes::StringShape.new(name: 'KeyPrefix')
|
54
|
+
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
55
|
+
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
56
|
+
ListCustomModelsRequest = Shapes::StructureShape.new(name: 'ListCustomModelsRequest')
|
57
|
+
ListCustomModelsResponse = Shapes::StructureShape.new(name: 'ListCustomModelsResponse')
|
58
|
+
ListFoundationModelsRequest = Shapes::StructureShape.new(name: 'ListFoundationModelsRequest')
|
59
|
+
ListFoundationModelsResponse = Shapes::StructureShape.new(name: 'ListFoundationModelsResponse')
|
60
|
+
ListModelCustomizationJobsRequest = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsRequest')
|
61
|
+
ListModelCustomizationJobsResponse = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsResponse')
|
62
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
63
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
64
|
+
LogGroupName = Shapes::StringShape.new(name: 'LogGroupName')
|
65
|
+
LoggingConfig = Shapes::StructureShape.new(name: 'LoggingConfig')
|
66
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
67
|
+
MetricFloat = Shapes::FloatShape.new(name: 'MetricFloat')
|
68
|
+
ModelArn = Shapes::StringShape.new(name: 'ModelArn')
|
69
|
+
ModelCustomization = Shapes::StringShape.new(name: 'ModelCustomization')
|
70
|
+
ModelCustomizationHyperParameters = Shapes::MapShape.new(name: 'ModelCustomizationHyperParameters')
|
71
|
+
ModelCustomizationJobArn = Shapes::StringShape.new(name: 'ModelCustomizationJobArn')
|
72
|
+
ModelCustomizationJobIdentifier = Shapes::StringShape.new(name: 'ModelCustomizationJobIdentifier')
|
73
|
+
ModelCustomizationJobStatus = Shapes::StringShape.new(name: 'ModelCustomizationJobStatus')
|
74
|
+
ModelCustomizationJobSummaries = Shapes::ListShape.new(name: 'ModelCustomizationJobSummaries')
|
75
|
+
ModelCustomizationJobSummary = Shapes::StructureShape.new(name: 'ModelCustomizationJobSummary')
|
76
|
+
ModelCustomizationList = Shapes::ListShape.new(name: 'ModelCustomizationList')
|
77
|
+
ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
|
78
|
+
ModelModality = Shapes::StringShape.new(name: 'ModelModality')
|
79
|
+
ModelModalityList = Shapes::ListShape.new(name: 'ModelModalityList')
|
80
|
+
ModelName = Shapes::StringShape.new(name: 'ModelName')
|
81
|
+
NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
|
82
|
+
OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
|
83
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
84
|
+
Provider = Shapes::StringShape.new(name: 'Provider')
|
85
|
+
PutModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'PutModelInvocationLoggingConfigurationRequest')
|
86
|
+
PutModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'PutModelInvocationLoggingConfigurationResponse')
|
87
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
88
|
+
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
89
|
+
S3Config = Shapes::StructureShape.new(name: 'S3Config')
|
90
|
+
S3Uri = Shapes::StringShape.new(name: 'S3Uri')
|
91
|
+
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
92
|
+
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
93
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
94
|
+
SortJobsBy = Shapes::StringShape.new(name: 'SortJobsBy')
|
95
|
+
SortModelsBy = Shapes::StringShape.new(name: 'SortModelsBy')
|
96
|
+
SortOrder = Shapes::StringShape.new(name: 'SortOrder')
|
97
|
+
StopModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'StopModelCustomizationJobRequest')
|
98
|
+
StopModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'StopModelCustomizationJobResponse')
|
99
|
+
String = Shapes::StringShape.new(name: 'String')
|
100
|
+
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
101
|
+
SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
|
102
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
103
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
104
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
105
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
106
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
107
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
108
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
109
|
+
TaggableResourcesArn = Shapes::StringShape.new(name: 'TaggableResourcesArn')
|
110
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
111
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
|
112
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
113
|
+
TrainingDataConfig = Shapes::StructureShape.new(name: 'TrainingDataConfig')
|
114
|
+
TrainingMetrics = Shapes::StructureShape.new(name: 'TrainingMetrics')
|
115
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
116
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
117
|
+
ValidationDataConfig = Shapes::StructureShape.new(name: 'ValidationDataConfig')
|
118
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
119
|
+
ValidationMetrics = Shapes::ListShape.new(name: 'ValidationMetrics')
|
120
|
+
Validator = Shapes::StructureShape.new(name: 'Validator')
|
121
|
+
ValidatorMetric = Shapes::StructureShape.new(name: 'ValidatorMetric')
|
122
|
+
Validators = Shapes::ListShape.new(name: 'Validators')
|
123
|
+
VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
|
124
|
+
|
125
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
126
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
127
|
+
|
128
|
+
CloudWatchConfig.add_member(:large_data_delivery_s3_config, Shapes::ShapeRef.new(shape: S3Config, location_name: "largeDataDeliveryS3Config"))
|
129
|
+
CloudWatchConfig.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
130
|
+
CloudWatchConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
|
131
|
+
CloudWatchConfig.struct_class = Types::CloudWatchConfig
|
132
|
+
|
133
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
134
|
+
ConflictException.struct_class = Types::ConflictException
|
135
|
+
|
136
|
+
CreateModelCustomizationJobRequest.add_member(:base_model_identifier, Shapes::ShapeRef.new(shape: BaseModelIdentifier, required: true, location_name: "baseModelIdentifier"))
|
137
|
+
CreateModelCustomizationJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
|
138
|
+
CreateModelCustomizationJobRequest.add_member(:custom_model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "customModelKmsKeyId"))
|
139
|
+
CreateModelCustomizationJobRequest.add_member(:custom_model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "customModelName"))
|
140
|
+
CreateModelCustomizationJobRequest.add_member(:custom_model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "customModelTags"))
|
141
|
+
CreateModelCustomizationJobRequest.add_member(:hyper_parameters, Shapes::ShapeRef.new(shape: ModelCustomizationHyperParameters, required: true, location_name: "hyperParameters"))
|
142
|
+
CreateModelCustomizationJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
|
143
|
+
CreateModelCustomizationJobRequest.add_member(:job_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "jobTags"))
|
144
|
+
CreateModelCustomizationJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "outputDataConfig"))
|
145
|
+
CreateModelCustomizationJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
|
146
|
+
CreateModelCustomizationJobRequest.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, required: true, location_name: "trainingDataConfig"))
|
147
|
+
CreateModelCustomizationJobRequest.add_member(:validation_data_config, Shapes::ShapeRef.new(shape: ValidationDataConfig, location_name: "validationDataConfig"))
|
148
|
+
CreateModelCustomizationJobRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
|
149
|
+
CreateModelCustomizationJobRequest.struct_class = Types::CreateModelCustomizationJobRequest
|
150
|
+
|
151
|
+
CreateModelCustomizationJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, required: true, location_name: "jobArn"))
|
152
|
+
CreateModelCustomizationJobResponse.struct_class = Types::CreateModelCustomizationJobResponse
|
153
|
+
|
154
|
+
CustomModelSummary.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
155
|
+
CustomModelSummary.add_member(:base_model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "baseModelName"))
|
156
|
+
CustomModelSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
157
|
+
CustomModelSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, required: true, location_name: "modelArn"))
|
158
|
+
CustomModelSummary.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
|
159
|
+
CustomModelSummary.struct_class = Types::CustomModelSummary
|
160
|
+
|
161
|
+
CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
|
162
|
+
|
163
|
+
DeleteCustomModelRequest.add_member(:model_identifier, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location: "uri", location_name: "modelIdentifier"))
|
164
|
+
DeleteCustomModelRequest.struct_class = Types::DeleteCustomModelRequest
|
165
|
+
|
166
|
+
DeleteCustomModelResponse.struct_class = Types::DeleteCustomModelResponse
|
167
|
+
|
168
|
+
DeleteModelInvocationLoggingConfigurationRequest.struct_class = Types::DeleteModelInvocationLoggingConfigurationRequest
|
169
|
+
|
170
|
+
DeleteModelInvocationLoggingConfigurationResponse.struct_class = Types::DeleteModelInvocationLoggingConfigurationResponse
|
171
|
+
|
172
|
+
FoundationModelDetails.add_member(:customizations_supported, Shapes::ShapeRef.new(shape: ModelCustomizationList, location_name: "customizationsSupported"))
|
173
|
+
FoundationModelDetails.add_member(:inference_types_supported, Shapes::ShapeRef.new(shape: InferenceTypeList, location_name: "inferenceTypesSupported"))
|
174
|
+
FoundationModelDetails.add_member(:input_modalities, Shapes::ShapeRef.new(shape: ModelModalityList, location_name: "inputModalities"))
|
175
|
+
FoundationModelDetails.add_member(:model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, required: true, location_name: "modelArn"))
|
176
|
+
FoundationModelDetails.add_member(:model_id, Shapes::ShapeRef.new(shape: BedrockModelId, required: true, location_name: "modelId"))
|
177
|
+
FoundationModelDetails.add_member(:model_name, Shapes::ShapeRef.new(shape: BrandedName, location_name: "modelName"))
|
178
|
+
FoundationModelDetails.add_member(:output_modalities, Shapes::ShapeRef.new(shape: ModelModalityList, location_name: "outputModalities"))
|
179
|
+
FoundationModelDetails.add_member(:provider_name, Shapes::ShapeRef.new(shape: BrandedName, location_name: "providerName"))
|
180
|
+
FoundationModelDetails.add_member(:response_streaming_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "responseStreamingSupported"))
|
181
|
+
FoundationModelDetails.struct_class = Types::FoundationModelDetails
|
182
|
+
|
183
|
+
FoundationModelSummary.add_member(:customizations_supported, Shapes::ShapeRef.new(shape: ModelCustomizationList, location_name: "customizationsSupported"))
|
184
|
+
FoundationModelSummary.add_member(:inference_types_supported, Shapes::ShapeRef.new(shape: InferenceTypeList, location_name: "inferenceTypesSupported"))
|
185
|
+
FoundationModelSummary.add_member(:input_modalities, Shapes::ShapeRef.new(shape: ModelModalityList, location_name: "inputModalities"))
|
186
|
+
FoundationModelSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, required: true, location_name: "modelArn"))
|
187
|
+
FoundationModelSummary.add_member(:model_id, Shapes::ShapeRef.new(shape: BedrockModelId, required: true, location_name: "modelId"))
|
188
|
+
FoundationModelSummary.add_member(:model_name, Shapes::ShapeRef.new(shape: BrandedName, location_name: "modelName"))
|
189
|
+
FoundationModelSummary.add_member(:output_modalities, Shapes::ShapeRef.new(shape: ModelModalityList, location_name: "outputModalities"))
|
190
|
+
FoundationModelSummary.add_member(:provider_name, Shapes::ShapeRef.new(shape: BrandedName, location_name: "providerName"))
|
191
|
+
FoundationModelSummary.add_member(:response_streaming_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "responseStreamingSupported"))
|
192
|
+
FoundationModelSummary.struct_class = Types::FoundationModelSummary
|
193
|
+
|
194
|
+
FoundationModelSummaryList.member = Shapes::ShapeRef.new(shape: FoundationModelSummary)
|
195
|
+
|
196
|
+
GetCustomModelRequest.add_member(:model_identifier, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location: "uri", location_name: "modelIdentifier"))
|
197
|
+
GetCustomModelRequest.struct_class = Types::GetCustomModelRequest
|
198
|
+
|
199
|
+
GetCustomModelResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
200
|
+
GetCustomModelResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
201
|
+
GetCustomModelResponse.add_member(:hyper_parameters, Shapes::ShapeRef.new(shape: ModelCustomizationHyperParameters, location_name: "hyperParameters"))
|
202
|
+
GetCustomModelResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, required: true, location_name: "jobArn"))
|
203
|
+
GetCustomModelResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "jobName"))
|
204
|
+
GetCustomModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
|
205
|
+
GetCustomModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
|
206
|
+
GetCustomModelResponse.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
|
207
|
+
GetCustomModelResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "outputDataConfig"))
|
208
|
+
GetCustomModelResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, required: true, location_name: "trainingDataConfig"))
|
209
|
+
GetCustomModelResponse.add_member(:training_metrics, Shapes::ShapeRef.new(shape: TrainingMetrics, location_name: "trainingMetrics"))
|
210
|
+
GetCustomModelResponse.add_member(:validation_data_config, Shapes::ShapeRef.new(shape: ValidationDataConfig, location_name: "validationDataConfig"))
|
211
|
+
GetCustomModelResponse.add_member(:validation_metrics, Shapes::ShapeRef.new(shape: ValidationMetrics, location_name: "validationMetrics"))
|
212
|
+
GetCustomModelResponse.struct_class = Types::GetCustomModelResponse
|
213
|
+
|
214
|
+
GetFoundationModelRequest.add_member(:model_identifier, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location: "uri", location_name: "modelIdentifier"))
|
215
|
+
GetFoundationModelRequest.struct_class = Types::GetFoundationModelRequest
|
216
|
+
|
217
|
+
GetFoundationModelResponse.add_member(:model_details, Shapes::ShapeRef.new(shape: FoundationModelDetails, location_name: "modelDetails"))
|
218
|
+
GetFoundationModelResponse.struct_class = Types::GetFoundationModelResponse
|
219
|
+
|
220
|
+
GetModelCustomizationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: ModelCustomizationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
|
221
|
+
GetModelCustomizationJobRequest.struct_class = Types::GetModelCustomizationJobRequest
|
222
|
+
|
223
|
+
GetModelCustomizationJobResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, required: true, location_name: "baseModelArn"))
|
224
|
+
GetModelCustomizationJobResponse.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken"))
|
225
|
+
GetModelCustomizationJobResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
226
|
+
GetModelCustomizationJobResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
227
|
+
GetModelCustomizationJobResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
|
228
|
+
GetModelCustomizationJobResponse.add_member(:hyper_parameters, Shapes::ShapeRef.new(shape: ModelCustomizationHyperParameters, required: true, location_name: "hyperParameters"))
|
229
|
+
GetModelCustomizationJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, required: true, location_name: "jobArn"))
|
230
|
+
GetModelCustomizationJobResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
|
231
|
+
GetModelCustomizationJobResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
|
232
|
+
GetModelCustomizationJobResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "outputDataConfig"))
|
233
|
+
GetModelCustomizationJobResponse.add_member(:output_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, location_name: "outputModelArn"))
|
234
|
+
GetModelCustomizationJobResponse.add_member(:output_model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "outputModelKmsKeyArn"))
|
235
|
+
GetModelCustomizationJobResponse.add_member(:output_model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "outputModelName"))
|
236
|
+
GetModelCustomizationJobResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
|
237
|
+
GetModelCustomizationJobResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelCustomizationJobStatus, location_name: "status"))
|
238
|
+
GetModelCustomizationJobResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, required: true, location_name: "trainingDataConfig"))
|
239
|
+
GetModelCustomizationJobResponse.add_member(:training_metrics, Shapes::ShapeRef.new(shape: TrainingMetrics, location_name: "trainingMetrics"))
|
240
|
+
GetModelCustomizationJobResponse.add_member(:validation_data_config, Shapes::ShapeRef.new(shape: ValidationDataConfig, required: true, location_name: "validationDataConfig"))
|
241
|
+
GetModelCustomizationJobResponse.add_member(:validation_metrics, Shapes::ShapeRef.new(shape: ValidationMetrics, location_name: "validationMetrics"))
|
242
|
+
GetModelCustomizationJobResponse.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
|
243
|
+
GetModelCustomizationJobResponse.struct_class = Types::GetModelCustomizationJobResponse
|
244
|
+
|
245
|
+
GetModelInvocationLoggingConfigurationRequest.struct_class = Types::GetModelInvocationLoggingConfigurationRequest
|
246
|
+
|
247
|
+
GetModelInvocationLoggingConfigurationResponse.add_member(:logging_config, Shapes::ShapeRef.new(shape: LoggingConfig, location_name: "loggingConfig"))
|
248
|
+
GetModelInvocationLoggingConfigurationResponse.struct_class = Types::GetModelInvocationLoggingConfigurationResponse
|
249
|
+
|
250
|
+
InferenceTypeList.member = Shapes::ShapeRef.new(shape: InferenceType)
|
251
|
+
|
252
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
253
|
+
InternalServerException.struct_class = Types::InternalServerException
|
254
|
+
|
255
|
+
ListCustomModelsRequest.add_member(:base_model_arn_equals, Shapes::ShapeRef.new(shape: ModelArn, location: "querystring", location_name: "baseModelArnEquals"))
|
256
|
+
ListCustomModelsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
|
257
|
+
ListCustomModelsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
|
258
|
+
ListCustomModelsRequest.add_member(:foundation_model_arn_equals, Shapes::ShapeRef.new(shape: FoundationModelArn, location: "querystring", location_name: "foundationModelArnEquals"))
|
259
|
+
ListCustomModelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
260
|
+
ListCustomModelsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: CustomModelName, location: "querystring", location_name: "nameContains"))
|
261
|
+
ListCustomModelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
262
|
+
ListCustomModelsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortModelsBy, location: "querystring", location_name: "sortBy"))
|
263
|
+
ListCustomModelsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
|
264
|
+
ListCustomModelsRequest.struct_class = Types::ListCustomModelsRequest
|
265
|
+
|
266
|
+
ListCustomModelsResponse.add_member(:model_summaries, Shapes::ShapeRef.new(shape: CustomModelSummaryList, location_name: "modelSummaries"))
|
267
|
+
ListCustomModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
268
|
+
ListCustomModelsResponse.struct_class = Types::ListCustomModelsResponse
|
269
|
+
|
270
|
+
ListFoundationModelsRequest.add_member(:by_customization_type, Shapes::ShapeRef.new(shape: ModelCustomization, location: "querystring", location_name: "byCustomizationType"))
|
271
|
+
ListFoundationModelsRequest.add_member(:by_inference_type, Shapes::ShapeRef.new(shape: InferenceType, location: "querystring", location_name: "byInferenceType"))
|
272
|
+
ListFoundationModelsRequest.add_member(:by_output_modality, Shapes::ShapeRef.new(shape: ModelModality, location: "querystring", location_name: "byOutputModality"))
|
273
|
+
ListFoundationModelsRequest.add_member(:by_provider, Shapes::ShapeRef.new(shape: Provider, location: "querystring", location_name: "byProvider"))
|
274
|
+
ListFoundationModelsRequest.struct_class = Types::ListFoundationModelsRequest
|
275
|
+
|
276
|
+
ListFoundationModelsResponse.add_member(:model_summaries, Shapes::ShapeRef.new(shape: FoundationModelSummaryList, location_name: "modelSummaries"))
|
277
|
+
ListFoundationModelsResponse.struct_class = Types::ListFoundationModelsResponse
|
278
|
+
|
279
|
+
ListModelCustomizationJobsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
|
280
|
+
ListModelCustomizationJobsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
|
281
|
+
ListModelCustomizationJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
282
|
+
ListModelCustomizationJobsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: JobName, location: "querystring", location_name: "nameContains"))
|
283
|
+
ListModelCustomizationJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
284
|
+
ListModelCustomizationJobsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortJobsBy, location: "querystring", location_name: "sortBy"))
|
285
|
+
ListModelCustomizationJobsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
|
286
|
+
ListModelCustomizationJobsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: FineTuningJobStatus, location: "querystring", location_name: "statusEquals"))
|
287
|
+
ListModelCustomizationJobsRequest.struct_class = Types::ListModelCustomizationJobsRequest
|
288
|
+
|
289
|
+
ListModelCustomizationJobsResponse.add_member(:model_customization_job_summaries, Shapes::ShapeRef.new(shape: ModelCustomizationJobSummaries, location_name: "modelCustomizationJobSummaries"))
|
290
|
+
ListModelCustomizationJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
291
|
+
ListModelCustomizationJobsResponse.struct_class = Types::ListModelCustomizationJobsResponse
|
292
|
+
|
293
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TaggableResourcesArn, required: true, location_name: "resourceARN"))
|
294
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
295
|
+
|
296
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
297
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
298
|
+
|
299
|
+
LoggingConfig.add_member(:cloud_watch_config, Shapes::ShapeRef.new(shape: CloudWatchConfig, location_name: "cloudWatchConfig"))
|
300
|
+
LoggingConfig.add_member(:embedding_data_delivery_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "embeddingDataDeliveryEnabled"))
|
301
|
+
LoggingConfig.add_member(:image_data_delivery_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "imageDataDeliveryEnabled"))
|
302
|
+
LoggingConfig.add_member(:s3_config, Shapes::ShapeRef.new(shape: S3Config, location_name: "s3Config"))
|
303
|
+
LoggingConfig.add_member(:text_data_delivery_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "textDataDeliveryEnabled"))
|
304
|
+
LoggingConfig.struct_class = Types::LoggingConfig
|
305
|
+
|
306
|
+
ModelCustomizationHyperParameters.key = Shapes::ShapeRef.new(shape: String)
|
307
|
+
ModelCustomizationHyperParameters.value = Shapes::ShapeRef.new(shape: String)
|
308
|
+
|
309
|
+
ModelCustomizationJobSummaries.member = Shapes::ShapeRef.new(shape: ModelCustomizationJobSummary)
|
310
|
+
|
311
|
+
ModelCustomizationJobSummary.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
312
|
+
ModelCustomizationJobSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
313
|
+
ModelCustomizationJobSummary.add_member(:custom_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, location_name: "customModelArn"))
|
314
|
+
ModelCustomizationJobSummary.add_member(:custom_model_name, Shapes::ShapeRef.new(shape: CustomModelName, location_name: "customModelName"))
|
315
|
+
ModelCustomizationJobSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
316
|
+
ModelCustomizationJobSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, required: true, location_name: "jobArn"))
|
317
|
+
ModelCustomizationJobSummary.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
|
318
|
+
ModelCustomizationJobSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
|
319
|
+
ModelCustomizationJobSummary.add_member(:status, Shapes::ShapeRef.new(shape: ModelCustomizationJobStatus, required: true, location_name: "status"))
|
320
|
+
ModelCustomizationJobSummary.struct_class = Types::ModelCustomizationJobSummary
|
321
|
+
|
322
|
+
ModelCustomizationList.member = Shapes::ShapeRef.new(shape: ModelCustomization)
|
323
|
+
|
324
|
+
ModelModalityList.member = Shapes::ShapeRef.new(shape: ModelModality)
|
325
|
+
|
326
|
+
OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
|
327
|
+
OutputDataConfig.struct_class = Types::OutputDataConfig
|
328
|
+
|
329
|
+
PutModelInvocationLoggingConfigurationRequest.add_member(:logging_config, Shapes::ShapeRef.new(shape: LoggingConfig, required: true, location_name: "loggingConfig"))
|
330
|
+
PutModelInvocationLoggingConfigurationRequest.struct_class = Types::PutModelInvocationLoggingConfigurationRequest
|
331
|
+
|
332
|
+
PutModelInvocationLoggingConfigurationResponse.struct_class = Types::PutModelInvocationLoggingConfigurationResponse
|
333
|
+
|
334
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
335
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
336
|
+
|
337
|
+
S3Config.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
|
338
|
+
S3Config.add_member(:key_prefix, Shapes::ShapeRef.new(shape: KeyPrefix, location_name: "keyPrefix"))
|
339
|
+
S3Config.struct_class = Types::S3Config
|
340
|
+
|
341
|
+
SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
342
|
+
|
343
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
344
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
345
|
+
|
346
|
+
StopModelCustomizationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: ModelCustomizationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
|
347
|
+
StopModelCustomizationJobRequest.struct_class = Types::StopModelCustomizationJobRequest
|
348
|
+
|
349
|
+
StopModelCustomizationJobResponse.struct_class = Types::StopModelCustomizationJobResponse
|
350
|
+
|
351
|
+
SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
|
352
|
+
|
353
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
|
354
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
|
355
|
+
Tag.struct_class = Types::Tag
|
356
|
+
|
357
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
358
|
+
|
359
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
360
|
+
|
361
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TaggableResourcesArn, required: true, location_name: "resourceARN"))
|
362
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
|
363
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
364
|
+
|
365
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
366
|
+
|
367
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
368
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
369
|
+
|
370
|
+
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
371
|
+
TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: TaggableResourcesArn, location_name: "resourceName"))
|
372
|
+
TooManyTagsException.struct_class = Types::TooManyTagsException
|
373
|
+
|
374
|
+
TrainingDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
|
375
|
+
TrainingDataConfig.struct_class = Types::TrainingDataConfig
|
376
|
+
|
377
|
+
TrainingMetrics.add_member(:training_loss, Shapes::ShapeRef.new(shape: MetricFloat, location_name: "trainingLoss"))
|
378
|
+
TrainingMetrics.struct_class = Types::TrainingMetrics
|
379
|
+
|
380
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TaggableResourcesArn, required: true, location_name: "resourceARN"))
|
381
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
|
382
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
383
|
+
|
384
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
385
|
+
|
386
|
+
ValidationDataConfig.add_member(:validators, Shapes::ShapeRef.new(shape: Validators, required: true, location_name: "validators"))
|
387
|
+
ValidationDataConfig.struct_class = Types::ValidationDataConfig
|
388
|
+
|
389
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
390
|
+
ValidationException.struct_class = Types::ValidationException
|
391
|
+
|
392
|
+
ValidationMetrics.member = Shapes::ShapeRef.new(shape: ValidatorMetric)
|
393
|
+
|
394
|
+
Validator.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
|
395
|
+
Validator.struct_class = Types::Validator
|
396
|
+
|
397
|
+
ValidatorMetric.add_member(:validation_loss, Shapes::ShapeRef.new(shape: MetricFloat, location_name: "validationLoss"))
|
398
|
+
ValidatorMetric.struct_class = Types::ValidatorMetric
|
399
|
+
|
400
|
+
Validators.member = Shapes::ShapeRef.new(shape: Validator)
|
401
|
+
|
402
|
+
VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "securityGroupIds"))
|
403
|
+
VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "subnetIds"))
|
404
|
+
VpcConfig.struct_class = Types::VpcConfig
|
405
|
+
|
406
|
+
|
407
|
+
# @api private
|
408
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
409
|
+
|
410
|
+
api.version = "2023-04-20"
|
411
|
+
|
412
|
+
api.metadata = {
|
413
|
+
"apiVersion" => "2023-04-20",
|
414
|
+
"endpointPrefix" => "bedrock",
|
415
|
+
"jsonVersion" => "1.1",
|
416
|
+
"protocol" => "rest-json",
|
417
|
+
"serviceFullName" => "Amazon Bedrock",
|
418
|
+
"serviceId" => "Bedrock",
|
419
|
+
"signatureVersion" => "v4",
|
420
|
+
"signingName" => "bedrock",
|
421
|
+
"uid" => "bedrock-2023-04-20",
|
422
|
+
}
|
423
|
+
|
424
|
+
api.add_operation(:create_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
|
425
|
+
o.name = "CreateModelCustomizationJob"
|
426
|
+
o.http_method = "POST"
|
427
|
+
o.http_request_uri = "/model-customization-jobs"
|
428
|
+
o.input = Shapes::ShapeRef.new(shape: CreateModelCustomizationJobRequest)
|
429
|
+
o.output = Shapes::ShapeRef.new(shape: CreateModelCustomizationJobResponse)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
431
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
432
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
433
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
434
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
435
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
436
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
437
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
438
|
+
end)
|
439
|
+
|
440
|
+
api.add_operation(:delete_custom_model, Seahorse::Model::Operation.new.tap do |o|
|
441
|
+
o.name = "DeleteCustomModel"
|
442
|
+
o.http_method = "DELETE"
|
443
|
+
o.http_request_uri = "/custom-models/{modelIdentifier}"
|
444
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteCustomModelRequest)
|
445
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteCustomModelResponse)
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
447
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
448
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
449
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
452
|
+
end)
|
453
|
+
|
454
|
+
api.add_operation(:delete_model_invocation_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
|
455
|
+
o.name = "DeleteModelInvocationLoggingConfiguration"
|
456
|
+
o.http_method = "DELETE"
|
457
|
+
o.http_request_uri = "/logging/modelinvocations"
|
458
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteModelInvocationLoggingConfigurationRequest)
|
459
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteModelInvocationLoggingConfigurationResponse)
|
460
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
461
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
463
|
+
end)
|
464
|
+
|
465
|
+
api.add_operation(:get_custom_model, Seahorse::Model::Operation.new.tap do |o|
|
466
|
+
o.name = "GetCustomModel"
|
467
|
+
o.http_method = "GET"
|
468
|
+
o.http_request_uri = "/custom-models/{modelIdentifier}"
|
469
|
+
o.input = Shapes::ShapeRef.new(shape: GetCustomModelRequest)
|
470
|
+
o.output = Shapes::ShapeRef.new(shape: GetCustomModelResponse)
|
471
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
472
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
473
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
474
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
476
|
+
end)
|
477
|
+
|
478
|
+
api.add_operation(:get_foundation_model, Seahorse::Model::Operation.new.tap do |o|
|
479
|
+
o.name = "GetFoundationModel"
|
480
|
+
o.http_method = "GET"
|
481
|
+
o.http_request_uri = "/foundation-models/{modelIdentifier}"
|
482
|
+
o.input = Shapes::ShapeRef.new(shape: GetFoundationModelRequest)
|
483
|
+
o.output = Shapes::ShapeRef.new(shape: GetFoundationModelResponse)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
488
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
489
|
+
end)
|
490
|
+
|
491
|
+
api.add_operation(:get_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
|
492
|
+
o.name = "GetModelCustomizationJob"
|
493
|
+
o.http_method = "GET"
|
494
|
+
o.http_request_uri = "/model-customization-jobs/{jobIdentifier}"
|
495
|
+
o.input = Shapes::ShapeRef.new(shape: GetModelCustomizationJobRequest)
|
496
|
+
o.output = Shapes::ShapeRef.new(shape: GetModelCustomizationJobResponse)
|
497
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
498
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
499
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
500
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
501
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
502
|
+
end)
|
503
|
+
|
504
|
+
api.add_operation(:get_model_invocation_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
|
505
|
+
o.name = "GetModelInvocationLoggingConfiguration"
|
506
|
+
o.http_method = "GET"
|
507
|
+
o.http_request_uri = "/logging/modelinvocations"
|
508
|
+
o.input = Shapes::ShapeRef.new(shape: GetModelInvocationLoggingConfigurationRequest)
|
509
|
+
o.output = Shapes::ShapeRef.new(shape: GetModelInvocationLoggingConfigurationResponse)
|
510
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
511
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
513
|
+
end)
|
514
|
+
|
515
|
+
api.add_operation(:list_custom_models, Seahorse::Model::Operation.new.tap do |o|
|
516
|
+
o.name = "ListCustomModels"
|
517
|
+
o.http_method = "GET"
|
518
|
+
o.http_request_uri = "/custom-models"
|
519
|
+
o.input = Shapes::ShapeRef.new(shape: ListCustomModelsRequest)
|
520
|
+
o.output = Shapes::ShapeRef.new(shape: ListCustomModelsResponse)
|
521
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
522
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
523
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
524
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
525
|
+
o[:pager] = Aws::Pager.new(
|
526
|
+
limit_key: "max_results",
|
527
|
+
tokens: {
|
528
|
+
"next_token" => "next_token"
|
529
|
+
}
|
530
|
+
)
|
531
|
+
end)
|
532
|
+
|
533
|
+
api.add_operation(:list_foundation_models, Seahorse::Model::Operation.new.tap do |o|
|
534
|
+
o.name = "ListFoundationModels"
|
535
|
+
o.http_method = "GET"
|
536
|
+
o.http_request_uri = "/foundation-models"
|
537
|
+
o.input = Shapes::ShapeRef.new(shape: ListFoundationModelsRequest)
|
538
|
+
o.output = Shapes::ShapeRef.new(shape: ListFoundationModelsResponse)
|
539
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
540
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
541
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
542
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
543
|
+
end)
|
544
|
+
|
545
|
+
api.add_operation(:list_model_customization_jobs, Seahorse::Model::Operation.new.tap do |o|
|
546
|
+
o.name = "ListModelCustomizationJobs"
|
547
|
+
o.http_method = "GET"
|
548
|
+
o.http_request_uri = "/model-customization-jobs"
|
549
|
+
o.input = Shapes::ShapeRef.new(shape: ListModelCustomizationJobsRequest)
|
550
|
+
o.output = Shapes::ShapeRef.new(shape: ListModelCustomizationJobsResponse)
|
551
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
552
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
553
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
554
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
555
|
+
o[:pager] = Aws::Pager.new(
|
556
|
+
limit_key: "max_results",
|
557
|
+
tokens: {
|
558
|
+
"next_token" => "next_token"
|
559
|
+
}
|
560
|
+
)
|
561
|
+
end)
|
562
|
+
|
563
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
564
|
+
o.name = "ListTagsForResource"
|
565
|
+
o.http_method = "POST"
|
566
|
+
o.http_request_uri = "/listTagsForResource"
|
567
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
568
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
569
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
570
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
571
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
572
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
573
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
574
|
+
end)
|
575
|
+
|
576
|
+
api.add_operation(:put_model_invocation_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
|
577
|
+
o.name = "PutModelInvocationLoggingConfiguration"
|
578
|
+
o.http_method = "PUT"
|
579
|
+
o.http_request_uri = "/logging/modelinvocations"
|
580
|
+
o.input = Shapes::ShapeRef.new(shape: PutModelInvocationLoggingConfigurationRequest)
|
581
|
+
o.output = Shapes::ShapeRef.new(shape: PutModelInvocationLoggingConfigurationResponse)
|
582
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
583
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
585
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
586
|
+
end)
|
587
|
+
|
588
|
+
api.add_operation(:stop_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
|
589
|
+
o.name = "StopModelCustomizationJob"
|
590
|
+
o.http_method = "POST"
|
591
|
+
o.http_request_uri = "/model-customization-jobs/{jobIdentifier}/stop"
|
592
|
+
o.input = Shapes::ShapeRef.new(shape: StopModelCustomizationJobRequest)
|
593
|
+
o.output = Shapes::ShapeRef.new(shape: StopModelCustomizationJobResponse)
|
594
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
595
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
596
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
597
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
598
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
599
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
600
|
+
end)
|
601
|
+
|
602
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
603
|
+
o.name = "TagResource"
|
604
|
+
o.http_method = "POST"
|
605
|
+
o.http_request_uri = "/tagResource"
|
606
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
607
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
608
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
609
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
610
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
611
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
612
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
613
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
614
|
+
end)
|
615
|
+
|
616
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
617
|
+
o.name = "UntagResource"
|
618
|
+
o.http_method = "POST"
|
619
|
+
o.http_request_uri = "/untagResource"
|
620
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
621
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
622
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
623
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
624
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
625
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
626
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
627
|
+
end)
|
628
|
+
end
|
629
|
+
|
630
|
+
end
|
631
|
+
end
|
File without changes
|