aws-sdk-bedrock 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,7 @@ module Aws::Bedrock
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AutomatedEvaluationConfig = Shapes::StructureShape.new(name: 'AutomatedEvaluationConfig')
17
18
  BaseModelIdentifier = Shapes::StringShape.new(name: 'BaseModelIdentifier')
18
19
  BedrockModelId = Shapes::StringShape.new(name: 'BedrockModelId')
19
20
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
@@ -22,6 +23,12 @@ module Aws::Bedrock
22
23
  CloudWatchConfig = Shapes::StructureShape.new(name: 'CloudWatchConfig')
23
24
  CommitmentDuration = Shapes::StringShape.new(name: 'CommitmentDuration')
24
25
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
26
+ CreateEvaluationJobRequest = Shapes::StructureShape.new(name: 'CreateEvaluationJobRequest')
27
+ CreateEvaluationJobResponse = Shapes::StructureShape.new(name: 'CreateEvaluationJobResponse')
28
+ CreateGuardrailRequest = Shapes::StructureShape.new(name: 'CreateGuardrailRequest')
29
+ CreateGuardrailResponse = Shapes::StructureShape.new(name: 'CreateGuardrailResponse')
30
+ CreateGuardrailVersionRequest = Shapes::StructureShape.new(name: 'CreateGuardrailVersionRequest')
31
+ CreateGuardrailVersionResponse = Shapes::StructureShape.new(name: 'CreateGuardrailVersionResponse')
25
32
  CreateModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'CreateModelCustomizationJobRequest')
26
33
  CreateModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'CreateModelCustomizationJobResponse')
27
34
  CreateProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'CreateProvisionedModelThroughputRequest')
@@ -33,11 +40,42 @@ module Aws::Bedrock
33
40
  CustomizationType = Shapes::StringShape.new(name: 'CustomizationType')
34
41
  DeleteCustomModelRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelRequest')
35
42
  DeleteCustomModelResponse = Shapes::StructureShape.new(name: 'DeleteCustomModelResponse')
43
+ DeleteGuardrailRequest = Shapes::StructureShape.new(name: 'DeleteGuardrailRequest')
44
+ DeleteGuardrailResponse = Shapes::StructureShape.new(name: 'DeleteGuardrailResponse')
36
45
  DeleteModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationRequest')
37
46
  DeleteModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationResponse')
38
47
  DeleteProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedModelThroughputRequest')
39
48
  DeleteProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'DeleteProvisionedModelThroughputResponse')
40
49
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
50
+ ErrorMessages = Shapes::ListShape.new(name: 'ErrorMessages')
51
+ EvaluationBedrockModel = Shapes::StructureShape.new(name: 'EvaluationBedrockModel')
52
+ EvaluationConfig = Shapes::UnionShape.new(name: 'EvaluationConfig')
53
+ EvaluationDataset = Shapes::StructureShape.new(name: 'EvaluationDataset')
54
+ EvaluationDatasetLocation = Shapes::UnionShape.new(name: 'EvaluationDatasetLocation')
55
+ EvaluationDatasetMetricConfig = Shapes::StructureShape.new(name: 'EvaluationDatasetMetricConfig')
56
+ EvaluationDatasetMetricConfigs = Shapes::ListShape.new(name: 'EvaluationDatasetMetricConfigs')
57
+ EvaluationDatasetName = Shapes::StringShape.new(name: 'EvaluationDatasetName')
58
+ EvaluationInferenceConfig = Shapes::UnionShape.new(name: 'EvaluationInferenceConfig')
59
+ EvaluationJobArn = Shapes::StringShape.new(name: 'EvaluationJobArn')
60
+ EvaluationJobDescription = Shapes::StringShape.new(name: 'EvaluationJobDescription')
61
+ EvaluationJobIdentifier = Shapes::StringShape.new(name: 'EvaluationJobIdentifier')
62
+ EvaluationJobName = Shapes::StringShape.new(name: 'EvaluationJobName')
63
+ EvaluationJobStatus = Shapes::StringShape.new(name: 'EvaluationJobStatus')
64
+ EvaluationJobType = Shapes::StringShape.new(name: 'EvaluationJobType')
65
+ EvaluationMetricDescription = Shapes::StringShape.new(name: 'EvaluationMetricDescription')
66
+ EvaluationMetricName = Shapes::StringShape.new(name: 'EvaluationMetricName')
67
+ EvaluationMetricNames = Shapes::ListShape.new(name: 'EvaluationMetricNames')
68
+ EvaluationModelConfig = Shapes::UnionShape.new(name: 'EvaluationModelConfig')
69
+ EvaluationModelConfigs = Shapes::ListShape.new(name: 'EvaluationModelConfigs')
70
+ EvaluationModelIdentifier = Shapes::StringShape.new(name: 'EvaluationModelIdentifier')
71
+ EvaluationModelIdentifiers = Shapes::ListShape.new(name: 'EvaluationModelIdentifiers')
72
+ EvaluationModelInferenceParams = Shapes::StringShape.new(name: 'EvaluationModelInferenceParams')
73
+ EvaluationOutputDataConfig = Shapes::StructureShape.new(name: 'EvaluationOutputDataConfig')
74
+ EvaluationRatingMethod = Shapes::StringShape.new(name: 'EvaluationRatingMethod')
75
+ EvaluationSummaries = Shapes::ListShape.new(name: 'EvaluationSummaries')
76
+ EvaluationSummary = Shapes::StructureShape.new(name: 'EvaluationSummary')
77
+ EvaluationTaskType = Shapes::StringShape.new(name: 'EvaluationTaskType')
78
+ EvaluationTaskTypes = Shapes::ListShape.new(name: 'EvaluationTaskTypes')
41
79
  FineTuningJobStatus = Shapes::StringShape.new(name: 'FineTuningJobStatus')
42
80
  FoundationModelArn = Shapes::StringShape.new(name: 'FoundationModelArn')
43
81
  FoundationModelDetails = Shapes::StructureShape.new(name: 'FoundationModelDetails')
@@ -47,14 +85,89 @@ module Aws::Bedrock
47
85
  FoundationModelSummaryList = Shapes::ListShape.new(name: 'FoundationModelSummaryList')
48
86
  GetCustomModelRequest = Shapes::StructureShape.new(name: 'GetCustomModelRequest')
49
87
  GetCustomModelResponse = Shapes::StructureShape.new(name: 'GetCustomModelResponse')
88
+ GetEvaluationJobRequest = Shapes::StructureShape.new(name: 'GetEvaluationJobRequest')
89
+ GetEvaluationJobResponse = Shapes::StructureShape.new(name: 'GetEvaluationJobResponse')
50
90
  GetFoundationModelRequest = Shapes::StructureShape.new(name: 'GetFoundationModelRequest')
51
91
  GetFoundationModelResponse = Shapes::StructureShape.new(name: 'GetFoundationModelResponse')
92
+ GetGuardrailRequest = Shapes::StructureShape.new(name: 'GetGuardrailRequest')
93
+ GetGuardrailResponse = Shapes::StructureShape.new(name: 'GetGuardrailResponse')
52
94
  GetModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'GetModelCustomizationJobRequest')
53
95
  GetModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'GetModelCustomizationJobResponse')
54
96
  GetModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'GetModelInvocationLoggingConfigurationRequest')
55
97
  GetModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'GetModelInvocationLoggingConfigurationResponse')
56
98
  GetProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'GetProvisionedModelThroughputRequest')
57
99
  GetProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'GetProvisionedModelThroughputResponse')
100
+ GuardrailArn = Shapes::StringShape.new(name: 'GuardrailArn')
101
+ GuardrailBlockedMessaging = Shapes::StringShape.new(name: 'GuardrailBlockedMessaging')
102
+ GuardrailContentFilter = Shapes::StructureShape.new(name: 'GuardrailContentFilter')
103
+ GuardrailContentFilterConfig = Shapes::StructureShape.new(name: 'GuardrailContentFilterConfig')
104
+ GuardrailContentFilterType = Shapes::StringShape.new(name: 'GuardrailContentFilterType')
105
+ GuardrailContentFilters = Shapes::ListShape.new(name: 'GuardrailContentFilters')
106
+ GuardrailContentFiltersConfig = Shapes::ListShape.new(name: 'GuardrailContentFiltersConfig')
107
+ GuardrailContentPolicy = Shapes::StructureShape.new(name: 'GuardrailContentPolicy')
108
+ GuardrailContentPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailContentPolicyConfig')
109
+ GuardrailDescription = Shapes::StringShape.new(name: 'GuardrailDescription')
110
+ GuardrailDraftVersion = Shapes::StringShape.new(name: 'GuardrailDraftVersion')
111
+ GuardrailFailureRecommendation = Shapes::StringShape.new(name: 'GuardrailFailureRecommendation')
112
+ GuardrailFailureRecommendations = Shapes::ListShape.new(name: 'GuardrailFailureRecommendations')
113
+ GuardrailFilterStrength = Shapes::StringShape.new(name: 'GuardrailFilterStrength')
114
+ GuardrailId = Shapes::StringShape.new(name: 'GuardrailId')
115
+ GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
116
+ GuardrailManagedWordLists = Shapes::ListShape.new(name: 'GuardrailManagedWordLists')
117
+ GuardrailManagedWordListsConfig = Shapes::ListShape.new(name: 'GuardrailManagedWordListsConfig')
118
+ GuardrailManagedWords = Shapes::StructureShape.new(name: 'GuardrailManagedWords')
119
+ GuardrailManagedWordsConfig = Shapes::StructureShape.new(name: 'GuardrailManagedWordsConfig')
120
+ GuardrailManagedWordsType = Shapes::StringShape.new(name: 'GuardrailManagedWordsType')
121
+ GuardrailName = Shapes::StringShape.new(name: 'GuardrailName')
122
+ GuardrailNumericalVersion = Shapes::StringShape.new(name: 'GuardrailNumericalVersion')
123
+ GuardrailPiiEntities = Shapes::ListShape.new(name: 'GuardrailPiiEntities')
124
+ GuardrailPiiEntitiesConfig = Shapes::ListShape.new(name: 'GuardrailPiiEntitiesConfig')
125
+ GuardrailPiiEntity = Shapes::StructureShape.new(name: 'GuardrailPiiEntity')
126
+ GuardrailPiiEntityConfig = Shapes::StructureShape.new(name: 'GuardrailPiiEntityConfig')
127
+ GuardrailPiiEntityType = Shapes::StringShape.new(name: 'GuardrailPiiEntityType')
128
+ GuardrailRegex = Shapes::StructureShape.new(name: 'GuardrailRegex')
129
+ GuardrailRegexConfig = Shapes::StructureShape.new(name: 'GuardrailRegexConfig')
130
+ GuardrailRegexConfigDescriptionString = Shapes::StringShape.new(name: 'GuardrailRegexConfigDescriptionString')
131
+ GuardrailRegexConfigNameString = Shapes::StringShape.new(name: 'GuardrailRegexConfigNameString')
132
+ GuardrailRegexConfigPatternString = Shapes::StringShape.new(name: 'GuardrailRegexConfigPatternString')
133
+ GuardrailRegexDescriptionString = Shapes::StringShape.new(name: 'GuardrailRegexDescriptionString')
134
+ GuardrailRegexNameString = Shapes::StringShape.new(name: 'GuardrailRegexNameString')
135
+ GuardrailRegexPatternString = Shapes::StringShape.new(name: 'GuardrailRegexPatternString')
136
+ GuardrailRegexes = Shapes::ListShape.new(name: 'GuardrailRegexes')
137
+ GuardrailRegexesConfig = Shapes::ListShape.new(name: 'GuardrailRegexesConfig')
138
+ GuardrailSensitiveInformationAction = Shapes::StringShape.new(name: 'GuardrailSensitiveInformationAction')
139
+ GuardrailSensitiveInformationPolicy = Shapes::StructureShape.new(name: 'GuardrailSensitiveInformationPolicy')
140
+ GuardrailSensitiveInformationPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailSensitiveInformationPolicyConfig')
141
+ GuardrailStatus = Shapes::StringShape.new(name: 'GuardrailStatus')
142
+ GuardrailStatusReason = Shapes::StringShape.new(name: 'GuardrailStatusReason')
143
+ GuardrailStatusReasons = Shapes::ListShape.new(name: 'GuardrailStatusReasons')
144
+ GuardrailSummaries = Shapes::ListShape.new(name: 'GuardrailSummaries')
145
+ GuardrailSummary = Shapes::StructureShape.new(name: 'GuardrailSummary')
146
+ GuardrailTopic = Shapes::StructureShape.new(name: 'GuardrailTopic')
147
+ GuardrailTopicConfig = Shapes::StructureShape.new(name: 'GuardrailTopicConfig')
148
+ GuardrailTopicDefinition = Shapes::StringShape.new(name: 'GuardrailTopicDefinition')
149
+ GuardrailTopicExample = Shapes::StringShape.new(name: 'GuardrailTopicExample')
150
+ GuardrailTopicExamples = Shapes::ListShape.new(name: 'GuardrailTopicExamples')
151
+ GuardrailTopicName = Shapes::StringShape.new(name: 'GuardrailTopicName')
152
+ GuardrailTopicPolicy = Shapes::StructureShape.new(name: 'GuardrailTopicPolicy')
153
+ GuardrailTopicPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailTopicPolicyConfig')
154
+ GuardrailTopicType = Shapes::StringShape.new(name: 'GuardrailTopicType')
155
+ GuardrailTopics = Shapes::ListShape.new(name: 'GuardrailTopics')
156
+ GuardrailTopicsConfig = Shapes::ListShape.new(name: 'GuardrailTopicsConfig')
157
+ GuardrailVersion = Shapes::StringShape.new(name: 'GuardrailVersion')
158
+ GuardrailWord = Shapes::StructureShape.new(name: 'GuardrailWord')
159
+ GuardrailWordConfig = Shapes::StructureShape.new(name: 'GuardrailWordConfig')
160
+ GuardrailWordConfigTextString = Shapes::StringShape.new(name: 'GuardrailWordConfigTextString')
161
+ GuardrailWordPolicy = Shapes::StructureShape.new(name: 'GuardrailWordPolicy')
162
+ GuardrailWordPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailWordPolicyConfig')
163
+ GuardrailWordTextString = Shapes::StringShape.new(name: 'GuardrailWordTextString')
164
+ GuardrailWords = Shapes::ListShape.new(name: 'GuardrailWords')
165
+ GuardrailWordsConfig = Shapes::ListShape.new(name: 'GuardrailWordsConfig')
166
+ HumanEvaluationConfig = Shapes::StructureShape.new(name: 'HumanEvaluationConfig')
167
+ HumanEvaluationCustomMetric = Shapes::StructureShape.new(name: 'HumanEvaluationCustomMetric')
168
+ HumanEvaluationCustomMetrics = Shapes::ListShape.new(name: 'HumanEvaluationCustomMetrics')
169
+ HumanTaskInstructions = Shapes::StringShape.new(name: 'HumanTaskInstructions')
170
+ HumanWorkflowConfig = Shapes::StructureShape.new(name: 'HumanWorkflowConfig')
58
171
  IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
59
172
  InferenceType = Shapes::StringShape.new(name: 'InferenceType')
60
173
  InferenceTypeList = Shapes::ListShape.new(name: 'InferenceTypeList')
@@ -65,8 +178,12 @@ module Aws::Bedrock
65
178
  KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
66
179
  ListCustomModelsRequest = Shapes::StructureShape.new(name: 'ListCustomModelsRequest')
67
180
  ListCustomModelsResponse = Shapes::StructureShape.new(name: 'ListCustomModelsResponse')
181
+ ListEvaluationJobsRequest = Shapes::StructureShape.new(name: 'ListEvaluationJobsRequest')
182
+ ListEvaluationJobsResponse = Shapes::StructureShape.new(name: 'ListEvaluationJobsResponse')
68
183
  ListFoundationModelsRequest = Shapes::StructureShape.new(name: 'ListFoundationModelsRequest')
69
184
  ListFoundationModelsResponse = Shapes::StructureShape.new(name: 'ListFoundationModelsResponse')
185
+ ListGuardrailsRequest = Shapes::StructureShape.new(name: 'ListGuardrailsRequest')
186
+ ListGuardrailsResponse = Shapes::StructureShape.new(name: 'ListGuardrailsResponse')
70
187
  ListModelCustomizationJobsRequest = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsRequest')
71
188
  ListModelCustomizationJobsResponse = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsResponse')
72
189
  ListProvisionedModelThroughputsRequest = Shapes::StructureShape.new(name: 'ListProvisionedModelThroughputsRequest')
@@ -107,6 +224,7 @@ module Aws::Bedrock
107
224
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
108
225
  S3Config = Shapes::StructureShape.new(name: 'S3Config')
109
226
  S3Uri = Shapes::StringShape.new(name: 'S3Uri')
227
+ SageMakerFlowDefinitionArn = Shapes::StringShape.new(name: 'SageMakerFlowDefinitionArn')
110
228
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
111
229
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
112
230
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
@@ -114,6 +232,8 @@ module Aws::Bedrock
114
232
  SortJobsBy = Shapes::StringShape.new(name: 'SortJobsBy')
115
233
  SortModelsBy = Shapes::StringShape.new(name: 'SortModelsBy')
116
234
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
235
+ StopEvaluationJobRequest = Shapes::StructureShape.new(name: 'StopEvaluationJobRequest')
236
+ StopEvaluationJobResponse = Shapes::StructureShape.new(name: 'StopEvaluationJobResponse')
117
237
  StopModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'StopModelCustomizationJobRequest')
118
238
  StopModelCustomizationJobResponse = Shapes::StructureShape.new(name: 'StopModelCustomizationJobResponse')
119
239
  String = Shapes::StringShape.new(name: 'String')
@@ -134,6 +254,8 @@ module Aws::Bedrock
134
254
  TrainingMetrics = Shapes::StructureShape.new(name: 'TrainingMetrics')
135
255
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
136
256
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
257
+ UpdateGuardrailRequest = Shapes::StructureShape.new(name: 'UpdateGuardrailRequest')
258
+ UpdateGuardrailResponse = Shapes::StructureShape.new(name: 'UpdateGuardrailResponse')
137
259
  UpdateProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'UpdateProvisionedModelThroughputRequest')
138
260
  UpdateProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'UpdateProvisionedModelThroughputResponse')
139
261
  ValidationDataConfig = Shapes::StructureShape.new(name: 'ValidationDataConfig')
@@ -147,6 +269,9 @@ module Aws::Bedrock
147
269
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
148
270
  AccessDeniedException.struct_class = Types::AccessDeniedException
149
271
 
272
+ AutomatedEvaluationConfig.add_member(:dataset_metric_configs, Shapes::ShapeRef.new(shape: EvaluationDatasetMetricConfigs, required: true, location_name: "datasetMetricConfigs"))
273
+ AutomatedEvaluationConfig.struct_class = Types::AutomatedEvaluationConfig
274
+
150
275
  CloudWatchConfig.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
151
276
  CloudWatchConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
152
277
  CloudWatchConfig.add_member(:large_data_delivery_s3_config, Shapes::ShapeRef.new(shape: S3Config, location_name: "largeDataDeliveryS3Config"))
@@ -155,6 +280,48 @@ module Aws::Bedrock
155
280
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
156
281
  ConflictException.struct_class = Types::ConflictException
157
282
 
283
+ CreateEvaluationJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: EvaluationJobName, required: true, location_name: "jobName"))
284
+ CreateEvaluationJobRequest.add_member(:job_description, Shapes::ShapeRef.new(shape: EvaluationJobDescription, location_name: "jobDescription"))
285
+ CreateEvaluationJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
286
+ CreateEvaluationJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
287
+ CreateEvaluationJobRequest.add_member(:customer_encryption_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "customerEncryptionKeyId"))
288
+ CreateEvaluationJobRequest.add_member(:job_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "jobTags"))
289
+ CreateEvaluationJobRequest.add_member(:evaluation_config, Shapes::ShapeRef.new(shape: EvaluationConfig, required: true, location_name: "evaluationConfig"))
290
+ CreateEvaluationJobRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: EvaluationInferenceConfig, required: true, location_name: "inferenceConfig"))
291
+ CreateEvaluationJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: EvaluationOutputDataConfig, required: true, location_name: "outputDataConfig"))
292
+ CreateEvaluationJobRequest.struct_class = Types::CreateEvaluationJobRequest
293
+
294
+ CreateEvaluationJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: EvaluationJobArn, required: true, location_name: "jobArn"))
295
+ CreateEvaluationJobResponse.struct_class = Types::CreateEvaluationJobResponse
296
+
297
+ CreateGuardrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailName, required: true, location_name: "name"))
298
+ CreateGuardrailRequest.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailDescription, location_name: "description"))
299
+ CreateGuardrailRequest.add_member(:topic_policy_config, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyConfig, location_name: "topicPolicyConfig"))
300
+ CreateGuardrailRequest.add_member(:content_policy_config, Shapes::ShapeRef.new(shape: GuardrailContentPolicyConfig, location_name: "contentPolicyConfig"))
301
+ CreateGuardrailRequest.add_member(:word_policy_config, Shapes::ShapeRef.new(shape: GuardrailWordPolicyConfig, location_name: "wordPolicyConfig"))
302
+ CreateGuardrailRequest.add_member(:sensitive_information_policy_config, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyConfig, location_name: "sensitiveInformationPolicyConfig"))
303
+ CreateGuardrailRequest.add_member(:blocked_input_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedInputMessaging"))
304
+ CreateGuardrailRequest.add_member(:blocked_outputs_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedOutputsMessaging"))
305
+ CreateGuardrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
306
+ CreateGuardrailRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
307
+ CreateGuardrailRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
308
+ CreateGuardrailRequest.struct_class = Types::CreateGuardrailRequest
309
+
310
+ CreateGuardrailResponse.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, required: true, location_name: "guardrailId"))
311
+ CreateGuardrailResponse.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, required: true, location_name: "guardrailArn"))
312
+ CreateGuardrailResponse.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailDraftVersion, required: true, location_name: "version"))
313
+ CreateGuardrailResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
314
+ CreateGuardrailResponse.struct_class = Types::CreateGuardrailResponse
315
+
316
+ CreateGuardrailVersionRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
317
+ CreateGuardrailVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailDescription, location_name: "description"))
318
+ CreateGuardrailVersionRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
319
+ CreateGuardrailVersionRequest.struct_class = Types::CreateGuardrailVersionRequest
320
+
321
+ CreateGuardrailVersionResponse.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, required: true, location_name: "guardrailId"))
322
+ CreateGuardrailVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailNumericalVersion, required: true, location_name: "version"))
323
+ CreateGuardrailVersionResponse.struct_class = Types::CreateGuardrailVersionResponse
324
+
158
325
  CreateModelCustomizationJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
159
326
  CreateModelCustomizationJobRequest.add_member(:custom_model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "customModelName"))
160
327
  CreateModelCustomizationJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
@@ -200,6 +367,12 @@ module Aws::Bedrock
200
367
 
201
368
  DeleteCustomModelResponse.struct_class = Types::DeleteCustomModelResponse
202
369
 
370
+ DeleteGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
371
+ DeleteGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailNumericalVersion, location: "querystring", location_name: "guardrailVersion"))
372
+ DeleteGuardrailRequest.struct_class = Types::DeleteGuardrailRequest
373
+
374
+ DeleteGuardrailResponse.struct_class = Types::DeleteGuardrailResponse
375
+
203
376
  DeleteModelInvocationLoggingConfigurationRequest.struct_class = Types::DeleteModelInvocationLoggingConfigurationRequest
204
377
 
205
378
  DeleteModelInvocationLoggingConfigurationResponse.struct_class = Types::DeleteModelInvocationLoggingConfigurationResponse
@@ -209,6 +382,71 @@ module Aws::Bedrock
209
382
 
210
383
  DeleteProvisionedModelThroughputResponse.struct_class = Types::DeleteProvisionedModelThroughputResponse
211
384
 
385
+ ErrorMessages.member = Shapes::ShapeRef.new(shape: ErrorMessage)
386
+
387
+ EvaluationBedrockModel.add_member(:model_identifier, Shapes::ShapeRef.new(shape: EvaluationModelIdentifier, required: true, location_name: "modelIdentifier"))
388
+ EvaluationBedrockModel.add_member(:inference_params, Shapes::ShapeRef.new(shape: EvaluationModelInferenceParams, required: true, location_name: "inferenceParams"))
389
+ EvaluationBedrockModel.struct_class = Types::EvaluationBedrockModel
390
+
391
+ EvaluationConfig.add_member(:automated, Shapes::ShapeRef.new(shape: AutomatedEvaluationConfig, location_name: "automated"))
392
+ EvaluationConfig.add_member(:human, Shapes::ShapeRef.new(shape: HumanEvaluationConfig, location_name: "human"))
393
+ EvaluationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
394
+ EvaluationConfig.add_member_subclass(:automated, Types::EvaluationConfig::Automated)
395
+ EvaluationConfig.add_member_subclass(:human, Types::EvaluationConfig::Human)
396
+ EvaluationConfig.add_member_subclass(:unknown, Types::EvaluationConfig::Unknown)
397
+ EvaluationConfig.struct_class = Types::EvaluationConfig
398
+
399
+ EvaluationDataset.add_member(:name, Shapes::ShapeRef.new(shape: EvaluationDatasetName, required: true, location_name: "name"))
400
+ EvaluationDataset.add_member(:dataset_location, Shapes::ShapeRef.new(shape: EvaluationDatasetLocation, location_name: "datasetLocation"))
401
+ EvaluationDataset.struct_class = Types::EvaluationDataset
402
+
403
+ EvaluationDatasetLocation.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "s3Uri"))
404
+ EvaluationDatasetLocation.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
405
+ EvaluationDatasetLocation.add_member_subclass(:s3_uri, Types::EvaluationDatasetLocation::S3Uri)
406
+ EvaluationDatasetLocation.add_member_subclass(:unknown, Types::EvaluationDatasetLocation::Unknown)
407
+ EvaluationDatasetLocation.struct_class = Types::EvaluationDatasetLocation
408
+
409
+ EvaluationDatasetMetricConfig.add_member(:task_type, Shapes::ShapeRef.new(shape: EvaluationTaskType, required: true, location_name: "taskType"))
410
+ EvaluationDatasetMetricConfig.add_member(:dataset, Shapes::ShapeRef.new(shape: EvaluationDataset, required: true, location_name: "dataset"))
411
+ EvaluationDatasetMetricConfig.add_member(:metric_names, Shapes::ShapeRef.new(shape: EvaluationMetricNames, required: true, location_name: "metricNames"))
412
+ EvaluationDatasetMetricConfig.struct_class = Types::EvaluationDatasetMetricConfig
413
+
414
+ EvaluationDatasetMetricConfigs.member = Shapes::ShapeRef.new(shape: EvaluationDatasetMetricConfig)
415
+
416
+ EvaluationInferenceConfig.add_member(:models, Shapes::ShapeRef.new(shape: EvaluationModelConfigs, location_name: "models"))
417
+ EvaluationInferenceConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
418
+ EvaluationInferenceConfig.add_member_subclass(:models, Types::EvaluationInferenceConfig::Models)
419
+ EvaluationInferenceConfig.add_member_subclass(:unknown, Types::EvaluationInferenceConfig::Unknown)
420
+ EvaluationInferenceConfig.struct_class = Types::EvaluationInferenceConfig
421
+
422
+ EvaluationMetricNames.member = Shapes::ShapeRef.new(shape: EvaluationMetricName)
423
+
424
+ EvaluationModelConfig.add_member(:bedrock_model, Shapes::ShapeRef.new(shape: EvaluationBedrockModel, location_name: "bedrockModel"))
425
+ EvaluationModelConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
426
+ EvaluationModelConfig.add_member_subclass(:bedrock_model, Types::EvaluationModelConfig::BedrockModel)
427
+ EvaluationModelConfig.add_member_subclass(:unknown, Types::EvaluationModelConfig::Unknown)
428
+ EvaluationModelConfig.struct_class = Types::EvaluationModelConfig
429
+
430
+ EvaluationModelConfigs.member = Shapes::ShapeRef.new(shape: EvaluationModelConfig)
431
+
432
+ EvaluationModelIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluationModelIdentifier)
433
+
434
+ EvaluationOutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
435
+ EvaluationOutputDataConfig.struct_class = Types::EvaluationOutputDataConfig
436
+
437
+ EvaluationSummaries.member = Shapes::ShapeRef.new(shape: EvaluationSummary)
438
+
439
+ EvaluationSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: EvaluationJobArn, required: true, location_name: "jobArn"))
440
+ EvaluationSummary.add_member(:job_name, Shapes::ShapeRef.new(shape: EvaluationJobName, required: true, location_name: "jobName"))
441
+ EvaluationSummary.add_member(:status, Shapes::ShapeRef.new(shape: EvaluationJobStatus, required: true, location_name: "status"))
442
+ EvaluationSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
443
+ EvaluationSummary.add_member(:job_type, Shapes::ShapeRef.new(shape: EvaluationJobType, required: true, location_name: "jobType"))
444
+ EvaluationSummary.add_member(:evaluation_task_types, Shapes::ShapeRef.new(shape: EvaluationTaskTypes, required: true, location_name: "evaluationTaskTypes"))
445
+ EvaluationSummary.add_member(:model_identifiers, Shapes::ShapeRef.new(shape: EvaluationModelIdentifiers, required: true, location_name: "modelIdentifiers"))
446
+ EvaluationSummary.struct_class = Types::EvaluationSummary
447
+
448
+ EvaluationTaskTypes.member = Shapes::ShapeRef.new(shape: EvaluationTaskType)
449
+
212
450
  FoundationModelDetails.add_member(:model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, required: true, location_name: "modelArn"))
213
451
  FoundationModelDetails.add_member(:model_id, Shapes::ShapeRef.new(shape: BedrockModelId, required: true, location_name: "modelId"))
214
452
  FoundationModelDetails.add_member(:model_name, Shapes::ShapeRef.new(shape: BrandedName, location_name: "modelName"))
@@ -257,12 +495,53 @@ module Aws::Bedrock
257
495
  GetCustomModelResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
258
496
  GetCustomModelResponse.struct_class = Types::GetCustomModelResponse
259
497
 
498
+ GetEvaluationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: EvaluationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
499
+ GetEvaluationJobRequest.struct_class = Types::GetEvaluationJobRequest
500
+
501
+ GetEvaluationJobResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: EvaluationJobName, required: true, location_name: "jobName"))
502
+ GetEvaluationJobResponse.add_member(:status, Shapes::ShapeRef.new(shape: EvaluationJobStatus, required: true, location_name: "status"))
503
+ GetEvaluationJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: EvaluationJobArn, required: true, location_name: "jobArn"))
504
+ GetEvaluationJobResponse.add_member(:job_description, Shapes::ShapeRef.new(shape: EvaluationJobDescription, location_name: "jobDescription"))
505
+ GetEvaluationJobResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
506
+ GetEvaluationJobResponse.add_member(:customer_encryption_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "customerEncryptionKeyId"))
507
+ GetEvaluationJobResponse.add_member(:job_type, Shapes::ShapeRef.new(shape: EvaluationJobType, required: true, location_name: "jobType"))
508
+ GetEvaluationJobResponse.add_member(:evaluation_config, Shapes::ShapeRef.new(shape: EvaluationConfig, required: true, location_name: "evaluationConfig"))
509
+ GetEvaluationJobResponse.add_member(:inference_config, Shapes::ShapeRef.new(shape: EvaluationInferenceConfig, required: true, location_name: "inferenceConfig"))
510
+ GetEvaluationJobResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: EvaluationOutputDataConfig, required: true, location_name: "outputDataConfig"))
511
+ GetEvaluationJobResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
512
+ GetEvaluationJobResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
513
+ GetEvaluationJobResponse.add_member(:failure_messages, Shapes::ShapeRef.new(shape: ErrorMessages, location_name: "failureMessages"))
514
+ GetEvaluationJobResponse.struct_class = Types::GetEvaluationJobResponse
515
+
260
516
  GetFoundationModelRequest.add_member(:model_identifier, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location: "uri", location_name: "modelIdentifier"))
261
517
  GetFoundationModelRequest.struct_class = Types::GetFoundationModelRequest
262
518
 
263
519
  GetFoundationModelResponse.add_member(:model_details, Shapes::ShapeRef.new(shape: FoundationModelDetails, location_name: "modelDetails"))
264
520
  GetFoundationModelResponse.struct_class = Types::GetFoundationModelResponse
265
521
 
522
+ GetGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
523
+ GetGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "querystring", location_name: "guardrailVersion"))
524
+ GetGuardrailRequest.struct_class = Types::GetGuardrailRequest
525
+
526
+ GetGuardrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailName, required: true, location_name: "name"))
527
+ GetGuardrailResponse.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailDescription, location_name: "description"))
528
+ GetGuardrailResponse.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, required: true, location_name: "guardrailId"))
529
+ GetGuardrailResponse.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, required: true, location_name: "guardrailArn"))
530
+ GetGuardrailResponse.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "version"))
531
+ GetGuardrailResponse.add_member(:status, Shapes::ShapeRef.new(shape: GuardrailStatus, required: true, location_name: "status"))
532
+ GetGuardrailResponse.add_member(:topic_policy, Shapes::ShapeRef.new(shape: GuardrailTopicPolicy, location_name: "topicPolicy"))
533
+ GetGuardrailResponse.add_member(:content_policy, Shapes::ShapeRef.new(shape: GuardrailContentPolicy, location_name: "contentPolicy"))
534
+ GetGuardrailResponse.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicy, location_name: "wordPolicy"))
535
+ GetGuardrailResponse.add_member(:sensitive_information_policy, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicy, location_name: "sensitiveInformationPolicy"))
536
+ GetGuardrailResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
537
+ GetGuardrailResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
538
+ GetGuardrailResponse.add_member(:status_reasons, Shapes::ShapeRef.new(shape: GuardrailStatusReasons, location_name: "statusReasons"))
539
+ GetGuardrailResponse.add_member(:failure_recommendations, Shapes::ShapeRef.new(shape: GuardrailFailureRecommendations, location_name: "failureRecommendations"))
540
+ GetGuardrailResponse.add_member(:blocked_input_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedInputMessaging"))
541
+ GetGuardrailResponse.add_member(:blocked_outputs_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedOutputsMessaging"))
542
+ GetGuardrailResponse.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
543
+ GetGuardrailResponse.struct_class = Types::GetGuardrailResponse
544
+
266
545
  GetModelCustomizationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: ModelCustomizationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
267
546
  GetModelCustomizationJobRequest.struct_class = Types::GetModelCustomizationJobRequest
268
547
 
@@ -312,6 +591,146 @@ module Aws::Bedrock
312
591
  GetProvisionedModelThroughputResponse.add_member(:commitment_expiration_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "commitmentExpirationTime"))
313
592
  GetProvisionedModelThroughputResponse.struct_class = Types::GetProvisionedModelThroughputResponse
314
593
 
594
+ GuardrailContentFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContentFilterType, required: true, location_name: "type"))
595
+ GuardrailContentFilter.add_member(:input_strength, Shapes::ShapeRef.new(shape: GuardrailFilterStrength, required: true, location_name: "inputStrength"))
596
+ GuardrailContentFilter.add_member(:output_strength, Shapes::ShapeRef.new(shape: GuardrailFilterStrength, required: true, location_name: "outputStrength"))
597
+ GuardrailContentFilter.struct_class = Types::GuardrailContentFilter
598
+
599
+ GuardrailContentFilterConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContentFilterType, required: true, location_name: "type"))
600
+ GuardrailContentFilterConfig.add_member(:input_strength, Shapes::ShapeRef.new(shape: GuardrailFilterStrength, required: true, location_name: "inputStrength"))
601
+ GuardrailContentFilterConfig.add_member(:output_strength, Shapes::ShapeRef.new(shape: GuardrailFilterStrength, required: true, location_name: "outputStrength"))
602
+ GuardrailContentFilterConfig.struct_class = Types::GuardrailContentFilterConfig
603
+
604
+ GuardrailContentFilters.member = Shapes::ShapeRef.new(shape: GuardrailContentFilter)
605
+
606
+ GuardrailContentFiltersConfig.member = Shapes::ShapeRef.new(shape: GuardrailContentFilterConfig)
607
+
608
+ GuardrailContentPolicy.add_member(:filters, Shapes::ShapeRef.new(shape: GuardrailContentFilters, location_name: "filters"))
609
+ GuardrailContentPolicy.struct_class = Types::GuardrailContentPolicy
610
+
611
+ GuardrailContentPolicyConfig.add_member(:filters_config, Shapes::ShapeRef.new(shape: GuardrailContentFiltersConfig, required: true, location_name: "filtersConfig"))
612
+ GuardrailContentPolicyConfig.struct_class = Types::GuardrailContentPolicyConfig
613
+
614
+ GuardrailFailureRecommendations.member = Shapes::ShapeRef.new(shape: GuardrailFailureRecommendation)
615
+
616
+ GuardrailManagedWordLists.member = Shapes::ShapeRef.new(shape: GuardrailManagedWords)
617
+
618
+ GuardrailManagedWordListsConfig.member = Shapes::ShapeRef.new(shape: GuardrailManagedWordsConfig)
619
+
620
+ GuardrailManagedWords.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordsType, required: true, location_name: "type"))
621
+ GuardrailManagedWords.struct_class = Types::GuardrailManagedWords
622
+
623
+ GuardrailManagedWordsConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordsType, required: true, location_name: "type"))
624
+ GuardrailManagedWordsConfig.struct_class = Types::GuardrailManagedWordsConfig
625
+
626
+ GuardrailPiiEntities.member = Shapes::ShapeRef.new(shape: GuardrailPiiEntity)
627
+
628
+ GuardrailPiiEntitiesConfig.member = Shapes::ShapeRef.new(shape: GuardrailPiiEntityConfig)
629
+
630
+ GuardrailPiiEntity.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
631
+ GuardrailPiiEntity.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
632
+ GuardrailPiiEntity.struct_class = Types::GuardrailPiiEntity
633
+
634
+ GuardrailPiiEntityConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
635
+ GuardrailPiiEntityConfig.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
636
+ GuardrailPiiEntityConfig.struct_class = Types::GuardrailPiiEntityConfig
637
+
638
+ GuardrailRegex.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailRegexNameString, required: true, location_name: "name"))
639
+ GuardrailRegex.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailRegexDescriptionString, location_name: "description"))
640
+ GuardrailRegex.add_member(:pattern, Shapes::ShapeRef.new(shape: GuardrailRegexPatternString, required: true, location_name: "pattern"))
641
+ GuardrailRegex.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
642
+ GuardrailRegex.struct_class = Types::GuardrailRegex
643
+
644
+ GuardrailRegexConfig.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailRegexConfigNameString, required: true, location_name: "name"))
645
+ GuardrailRegexConfig.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailRegexConfigDescriptionString, location_name: "description"))
646
+ GuardrailRegexConfig.add_member(:pattern, Shapes::ShapeRef.new(shape: GuardrailRegexConfigPatternString, required: true, location_name: "pattern"))
647
+ GuardrailRegexConfig.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
648
+ GuardrailRegexConfig.struct_class = Types::GuardrailRegexConfig
649
+
650
+ GuardrailRegexes.member = Shapes::ShapeRef.new(shape: GuardrailRegex)
651
+
652
+ GuardrailRegexesConfig.member = Shapes::ShapeRef.new(shape: GuardrailRegexConfig)
653
+
654
+ GuardrailSensitiveInformationPolicy.add_member(:pii_entities, Shapes::ShapeRef.new(shape: GuardrailPiiEntities, location_name: "piiEntities"))
655
+ GuardrailSensitiveInformationPolicy.add_member(:regexes, Shapes::ShapeRef.new(shape: GuardrailRegexes, location_name: "regexes"))
656
+ GuardrailSensitiveInformationPolicy.struct_class = Types::GuardrailSensitiveInformationPolicy
657
+
658
+ GuardrailSensitiveInformationPolicyConfig.add_member(:pii_entities_config, Shapes::ShapeRef.new(shape: GuardrailPiiEntitiesConfig, location_name: "piiEntitiesConfig"))
659
+ GuardrailSensitiveInformationPolicyConfig.add_member(:regexes_config, Shapes::ShapeRef.new(shape: GuardrailRegexesConfig, location_name: "regexesConfig"))
660
+ GuardrailSensitiveInformationPolicyConfig.struct_class = Types::GuardrailSensitiveInformationPolicyConfig
661
+
662
+ GuardrailStatusReasons.member = Shapes::ShapeRef.new(shape: GuardrailStatusReason)
663
+
664
+ GuardrailSummaries.member = Shapes::ShapeRef.new(shape: GuardrailSummary)
665
+
666
+ GuardrailSummary.add_member(:id, Shapes::ShapeRef.new(shape: GuardrailId, required: true, location_name: "id"))
667
+ GuardrailSummary.add_member(:arn, Shapes::ShapeRef.new(shape: GuardrailArn, required: true, location_name: "arn"))
668
+ GuardrailSummary.add_member(:status, Shapes::ShapeRef.new(shape: GuardrailStatus, required: true, location_name: "status"))
669
+ GuardrailSummary.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailName, required: true, location_name: "name"))
670
+ GuardrailSummary.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailDescription, location_name: "description"))
671
+ GuardrailSummary.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "version"))
672
+ GuardrailSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
673
+ GuardrailSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
674
+ GuardrailSummary.struct_class = Types::GuardrailSummary
675
+
676
+ GuardrailTopic.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailTopicName, required: true, location_name: "name"))
677
+ GuardrailTopic.add_member(:definition, Shapes::ShapeRef.new(shape: GuardrailTopicDefinition, required: true, location_name: "definition"))
678
+ GuardrailTopic.add_member(:examples, Shapes::ShapeRef.new(shape: GuardrailTopicExamples, location_name: "examples"))
679
+ GuardrailTopic.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, location_name: "type"))
680
+ GuardrailTopic.struct_class = Types::GuardrailTopic
681
+
682
+ GuardrailTopicConfig.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailTopicName, required: true, location_name: "name"))
683
+ GuardrailTopicConfig.add_member(:definition, Shapes::ShapeRef.new(shape: GuardrailTopicDefinition, required: true, location_name: "definition"))
684
+ GuardrailTopicConfig.add_member(:examples, Shapes::ShapeRef.new(shape: GuardrailTopicExamples, location_name: "examples"))
685
+ GuardrailTopicConfig.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, required: true, location_name: "type"))
686
+ GuardrailTopicConfig.struct_class = Types::GuardrailTopicConfig
687
+
688
+ GuardrailTopicExamples.member = Shapes::ShapeRef.new(shape: GuardrailTopicExample)
689
+
690
+ GuardrailTopicPolicy.add_member(:topics, Shapes::ShapeRef.new(shape: GuardrailTopics, required: true, location_name: "topics"))
691
+ GuardrailTopicPolicy.struct_class = Types::GuardrailTopicPolicy
692
+
693
+ GuardrailTopicPolicyConfig.add_member(:topics_config, Shapes::ShapeRef.new(shape: GuardrailTopicsConfig, required: true, location_name: "topicsConfig"))
694
+ GuardrailTopicPolicyConfig.struct_class = Types::GuardrailTopicPolicyConfig
695
+
696
+ GuardrailTopics.member = Shapes::ShapeRef.new(shape: GuardrailTopic)
697
+
698
+ GuardrailTopicsConfig.member = Shapes::ShapeRef.new(shape: GuardrailTopicConfig)
699
+
700
+ GuardrailWord.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailWordTextString, required: true, location_name: "text"))
701
+ GuardrailWord.struct_class = Types::GuardrailWord
702
+
703
+ GuardrailWordConfig.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailWordConfigTextString, required: true, location_name: "text"))
704
+ GuardrailWordConfig.struct_class = Types::GuardrailWordConfig
705
+
706
+ GuardrailWordPolicy.add_member(:words, Shapes::ShapeRef.new(shape: GuardrailWords, location_name: "words"))
707
+ GuardrailWordPolicy.add_member(:managed_word_lists, Shapes::ShapeRef.new(shape: GuardrailManagedWordLists, location_name: "managedWordLists"))
708
+ GuardrailWordPolicy.struct_class = Types::GuardrailWordPolicy
709
+
710
+ GuardrailWordPolicyConfig.add_member(:words_config, Shapes::ShapeRef.new(shape: GuardrailWordsConfig, location_name: "wordsConfig"))
711
+ GuardrailWordPolicyConfig.add_member(:managed_word_lists_config, Shapes::ShapeRef.new(shape: GuardrailManagedWordListsConfig, location_name: "managedWordListsConfig"))
712
+ GuardrailWordPolicyConfig.struct_class = Types::GuardrailWordPolicyConfig
713
+
714
+ GuardrailWords.member = Shapes::ShapeRef.new(shape: GuardrailWord)
715
+
716
+ GuardrailWordsConfig.member = Shapes::ShapeRef.new(shape: GuardrailWordConfig)
717
+
718
+ HumanEvaluationConfig.add_member(:human_workflow_config, Shapes::ShapeRef.new(shape: HumanWorkflowConfig, location_name: "humanWorkflowConfig"))
719
+ HumanEvaluationConfig.add_member(:custom_metrics, Shapes::ShapeRef.new(shape: HumanEvaluationCustomMetrics, location_name: "customMetrics"))
720
+ HumanEvaluationConfig.add_member(:dataset_metric_configs, Shapes::ShapeRef.new(shape: EvaluationDatasetMetricConfigs, required: true, location_name: "datasetMetricConfigs"))
721
+ HumanEvaluationConfig.struct_class = Types::HumanEvaluationConfig
722
+
723
+ HumanEvaluationCustomMetric.add_member(:name, Shapes::ShapeRef.new(shape: EvaluationMetricName, required: true, location_name: "name"))
724
+ HumanEvaluationCustomMetric.add_member(:description, Shapes::ShapeRef.new(shape: EvaluationMetricDescription, location_name: "description"))
725
+ HumanEvaluationCustomMetric.add_member(:rating_method, Shapes::ShapeRef.new(shape: EvaluationRatingMethod, required: true, location_name: "ratingMethod"))
726
+ HumanEvaluationCustomMetric.struct_class = Types::HumanEvaluationCustomMetric
727
+
728
+ HumanEvaluationCustomMetrics.member = Shapes::ShapeRef.new(shape: HumanEvaluationCustomMetric)
729
+
730
+ HumanWorkflowConfig.add_member(:flow_definition_arn, Shapes::ShapeRef.new(shape: SageMakerFlowDefinitionArn, required: true, location_name: "flowDefinitionArn"))
731
+ HumanWorkflowConfig.add_member(:instructions, Shapes::ShapeRef.new(shape: HumanTaskInstructions, location_name: "instructions"))
732
+ HumanWorkflowConfig.struct_class = Types::HumanWorkflowConfig
733
+
315
734
  InferenceTypeList.member = Shapes::ShapeRef.new(shape: InferenceType)
316
735
 
317
736
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
@@ -332,6 +751,20 @@ module Aws::Bedrock
332
751
  ListCustomModelsResponse.add_member(:model_summaries, Shapes::ShapeRef.new(shape: CustomModelSummaryList, location_name: "modelSummaries"))
333
752
  ListCustomModelsResponse.struct_class = Types::ListCustomModelsResponse
334
753
 
754
+ ListEvaluationJobsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
755
+ ListEvaluationJobsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
756
+ ListEvaluationJobsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: EvaluationJobStatus, location: "querystring", location_name: "statusEquals"))
757
+ ListEvaluationJobsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: EvaluationJobName, location: "querystring", location_name: "nameContains"))
758
+ ListEvaluationJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
759
+ ListEvaluationJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
760
+ ListEvaluationJobsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortJobsBy, location: "querystring", location_name: "sortBy"))
761
+ ListEvaluationJobsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
762
+ ListEvaluationJobsRequest.struct_class = Types::ListEvaluationJobsRequest
763
+
764
+ ListEvaluationJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
765
+ ListEvaluationJobsResponse.add_member(:job_summaries, Shapes::ShapeRef.new(shape: EvaluationSummaries, location_name: "jobSummaries"))
766
+ ListEvaluationJobsResponse.struct_class = Types::ListEvaluationJobsResponse
767
+
335
768
  ListFoundationModelsRequest.add_member(:by_provider, Shapes::ShapeRef.new(shape: Provider, location: "querystring", location_name: "byProvider"))
336
769
  ListFoundationModelsRequest.add_member(:by_customization_type, Shapes::ShapeRef.new(shape: ModelCustomization, location: "querystring", location_name: "byCustomizationType"))
337
770
  ListFoundationModelsRequest.add_member(:by_output_modality, Shapes::ShapeRef.new(shape: ModelModality, location: "querystring", location_name: "byOutputModality"))
@@ -341,6 +774,15 @@ module Aws::Bedrock
341
774
  ListFoundationModelsResponse.add_member(:model_summaries, Shapes::ShapeRef.new(shape: FoundationModelSummaryList, location_name: "modelSummaries"))
342
775
  ListFoundationModelsResponse.struct_class = Types::ListFoundationModelsResponse
343
776
 
777
+ ListGuardrailsRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "querystring", location_name: "guardrailIdentifier"))
778
+ ListGuardrailsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
779
+ ListGuardrailsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
780
+ ListGuardrailsRequest.struct_class = Types::ListGuardrailsRequest
781
+
782
+ ListGuardrailsResponse.add_member(:guardrails, Shapes::ShapeRef.new(shape: GuardrailSummaries, required: true, location_name: "guardrails"))
783
+ ListGuardrailsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
784
+ ListGuardrailsResponse.struct_class = Types::ListGuardrailsResponse
785
+
344
786
  ListModelCustomizationJobsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
345
787
  ListModelCustomizationJobsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
346
788
  ListModelCustomizationJobsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: FineTuningJobStatus, location: "querystring", location_name: "statusEquals"))
@@ -440,6 +882,11 @@ module Aws::Bedrock
440
882
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
441
883
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
442
884
 
885
+ StopEvaluationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: EvaluationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
886
+ StopEvaluationJobRequest.struct_class = Types::StopEvaluationJobRequest
887
+
888
+ StopEvaluationJobResponse.struct_class = Types::StopEvaluationJobResponse
889
+
443
890
  StopModelCustomizationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: ModelCustomizationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
444
891
  StopModelCustomizationJobRequest.struct_class = Types::StopModelCustomizationJobRequest
445
892
 
@@ -480,6 +927,24 @@ module Aws::Bedrock
480
927
 
481
928
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
482
929
 
930
+ UpdateGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
931
+ UpdateGuardrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailName, required: true, location_name: "name"))
932
+ UpdateGuardrailRequest.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailDescription, location_name: "description"))
933
+ UpdateGuardrailRequest.add_member(:topic_policy_config, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyConfig, location_name: "topicPolicyConfig"))
934
+ UpdateGuardrailRequest.add_member(:content_policy_config, Shapes::ShapeRef.new(shape: GuardrailContentPolicyConfig, location_name: "contentPolicyConfig"))
935
+ UpdateGuardrailRequest.add_member(:word_policy_config, Shapes::ShapeRef.new(shape: GuardrailWordPolicyConfig, location_name: "wordPolicyConfig"))
936
+ UpdateGuardrailRequest.add_member(:sensitive_information_policy_config, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyConfig, location_name: "sensitiveInformationPolicyConfig"))
937
+ UpdateGuardrailRequest.add_member(:blocked_input_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedInputMessaging"))
938
+ UpdateGuardrailRequest.add_member(:blocked_outputs_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedOutputsMessaging"))
939
+ UpdateGuardrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
940
+ UpdateGuardrailRequest.struct_class = Types::UpdateGuardrailRequest
941
+
942
+ UpdateGuardrailResponse.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, required: true, location_name: "guardrailId"))
943
+ UpdateGuardrailResponse.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, required: true, location_name: "guardrailArn"))
944
+ UpdateGuardrailResponse.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailDraftVersion, required: true, location_name: "version"))
945
+ UpdateGuardrailResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
946
+ UpdateGuardrailResponse.struct_class = Types::UpdateGuardrailResponse
947
+
483
948
  UpdateProvisionedModelThroughputRequest.add_member(:provisioned_model_id, Shapes::ShapeRef.new(shape: ProvisionedModelId, required: true, location: "uri", location_name: "provisionedModelId"))
484
949
  UpdateProvisionedModelThroughputRequest.add_member(:desired_provisioned_model_name, Shapes::ShapeRef.new(shape: ProvisionedModelName, location_name: "desiredProvisionedModelName"))
485
950
  UpdateProvisionedModelThroughputRequest.add_member(:desired_model_id, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "desiredModelId"))
@@ -525,6 +990,52 @@ module Aws::Bedrock
525
990
  "uid" => "bedrock-2023-04-20",
526
991
  }
527
992
 
993
+ api.add_operation(:create_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
994
+ o.name = "CreateEvaluationJob"
995
+ o.http_method = "POST"
996
+ o.http_request_uri = "/evaluation-jobs"
997
+ o.input = Shapes::ShapeRef.new(shape: CreateEvaluationJobRequest)
998
+ o.output = Shapes::ShapeRef.new(shape: CreateEvaluationJobResponse)
999
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1000
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1001
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1002
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1003
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1004
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1005
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1006
+ end)
1007
+
1008
+ api.add_operation(:create_guardrail, Seahorse::Model::Operation.new.tap do |o|
1009
+ o.name = "CreateGuardrail"
1010
+ o.http_method = "POST"
1011
+ o.http_request_uri = "/guardrails"
1012
+ o.input = Shapes::ShapeRef.new(shape: CreateGuardrailRequest)
1013
+ o.output = Shapes::ShapeRef.new(shape: CreateGuardrailResponse)
1014
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1015
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1016
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1017
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1018
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1019
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1020
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1021
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1022
+ end)
1023
+
1024
+ api.add_operation(:create_guardrail_version, Seahorse::Model::Operation.new.tap do |o|
1025
+ o.name = "CreateGuardrailVersion"
1026
+ o.http_method = "POST"
1027
+ o.http_request_uri = "/guardrails/{guardrailIdentifier}"
1028
+ o.input = Shapes::ShapeRef.new(shape: CreateGuardrailVersionRequest)
1029
+ o.output = Shapes::ShapeRef.new(shape: CreateGuardrailVersionResponse)
1030
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1031
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1032
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1033
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1034
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1035
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1036
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1037
+ end)
1038
+
528
1039
  api.add_operation(:create_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
529
1040
  o.name = "CreateModelCustomizationJob"
530
1041
  o.http_method = "POST"
@@ -570,6 +1081,20 @@ module Aws::Bedrock
570
1081
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
571
1082
  end)
572
1083
 
1084
+ api.add_operation(:delete_guardrail, Seahorse::Model::Operation.new.tap do |o|
1085
+ o.name = "DeleteGuardrail"
1086
+ o.http_method = "DELETE"
1087
+ o.http_request_uri = "/guardrails/{guardrailIdentifier}"
1088
+ o.input = Shapes::ShapeRef.new(shape: DeleteGuardrailRequest)
1089
+ o.output = Shapes::ShapeRef.new(shape: DeleteGuardrailResponse)
1090
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1091
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1092
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1093
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1094
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1095
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1096
+ end)
1097
+
573
1098
  api.add_operation(:delete_model_invocation_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
574
1099
  o.name = "DeleteModelInvocationLoggingConfiguration"
575
1100
  o.http_method = "DELETE"
@@ -608,6 +1133,19 @@ module Aws::Bedrock
608
1133
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
609
1134
  end)
610
1135
 
1136
+ api.add_operation(:get_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
1137
+ o.name = "GetEvaluationJob"
1138
+ o.http_method = "GET"
1139
+ o.http_request_uri = "/evaluation-jobs/{jobIdentifier}"
1140
+ o.input = Shapes::ShapeRef.new(shape: GetEvaluationJobRequest)
1141
+ o.output = Shapes::ShapeRef.new(shape: GetEvaluationJobResponse)
1142
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1143
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1144
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1145
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1146
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1147
+ end)
1148
+
611
1149
  api.add_operation(:get_foundation_model, Seahorse::Model::Operation.new.tap do |o|
612
1150
  o.name = "GetFoundationModel"
613
1151
  o.http_method = "GET"
@@ -621,6 +1159,19 @@ module Aws::Bedrock
621
1159
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
622
1160
  end)
623
1161
 
1162
+ api.add_operation(:get_guardrail, Seahorse::Model::Operation.new.tap do |o|
1163
+ o.name = "GetGuardrail"
1164
+ o.http_method = "GET"
1165
+ o.http_request_uri = "/guardrails/{guardrailIdentifier}"
1166
+ o.input = Shapes::ShapeRef.new(shape: GetGuardrailRequest)
1167
+ o.output = Shapes::ShapeRef.new(shape: GetGuardrailResponse)
1168
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1169
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1170
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1171
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1172
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1173
+ end)
1174
+
624
1175
  api.add_operation(:get_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
625
1176
  o.name = "GetModelCustomizationJob"
626
1177
  o.http_method = "GET"
@@ -676,6 +1227,24 @@ module Aws::Bedrock
676
1227
  )
677
1228
  end)
678
1229
 
1230
+ api.add_operation(:list_evaluation_jobs, Seahorse::Model::Operation.new.tap do |o|
1231
+ o.name = "ListEvaluationJobs"
1232
+ o.http_method = "GET"
1233
+ o.http_request_uri = "/evaluation-jobs"
1234
+ o.input = Shapes::ShapeRef.new(shape: ListEvaluationJobsRequest)
1235
+ o.output = Shapes::ShapeRef.new(shape: ListEvaluationJobsResponse)
1236
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1237
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1238
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1239
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1240
+ o[:pager] = Aws::Pager.new(
1241
+ limit_key: "max_results",
1242
+ tokens: {
1243
+ "next_token" => "next_token"
1244
+ }
1245
+ )
1246
+ end)
1247
+
679
1248
  api.add_operation(:list_foundation_models, Seahorse::Model::Operation.new.tap do |o|
680
1249
  o.name = "ListFoundationModels"
681
1250
  o.http_method = "GET"
@@ -688,6 +1257,25 @@ module Aws::Bedrock
688
1257
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
689
1258
  end)
690
1259
 
1260
+ api.add_operation(:list_guardrails, Seahorse::Model::Operation.new.tap do |o|
1261
+ o.name = "ListGuardrails"
1262
+ o.http_method = "GET"
1263
+ o.http_request_uri = "/guardrails"
1264
+ o.input = Shapes::ShapeRef.new(shape: ListGuardrailsRequest)
1265
+ o.output = Shapes::ShapeRef.new(shape: ListGuardrailsResponse)
1266
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1267
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1268
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1269
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1270
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1271
+ o[:pager] = Aws::Pager.new(
1272
+ limit_key: "max_results",
1273
+ tokens: {
1274
+ "next_token" => "next_token"
1275
+ }
1276
+ )
1277
+ end)
1278
+
691
1279
  api.add_operation(:list_model_customization_jobs, Seahorse::Model::Operation.new.tap do |o|
692
1280
  o.name = "ListModelCustomizationJobs"
693
1281
  o.http_method = "GET"
@@ -749,6 +1337,20 @@ module Aws::Bedrock
749
1337
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
750
1338
  end)
751
1339
 
1340
+ api.add_operation(:stop_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
1341
+ o.name = "StopEvaluationJob"
1342
+ o.http_method = "POST"
1343
+ o.http_request_uri = "/evaluation-job/{jobIdentifier}/stop"
1344
+ o.input = Shapes::ShapeRef.new(shape: StopEvaluationJobRequest)
1345
+ o.output = Shapes::ShapeRef.new(shape: StopEvaluationJobResponse)
1346
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1347
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1348
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1349
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1350
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1351
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1352
+ end)
1353
+
752
1354
  api.add_operation(:stop_model_customization_job, Seahorse::Model::Operation.new.tap do |o|
753
1355
  o.name = "StopModelCustomizationJob"
754
1356
  o.http_method = "POST"
@@ -790,6 +1392,21 @@ module Aws::Bedrock
790
1392
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
791
1393
  end)
792
1394
 
1395
+ api.add_operation(:update_guardrail, Seahorse::Model::Operation.new.tap do |o|
1396
+ o.name = "UpdateGuardrail"
1397
+ o.http_method = "PUT"
1398
+ o.http_request_uri = "/guardrails/{guardrailIdentifier}"
1399
+ o.input = Shapes::ShapeRef.new(shape: UpdateGuardrailRequest)
1400
+ o.output = Shapes::ShapeRef.new(shape: UpdateGuardrailResponse)
1401
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1402
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1403
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1404
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1405
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1406
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1407
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1408
+ end)
1409
+
793
1410
  api.add_operation(:update_provisioned_model_throughput, Seahorse::Model::Operation.new.tap do |o|
794
1411
  o.name = "UpdateProvisionedModelThroughput"
795
1412
  o.http_method = "PATCH"