aws-sdk-bedrock 1.47.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f179e2f9a060c14b28d6e00b017f3f9f06a99277dc4177dce0adb4512c53b539
4
- data.tar.gz: 9a842dc23ccc2582da862c58b858dffc411141f1fdb7be6d2baf7c5cf167908f
3
+ metadata.gz: 9da64c73d6ab8ebf236ca72e8aa3ee6a7a805e6cc2addef982fd87c8ea77f4cb
4
+ data.tar.gz: ee4d1fccf514c505f9177083aa8ca5ca656ab81d61436424bd58cf010f0dd72d
5
5
  SHA512:
6
- metadata.gz: f6fa05601d63e60f78159ec6f2d6336a5586d66a84942ef30c1fa1e6c065e060e597c85eb4e30d0f225fa16e1ae98bb9844be3ca867da260047a1c60a872643c
7
- data.tar.gz: 4e1084ec3851198bf77fbe6ba27417db9cb6cea5e9e365d247358710cc10c5eed8ea9ccc6a908cf43e84963a8d77d4a10b7035be77e8eb6efadf0de254989a6d
6
+ metadata.gz: 407f20598a71f3387d202b6228533da520bdc194613c0328e7363ba114514ce247d7eecccc68e678aded86120517fd7c945dac11fd74711f1143b2aab9ea4744
7
+ data.tar.gz: e169084a99d77fe1af399b808d2a61a70296b7544b954d14734756a34db00c273aeafd1fa768003e59d66ad0332a010562f8254741f1549045ea06ae006f112a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.48.0 (2025-06-16)
5
+ ------------------
6
+
7
+ * Feature - This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a Amazon SageMaker trained Amazon Nova model into Amazon Bedrock for inference.
8
+
4
9
  1.47.0 (2025-06-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.48.0
@@ -537,6 +537,181 @@ module Aws::Bedrock
537
537
  req.send_request(options)
538
538
  end
539
539
 
540
+ # Creates a new custom model in Amazon Bedrock from an existing
541
+ # SageMaker AI-trained Amazon Nova model stored in an Amazon-managed
542
+ # Amazon S3 bucket. After the model is active, you can use it for
543
+ # inference.
544
+ #
545
+ # To use the model for inference, you must purchase Provisioned
546
+ # Throughput for it. You can't use On-demand inference with these
547
+ # custom models. For more information about Provisioned Throughput, see
548
+ # [Provisioned Throughput][1].
549
+ #
550
+ # The model appears in `ListCustomModels` with a `customizationType` of
551
+ # `imported`. To track the status of the new model, you use the
552
+ # `GetCustomModel` API operation. The model can be in the following
553
+ # states:
554
+ #
555
+ # * `Creating` - Initial state during validation and registration
556
+ #
557
+ # * `Active` - Model is ready for use in inference
558
+ #
559
+ # * `Failed` - Creation process encountered an error
560
+ #
561
+ # For more information about creating custom models, including specific
562
+ # model requirements, see [Import a SageMaker AI-trained Amazon Nova
563
+ # model][2] in the Amazon Bedrock User Guide.
564
+ #
565
+ # <note markdown="1"> You use the `CreateCustomModel` API to import only SageMaker
566
+ # AI-trained Amazon Nova models. To import open-source models, you use
567
+ # the [CreateModelImportJob][3].
568
+ #
569
+ # </note>
570
+ #
571
+ # **Related APIs**
572
+ #
573
+ # * [GetCustomModel][4]
574
+ #
575
+ # * [ListCustomModels][5]
576
+ #
577
+ # * [DeleteCustomModel][6]
578
+ #
579
+ #
580
+ #
581
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
582
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/create-custom-model-from-existing.html
583
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
584
+ # [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html
585
+ # [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html
586
+ # [6]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html
587
+ #
588
+ # @option params [required, String] :model_name
589
+ # A unique name for the custom model.
590
+ #
591
+ # @option params [required, Types::ModelDataSource] :model_source_config
592
+ # The data source for the model. The Amazon S3 URI in the model source
593
+ # must be for the Amazon-managed Amazon S3 bucket containing your model
594
+ # artifacts. SageMaker AI creates this bucket when you run your first
595
+ # SageMaker AI training job.
596
+ #
597
+ # @option params [String] :model_kms_key_arn
598
+ # The Amazon Resource Name (ARN) of the customer managed KMS key to
599
+ # encrypt the custom model. If you don't provide a KMS key, Amazon
600
+ # Bedrock uses an Amazon Web Services-managed KMS key to encrypt the
601
+ # model.
602
+ #
603
+ # If you provide a customer managed KMS key, your Amazon Bedrock service
604
+ # role must have permissions to use it. For more information see
605
+ # [Encryption of imported models][1].
606
+ #
607
+ #
608
+ #
609
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html
610
+ #
611
+ # @option params [String] :role_arn
612
+ # The Amazon Resource Name (ARN) of an IAM service role that Amazon
613
+ # Bedrock assumes to perform tasks on your behalf. This role must have
614
+ # permissions to access the Amazon S3 bucket containing your model
615
+ # artifacts and the KMS key (if specified). For more information, see
616
+ # [Setting up an IAM service role for importing models][1] in the Amazon
617
+ # Bedrock User Guide.
618
+ #
619
+ #
620
+ #
621
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
622
+ #
623
+ # @option params [Array<Types::Tag>] :model_tags
624
+ # A list of key-value pairs to associate with the custom model resource.
625
+ # You can use these tags to organize and identify your resources.
626
+ #
627
+ # For more information, see [Tagging resources][1] in the [Amazon
628
+ # Bedrock User Guide][2].
629
+ #
630
+ #
631
+ #
632
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
633
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
634
+ #
635
+ # @option params [String] :client_request_token
636
+ # A unique, case-sensitive identifier to ensure that the API request
637
+ # completes no more than one time. If this token matches a previous
638
+ # request, Amazon Bedrock ignores the request, but does not return an
639
+ # error. For more information, see [Ensuring idempotency][1].
640
+ #
641
+ # **A suitable default value is auto-generated.** You should normally
642
+ # not need to pass this option.**
643
+ #
644
+ #
645
+ #
646
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
647
+ #
648
+ # @return [Types::CreateCustomModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
649
+ #
650
+ # * {Types::CreateCustomModelResponse#model_arn #model_arn} => String
651
+ #
652
+ #
653
+ # @example Example: Successful CreateCustomModel API call
654
+ #
655
+ # resp = client.create_custom_model({
656
+ # client_request_token: "foo",
657
+ # model_kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab",
658
+ # model_name: "SampleModel",
659
+ # model_source_config: {
660
+ # s3_data_source: {
661
+ # s3_uri: "s3://my-bucket/folder",
662
+ # },
663
+ # },
664
+ # model_tags: [
665
+ # {
666
+ # key: "foo",
667
+ # value: "foo",
668
+ # },
669
+ # {
670
+ # key: "foo",
671
+ # value: "foo",
672
+ # },
673
+ # ],
674
+ # role_arn: "arn:aws:iam::123456789012:role/SampleRole",
675
+ # })
676
+ #
677
+ # resp.to_h outputs the following:
678
+ # {
679
+ # model_arn: "arn:aws:bedrock:us-east-1:123456789012:custom-model/imported/abcdef123456",
680
+ # }
681
+ #
682
+ # @example Request syntax with placeholder values
683
+ #
684
+ # resp = client.create_custom_model({
685
+ # model_name: "CustomModelName", # required
686
+ # model_source_config: { # required
687
+ # s3_data_source: {
688
+ # s3_uri: "S3Uri", # required
689
+ # },
690
+ # },
691
+ # model_kms_key_arn: "KmsKeyArn",
692
+ # role_arn: "RoleArn",
693
+ # model_tags: [
694
+ # {
695
+ # key: "TagKey", # required
696
+ # value: "TagValue", # required
697
+ # },
698
+ # ],
699
+ # client_request_token: "IdempotencyToken",
700
+ # })
701
+ #
702
+ # @example Response structure
703
+ #
704
+ # resp.model_arn #=> String
705
+ #
706
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModel AWS API Documentation
707
+ #
708
+ # @overload create_custom_model(params = {})
709
+ # @param [Hash] params ({})
710
+ def create_custom_model(params = {}, options = {})
711
+ req = build_request(:create_custom_model, params)
712
+ req.send_request(options)
713
+ end
714
+
540
715
  # Creates an evaluation job.
541
716
  #
542
717
  # @option params [required, String] :job_name
@@ -1585,7 +1760,7 @@ module Aws::Bedrock
1585
1760
  # role_arn: "RoleArn", # required
1586
1761
  # client_request_token: "IdempotencyToken",
1587
1762
  # base_model_identifier: "BaseModelIdentifier", # required
1588
- # customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION
1763
+ # customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION, IMPORTED
1589
1764
  # custom_model_kms_key_id: "KmsKeyId",
1590
1765
  # job_tags: [
1591
1766
  # {
@@ -2306,7 +2481,7 @@ module Aws::Bedrock
2306
2481
  end
2307
2482
 
2308
2483
  # Get the properties associated with a Amazon Bedrock custom model that
2309
- # you have created.For more information, see [Custom models][1] in the
2484
+ # you have created. For more information, see [Custom models][1] in the
2310
2485
  # [Amazon Bedrock User Guide][2].
2311
2486
  #
2312
2487
  #
@@ -2334,6 +2509,8 @@ module Aws::Bedrock
2334
2509
  # * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array&lt;Types::ValidatorMetric&gt;
2335
2510
  # * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
2336
2511
  # * {Types::GetCustomModelResponse#customization_config #customization_config} => Types::CustomizationConfig
2512
+ # * {Types::GetCustomModelResponse#model_status #model_status} => String
2513
+ # * {Types::GetCustomModelResponse#failure_message #failure_message} => String
2337
2514
  #
2338
2515
  # @example Request syntax with placeholder values
2339
2516
  #
@@ -2348,7 +2525,7 @@ module Aws::Bedrock
2348
2525
  # resp.job_name #=> String
2349
2526
  # resp.job_arn #=> String
2350
2527
  # resp.base_model_arn #=> String
2351
- # resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
2528
+ # resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
2352
2529
  # resp.model_kms_key_arn #=> String
2353
2530
  # resp.hyper_parameters #=> Hash
2354
2531
  # resp.hyper_parameters["String"] #=> String
@@ -2378,6 +2555,8 @@ module Aws::Bedrock
2378
2555
  # resp.creation_time #=> Time
2379
2556
  # resp.customization_config.distillation_config.teacher_model_config.teacher_model_identifier #=> String
2380
2557
  # resp.customization_config.distillation_config.teacher_model_config.max_response_length_for_inference #=> Integer
2558
+ # resp.model_status #=> String, one of "Active", "Creating", "Failed"
2559
+ # resp.failure_message #=> String
2381
2560
  #
2382
2561
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
2383
2562
  #
@@ -2931,8 +3110,8 @@ module Aws::Bedrock
2931
3110
  # * {Types::GetModelCustomizationJobResponse#client_request_token #client_request_token} => String
2932
3111
  # * {Types::GetModelCustomizationJobResponse#role_arn #role_arn} => String
2933
3112
  # * {Types::GetModelCustomizationJobResponse#status #status} => String
2934
- # * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
2935
3113
  # * {Types::GetModelCustomizationJobResponse#status_details #status_details} => Types::StatusDetails
3114
+ # * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
2936
3115
  # * {Types::GetModelCustomizationJobResponse#creation_time #creation_time} => Time
2937
3116
  # * {Types::GetModelCustomizationJobResponse#last_modified_time #last_modified_time} => Time
2938
3117
  # * {Types::GetModelCustomizationJobResponse#end_time #end_time} => Time
@@ -2963,7 +3142,6 @@ module Aws::Bedrock
2963
3142
  # resp.client_request_token #=> String
2964
3143
  # resp.role_arn #=> String
2965
3144
  # resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
2966
- # resp.failure_message #=> String
2967
3145
  # resp.status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
2968
3146
  # resp.status_details.validation_details.creation_time #=> Time
2969
3147
  # resp.status_details.validation_details.last_modified_time #=> Time
@@ -2973,6 +3151,7 @@ module Aws::Bedrock
2973
3151
  # resp.status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
2974
3152
  # resp.status_details.training_details.creation_time #=> Time
2975
3153
  # resp.status_details.training_details.last_modified_time #=> Time
3154
+ # resp.failure_message #=> String
2976
3155
  # resp.creation_time #=> Time
2977
3156
  # resp.last_modified_time #=> Time
2978
3157
  # resp.end_time #=> Time
@@ -2999,7 +3178,7 @@ module Aws::Bedrock
2999
3178
  # resp.validation_data_config.validators #=> Array
3000
3179
  # resp.validation_data_config.validators[0].s3_uri #=> String
3001
3180
  # resp.output_data_config.s3_uri #=> String
3002
- # resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
3181
+ # resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
3003
3182
  # resp.output_model_kms_key_arn #=> String
3004
3183
  # resp.training_metrics.training_loss #=> Float
3005
3184
  # resp.validation_metrics #=> Array
@@ -3333,6 +3512,20 @@ module Aws::Bedrock
3333
3512
  # Return custom models depending on if the current account owns them
3334
3513
  # (`true`) or if they were shared with the current account (`false`).
3335
3514
  #
3515
+ # @option params [String] :model_status
3516
+ # The status of them model to filter results by. Possible values
3517
+ # include:
3518
+ #
3519
+ # * `Creating` - Include only models that are currently being created
3520
+ # and validated.
3521
+ #
3522
+ # * `Active` - Include only models that have been successfully created
3523
+ # and are ready for use.
3524
+ #
3525
+ # * `Failed` - Include only models where the creation process failed.
3526
+ #
3527
+ # If you don't specify a status, the API returns models in all states.
3528
+ #
3336
3529
  # @return [Types::ListCustomModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3337
3530
  #
3338
3531
  # * {Types::ListCustomModelsResponse#next_token #next_token} => String
@@ -3353,6 +3546,7 @@ module Aws::Bedrock
3353
3546
  # sort_by: "CreationTime", # accepts CreationTime
3354
3547
  # sort_order: "Ascending", # accepts Ascending, Descending
3355
3548
  # is_owned: false,
3549
+ # model_status: "Active", # accepts Active, Creating, Failed
3356
3550
  # })
3357
3551
  #
3358
3552
  # @example Response structure
@@ -3364,8 +3558,9 @@ module Aws::Bedrock
3364
3558
  # resp.model_summaries[0].creation_time #=> Time
3365
3559
  # resp.model_summaries[0].base_model_arn #=> String
3366
3560
  # resp.model_summaries[0].base_model_name #=> String
3367
- # resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
3561
+ # resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
3368
3562
  # resp.model_summaries[0].owner_account_id #=> String
3563
+ # resp.model_summaries[0].model_status #=> String, one of "Active", "Creating", "Failed"
3369
3564
  #
3370
3565
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
3371
3566
  #
@@ -3971,7 +4166,6 @@ module Aws::Bedrock
3971
4166
  # resp.model_customization_job_summaries[0].base_model_arn #=> String
3972
4167
  # resp.model_customization_job_summaries[0].job_name #=> String
3973
4168
  # resp.model_customization_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
3974
- # resp.model_customization_job_summaries[0].last_modified_time #=> Time
3975
4169
  # resp.model_customization_job_summaries[0].status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
3976
4170
  # resp.model_customization_job_summaries[0].status_details.validation_details.creation_time #=> Time
3977
4171
  # resp.model_customization_job_summaries[0].status_details.validation_details.last_modified_time #=> Time
@@ -3981,11 +4175,12 @@ module Aws::Bedrock
3981
4175
  # resp.model_customization_job_summaries[0].status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
3982
4176
  # resp.model_customization_job_summaries[0].status_details.training_details.creation_time #=> Time
3983
4177
  # resp.model_customization_job_summaries[0].status_details.training_details.last_modified_time #=> Time
4178
+ # resp.model_customization_job_summaries[0].last_modified_time #=> Time
3984
4179
  # resp.model_customization_job_summaries[0].creation_time #=> Time
3985
4180
  # resp.model_customization_job_summaries[0].end_time #=> Time
3986
4181
  # resp.model_customization_job_summaries[0].custom_model_arn #=> String
3987
4182
  # resp.model_customization_job_summaries[0].custom_model_name #=> String
3988
- # resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
4183
+ # resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
3989
4184
  #
3990
4185
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs AWS API Documentation
3991
4186
  #
@@ -4985,7 +5180,7 @@ module Aws::Bedrock
4985
5180
  tracer: tracer
4986
5181
  )
4987
5182
  context[:gem_name] = 'aws-sdk-bedrock'
4988
- context[:gem_version] = '1.47.0'
5183
+ context[:gem_version] = '1.48.0'
4989
5184
  Seahorse::Client::Request.new(handlers, context)
4990
5185
  end
4991
5186
 
@@ -46,6 +46,8 @@ module Aws::Bedrock
46
46
  CommitmentDuration = Shapes::StringShape.new(name: 'CommitmentDuration')
47
47
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
48
48
  ContentType = Shapes::StringShape.new(name: 'ContentType')
49
+ CreateCustomModelRequest = Shapes::StructureShape.new(name: 'CreateCustomModelRequest')
50
+ CreateCustomModelResponse = Shapes::StructureShape.new(name: 'CreateCustomModelResponse')
49
51
  CreateEvaluationJobRequest = Shapes::StructureShape.new(name: 'CreateEvaluationJobRequest')
50
52
  CreateEvaluationJobResponse = Shapes::StructureShape.new(name: 'CreateEvaluationJobResponse')
51
53
  CreateGuardrailRequest = Shapes::StructureShape.new(name: 'CreateGuardrailRequest')
@@ -405,6 +407,7 @@ module Aws::Bedrock
405
407
  ModelModalityList = Shapes::ListShape.new(name: 'ModelModalityList')
406
408
  ModelName = Shapes::StringShape.new(name: 'ModelName')
407
409
  ModelSourceIdentifier = Shapes::StringShape.new(name: 'ModelSourceIdentifier')
410
+ ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
408
411
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
409
412
  OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration')
410
413
  OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
@@ -587,6 +590,17 @@ module Aws::Bedrock
587
590
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
588
591
  ConflictException.struct_class = Types::ConflictException
589
592
 
593
+ CreateCustomModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
594
+ CreateCustomModelRequest.add_member(:model_source_config, Shapes::ShapeRef.new(shape: ModelDataSource, required: true, location_name: "modelSourceConfig"))
595
+ CreateCustomModelRequest.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
596
+ CreateCustomModelRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
597
+ CreateCustomModelRequest.add_member(:model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "modelTags"))
598
+ CreateCustomModelRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken" => true}))
599
+ CreateCustomModelRequest.struct_class = Types::CreateCustomModelRequest
600
+
601
+ CreateCustomModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
602
+ CreateCustomModelResponse.struct_class = Types::CreateCustomModelResponse
603
+
590
604
  CreateEvaluationJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: EvaluationJobName, required: true, location_name: "jobName"))
591
605
  CreateEvaluationJobRequest.add_member(:job_description, Shapes::ShapeRef.new(shape: EvaluationJobDescription, location_name: "jobDescription"))
592
606
  CreateEvaluationJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken" => true}))
@@ -755,6 +769,7 @@ module Aws::Bedrock
755
769
  CustomModelSummary.add_member(:base_model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "baseModelName"))
756
770
  CustomModelSummary.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
757
771
  CustomModelSummary.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "ownerAccountId"))
772
+ CustomModelSummary.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "modelStatus"))
758
773
  CustomModelSummary.struct_class = Types::CustomModelSummary
759
774
 
760
775
  CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
@@ -1011,18 +1026,20 @@ module Aws::Bedrock
1011
1026
  GetCustomModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
1012
1027
  GetCustomModelResponse.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
1013
1028
  GetCustomModelResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "jobName"))
1014
- GetCustomModelResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, required: true, location_name: "jobArn"))
1015
- GetCustomModelResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
1029
+ GetCustomModelResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, location_name: "jobArn"))
1030
+ GetCustomModelResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "baseModelArn"))
1016
1031
  GetCustomModelResponse.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
1017
1032
  GetCustomModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
1018
1033
  GetCustomModelResponse.add_member(:hyper_parameters, Shapes::ShapeRef.new(shape: ModelCustomizationHyperParameters, location_name: "hyperParameters"))
1019
- GetCustomModelResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, required: true, location_name: "trainingDataConfig"))
1034
+ GetCustomModelResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, location_name: "trainingDataConfig"))
1020
1035
  GetCustomModelResponse.add_member(:validation_data_config, Shapes::ShapeRef.new(shape: ValidationDataConfig, location_name: "validationDataConfig"))
1021
- GetCustomModelResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "outputDataConfig"))
1036
+ GetCustomModelResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "outputDataConfig"))
1022
1037
  GetCustomModelResponse.add_member(:training_metrics, Shapes::ShapeRef.new(shape: TrainingMetrics, location_name: "trainingMetrics"))
1023
1038
  GetCustomModelResponse.add_member(:validation_metrics, Shapes::ShapeRef.new(shape: ValidationMetrics, location_name: "validationMetrics"))
1024
1039
  GetCustomModelResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
1025
1040
  GetCustomModelResponse.add_member(:customization_config, Shapes::ShapeRef.new(shape: CustomizationConfig, location_name: "customizationConfig"))
1041
+ GetCustomModelResponse.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "modelStatus"))
1042
+ GetCustomModelResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
1026
1043
  GetCustomModelResponse.struct_class = Types::GetCustomModelResponse
1027
1044
 
1028
1045
  GetEvaluationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: EvaluationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
@@ -1136,8 +1153,8 @@ module Aws::Bedrock
1136
1153
  GetModelCustomizationJobResponse.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken"))
1137
1154
  GetModelCustomizationJobResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
1138
1155
  GetModelCustomizationJobResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelCustomizationJobStatus, location_name: "status"))
1139
- GetModelCustomizationJobResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
1140
1156
  GetModelCustomizationJobResponse.add_member(:status_details, Shapes::ShapeRef.new(shape: StatusDetails, location_name: "statusDetails"))
1157
+ GetModelCustomizationJobResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
1141
1158
  GetModelCustomizationJobResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
1142
1159
  GetModelCustomizationJobResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
1143
1160
  GetModelCustomizationJobResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
@@ -1543,6 +1560,7 @@ module Aws::Bedrock
1543
1560
  ListCustomModelsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortModelsBy, location: "querystring", location_name: "sortBy"))
1544
1561
  ListCustomModelsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
1545
1562
  ListCustomModelsRequest.add_member(:is_owned, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "isOwned"))
1563
+ ListCustomModelsRequest.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location: "querystring", location_name: "modelStatus"))
1546
1564
  ListCustomModelsRequest.struct_class = Types::ListCustomModelsRequest
1547
1565
 
1548
1566
  ListCustomModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
@@ -1754,8 +1772,8 @@ module Aws::Bedrock
1754
1772
  ModelCustomizationJobSummary.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
1755
1773
  ModelCustomizationJobSummary.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
1756
1774
  ModelCustomizationJobSummary.add_member(:status, Shapes::ShapeRef.new(shape: ModelCustomizationJobStatus, required: true, location_name: "status"))
1757
- ModelCustomizationJobSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
1758
1775
  ModelCustomizationJobSummary.add_member(:status_details, Shapes::ShapeRef.new(shape: StatusDetails, location_name: "statusDetails"))
1776
+ ModelCustomizationJobSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
1759
1777
  ModelCustomizationJobSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
1760
1778
  ModelCustomizationJobSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
1761
1779
  ModelCustomizationJobSummary.add_member(:custom_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, location_name: "customModelArn"))
@@ -2171,6 +2189,22 @@ module Aws::Bedrock
2171
2189
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2172
2190
  end)
2173
2191
 
2192
+ api.add_operation(:create_custom_model, Seahorse::Model::Operation.new.tap do |o|
2193
+ o.name = "CreateCustomModel"
2194
+ o.http_method = "POST"
2195
+ o.http_request_uri = "/custom-models/create-custom-model"
2196
+ o.input = Shapes::ShapeRef.new(shape: CreateCustomModelRequest)
2197
+ o.output = Shapes::ShapeRef.new(shape: CreateCustomModelResponse)
2198
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2199
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2200
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2201
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2202
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2203
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
2204
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2205
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2206
+ end)
2207
+
2174
2208
  api.add_operation(:create_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
2175
2209
  o.name = "CreateEvaluationJob"
2176
2210
  o.http_method = "POST"
@@ -264,6 +264,98 @@ module Aws::Bedrock
264
264
  include Aws::Structure
265
265
  end
266
266
 
267
+ # @!attribute [rw] model_name
268
+ # A unique name for the custom model.
269
+ # @return [String]
270
+ #
271
+ # @!attribute [rw] model_source_config
272
+ # The data source for the model. The Amazon S3 URI in the model source
273
+ # must be for the Amazon-managed Amazon S3 bucket containing your
274
+ # model artifacts. SageMaker AI creates this bucket when you run your
275
+ # first SageMaker AI training job.
276
+ # @return [Types::ModelDataSource]
277
+ #
278
+ # @!attribute [rw] model_kms_key_arn
279
+ # The Amazon Resource Name (ARN) of the customer managed KMS key to
280
+ # encrypt the custom model. If you don't provide a KMS key, Amazon
281
+ # Bedrock uses an Amazon Web Services-managed KMS key to encrypt the
282
+ # model.
283
+ #
284
+ # If you provide a customer managed KMS key, your Amazon Bedrock
285
+ # service role must have permissions to use it. For more information
286
+ # see [Encryption of imported models][1].
287
+ #
288
+ #
289
+ #
290
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html
291
+ # @return [String]
292
+ #
293
+ # @!attribute [rw] role_arn
294
+ # The Amazon Resource Name (ARN) of an IAM service role that Amazon
295
+ # Bedrock assumes to perform tasks on your behalf. This role must have
296
+ # permissions to access the Amazon S3 bucket containing your model
297
+ # artifacts and the KMS key (if specified). For more information, see
298
+ # [Setting up an IAM service role for importing models][1] in the
299
+ # Amazon Bedrock User Guide.
300
+ #
301
+ #
302
+ #
303
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
304
+ # @return [String]
305
+ #
306
+ # @!attribute [rw] model_tags
307
+ # A list of key-value pairs to associate with the custom model
308
+ # resource. You can use these tags to organize and identify your
309
+ # resources.
310
+ #
311
+ # For more information, see [Tagging resources][1] in the [Amazon
312
+ # Bedrock User Guide][2].
313
+ #
314
+ #
315
+ #
316
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
317
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
318
+ # @return [Array<Types::Tag>]
319
+ #
320
+ # @!attribute [rw] client_request_token
321
+ # A unique, case-sensitive identifier to ensure that the API request
322
+ # completes no more than one time. If this token matches a previous
323
+ # request, Amazon Bedrock ignores the request, but does not return an
324
+ # error. For more information, see [Ensuring idempotency][1].
325
+ #
326
+ # **A suitable default value is auto-generated.** You should normally
327
+ # not need to pass this option.
328
+ #
329
+ #
330
+ #
331
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
332
+ # @return [String]
333
+ #
334
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelRequest AWS API Documentation
335
+ #
336
+ class CreateCustomModelRequest < Struct.new(
337
+ :model_name,
338
+ :model_source_config,
339
+ :model_kms_key_arn,
340
+ :role_arn,
341
+ :model_tags,
342
+ :client_request_token)
343
+ SENSITIVE = []
344
+ include Aws::Structure
345
+ end
346
+
347
+ # @!attribute [rw] model_arn
348
+ # The Amazon Resource Name (ARN) of the new custom model.
349
+ # @return [String]
350
+ #
351
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelResponse AWS API Documentation
352
+ #
353
+ class CreateCustomModelResponse < Struct.new(
354
+ :model_arn)
355
+ SENSITIVE = []
356
+ include Aws::Structure
357
+ end
358
+
267
359
  # @!attribute [rw] job_name
268
360
  # A name for the evaluation job. Names must unique with your Amazon
269
361
  # Web Services account, and your account's Amazon Web Services
@@ -1301,6 +1393,17 @@ module Aws::Bedrock
1301
1393
  # The unique identifier of the account that owns the model.
1302
1394
  # @return [String]
1303
1395
  #
1396
+ # @!attribute [rw] model_status
1397
+ # The current status of the custom model. Possible values include:
1398
+ #
1399
+ # * `Creating` - The model is being created and validated.
1400
+ #
1401
+ # * `Active` - The model has been successfully created and is ready
1402
+ # for use.
1403
+ #
1404
+ # * `Failed` - The model creation process failed.
1405
+ # @return [String]
1406
+ #
1304
1407
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelSummary AWS API Documentation
1305
1408
  #
1306
1409
  class CustomModelSummary < Struct.new(
@@ -1310,7 +1413,8 @@ module Aws::Bedrock
1310
1413
  :base_model_arn,
1311
1414
  :base_model_name,
1312
1415
  :customization_type,
1313
- :owner_account_id)
1416
+ :owner_account_id,
1417
+ :model_status)
1314
1418
  SENSITIVE = []
1315
1419
  include Aws::Structure
1316
1420
  end
@@ -2408,7 +2512,13 @@ module Aws::Bedrock
2408
2512
  # @return [String]
2409
2513
  #
2410
2514
  # @!attribute [rw] job_arn
2411
- # Job Amazon Resource Name (ARN) associated with this model.
2515
+ # Job Amazon Resource Name (ARN) associated with this model. For
2516
+ # models that you create with the [CreateCustomModel][1] API
2517
+ # operation, this is `NULL`.
2518
+ #
2519
+ #
2520
+ #
2521
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModel.html
2412
2522
  # @return [String]
2413
2523
  #
2414
2524
  # @!attribute [rw] base_model_arn
@@ -2460,6 +2570,24 @@ module Aws::Bedrock
2460
2570
  # The customization configuration for the custom model.
2461
2571
  # @return [Types::CustomizationConfig]
2462
2572
  #
2573
+ # @!attribute [rw] model_status
2574
+ # The current status of the custom model. Possible values include:
2575
+ #
2576
+ # * `Creating` - The model is being created and validated.
2577
+ #
2578
+ # * `Active` - The model has been successfully created and is ready
2579
+ # for use.
2580
+ #
2581
+ # * `Failed` - The model creation process failed. Check the
2582
+ # `failureMessage` field for details.
2583
+ # @return [String]
2584
+ #
2585
+ # @!attribute [rw] failure_message
2586
+ # A failure message for any issues that occurred when creating the
2587
+ # custom model. This is included for only a failed CreateCustomModel
2588
+ # operation.
2589
+ # @return [String]
2590
+ #
2463
2591
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModelResponse AWS API Documentation
2464
2592
  #
2465
2593
  class GetCustomModelResponse < Struct.new(
@@ -2477,7 +2605,9 @@ module Aws::Bedrock
2477
2605
  :training_metrics,
2478
2606
  :validation_metrics,
2479
2607
  :creation_time,
2480
- :customization_config)
2608
+ :customization_config,
2609
+ :model_status,
2610
+ :failure_message)
2481
2611
  SENSITIVE = []
2482
2612
  include Aws::Structure
2483
2613
  end
@@ -3020,15 +3150,15 @@ module Aws::Bedrock
3020
3150
  # failed.
3021
3151
  # @return [String]
3022
3152
  #
3023
- # @!attribute [rw] failure_message
3024
- # Information about why the job failed.
3025
- # @return [String]
3026
- #
3027
3153
  # @!attribute [rw] status_details
3028
3154
  # For a Distillation job, the details about the statuses of the
3029
3155
  # sub-tasks of the customization job.
3030
3156
  # @return [Types::StatusDetails]
3031
3157
  #
3158
+ # @!attribute [rw] failure_message
3159
+ # Information about why the job failed.
3160
+ # @return [String]
3161
+ #
3032
3162
  # @!attribute [rw] creation_time
3033
3163
  # Time that the resource was created.
3034
3164
  # @return [Time]
@@ -3101,8 +3231,8 @@ module Aws::Bedrock
3101
3231
  :client_request_token,
3102
3232
  :role_arn,
3103
3233
  :status,
3104
- :failure_message,
3105
3234
  :status_details,
3235
+ :failure_message,
3106
3236
  :creation_time,
3107
3237
  :last_modified_time,
3108
3238
  :end_time,
@@ -5507,6 +5637,22 @@ module Aws::Bedrock
5507
5637
  # (`true`) or if they were shared with the current account (`false`).
5508
5638
  # @return [Boolean]
5509
5639
  #
5640
+ # @!attribute [rw] model_status
5641
+ # The status of them model to filter results by. Possible values
5642
+ # include:
5643
+ #
5644
+ # * `Creating` - Include only models that are currently being created
5645
+ # and validated.
5646
+ #
5647
+ # * `Active` - Include only models that have been successfully created
5648
+ # and are ready for use.
5649
+ #
5650
+ # * `Failed` - Include only models where the creation process failed.
5651
+ #
5652
+ # If you don't specify a status, the API returns models in all
5653
+ # states.
5654
+ # @return [String]
5655
+ #
5510
5656
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModelsRequest AWS API Documentation
5511
5657
  #
5512
5658
  class ListCustomModelsRequest < Struct.new(
@@ -5519,7 +5665,8 @@ module Aws::Bedrock
5519
5665
  :next_token,
5520
5666
  :sort_by,
5521
5667
  :sort_order,
5522
- :is_owned)
5668
+ :is_owned,
5669
+ :model_status)
5523
5670
  SENSITIVE = []
5524
5671
  include Aws::Structure
5525
5672
  end
@@ -6638,14 +6785,14 @@ module Aws::Bedrock
6638
6785
  # Status of the customization job.
6639
6786
  # @return [String]
6640
6787
  #
6641
- # @!attribute [rw] last_modified_time
6642
- # Time that the customization job was last modified.
6643
- # @return [Time]
6644
- #
6645
6788
  # @!attribute [rw] status_details
6646
6789
  # Details about the status of the data processing sub-task of the job.
6647
6790
  # @return [Types::StatusDetails]
6648
6791
  #
6792
+ # @!attribute [rw] last_modified_time
6793
+ # Time that the customization job was last modified.
6794
+ # @return [Time]
6795
+ #
6649
6796
  # @!attribute [rw] creation_time
6650
6797
  # Creation time of the custom model.
6651
6798
  # @return [Time]
@@ -6679,8 +6826,8 @@ module Aws::Bedrock
6679
6826
  :base_model_arn,
6680
6827
  :job_name,
6681
6828
  :status,
6682
- :last_modified_time,
6683
6829
  :status_details,
6830
+ :last_modified_time,
6684
6831
  :creation_time,
6685
6832
  :end_time,
6686
6833
  :custom_model_arn,
@@ -6690,14 +6837,14 @@ module Aws::Bedrock
6690
6837
  include Aws::Structure
6691
6838
  end
6692
6839
 
6693
- # Data source for the imported model.
6840
+ # The data source of the model to import.
6694
6841
  #
6695
6842
  # @note ModelDataSource is a union - when making an API calls you must set exactly one of the members.
6696
6843
  #
6697
6844
  # @note ModelDataSource is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ModelDataSource corresponding to the set member.
6698
6845
  #
6699
6846
  # @!attribute [rw] s3_data_source
6700
- # The Amazon S3 data source of the imported model.
6847
+ # The Amazon S3 data source of the model to import.
6701
6848
  # @return [Types::S3DataSource]
6702
6849
  #
6703
6850
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelDataSource AWS API Documentation
@@ -7727,7 +7874,15 @@ module Aws::Bedrock
7727
7874
  include Aws::Structure
7728
7875
  end
7729
7876
 
7730
- # The Amazon S3 data source of the imported job.
7877
+ # The Amazon S3 data source of the model to import. For the
7878
+ # [CreateCustomModel][1] API operation, you must specify the Amazon S3
7879
+ # URI for the Amazon-managed Amazon S3 bucket containing your model
7880
+ # artifacts. SageMaker AI creates this bucket when you run your first
7881
+ # SageMaker AI training job.
7882
+ #
7883
+ #
7884
+ #
7885
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModel.html
7731
7886
  #
7732
7887
  # @!attribute [rw] s3_uri
7733
7888
  # The URI of the Amazon S3 data source.
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.47.0'
58
+ GEM_VERSION = '1.48.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -88,6 +88,30 @@ module Aws
88
88
  ) -> _BatchDeleteEvaluationJobResponseSuccess
89
89
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteEvaluationJobResponseSuccess
90
90
 
91
+ interface _CreateCustomModelResponseSuccess
92
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelResponse]
93
+ def model_arn: () -> ::String
94
+ end
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model-instance_method
96
+ def create_custom_model: (
97
+ model_name: ::String,
98
+ model_source_config: {
99
+ s3_data_source: {
100
+ s3_uri: ::String
101
+ }?
102
+ },
103
+ ?model_kms_key_arn: ::String,
104
+ ?role_arn: ::String,
105
+ ?model_tags: Array[
106
+ {
107
+ key: ::String,
108
+ value: ::String
109
+ },
110
+ ],
111
+ ?client_request_token: ::String
112
+ ) -> _CreateCustomModelResponseSuccess
113
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelResponseSuccess
114
+
91
115
  interface _CreateEvaluationJobResponseSuccess
92
116
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
93
117
  def job_arn: () -> ::String
@@ -629,7 +653,7 @@ module Aws
629
653
  role_arn: ::String,
630
654
  ?client_request_token: ::String,
631
655
  base_model_identifier: ::String,
632
- ?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION"),
656
+ ?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED"),
633
657
  ?custom_model_kms_key_id: ::String,
634
658
  ?job_tags: Array[
635
659
  {
@@ -904,7 +928,7 @@ module Aws
904
928
  def job_name: () -> ::String
905
929
  def job_arn: () -> ::String
906
930
  def base_model_arn: () -> ::String
907
- def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
931
+ def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
908
932
  def model_kms_key_arn: () -> ::String
909
933
  def hyper_parameters: () -> ::Hash[::String, ::String]
910
934
  def training_data_config: () -> Types::TrainingDataConfig
@@ -914,6 +938,8 @@ module Aws
914
938
  def validation_metrics: () -> ::Array[Types::ValidatorMetric]
915
939
  def creation_time: () -> ::Time
916
940
  def customization_config: () -> Types::CustomizationConfig
941
+ def model_status: () -> ("Active" | "Creating" | "Failed")
942
+ def failure_message: () -> ::String
917
943
  end
918
944
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model-instance_method
919
945
  def get_custom_model: (
@@ -1059,8 +1085,8 @@ module Aws
1059
1085
  def client_request_token: () -> ::String
1060
1086
  def role_arn: () -> ::String
1061
1087
  def status: () -> ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
1062
- def failure_message: () -> ::String
1063
1088
  def status_details: () -> Types::StatusDetails
1089
+ def failure_message: () -> ::String
1064
1090
  def creation_time: () -> ::Time
1065
1091
  def last_modified_time: () -> ::Time
1066
1092
  def end_time: () -> ::Time
@@ -1069,7 +1095,7 @@ module Aws
1069
1095
  def training_data_config: () -> Types::TrainingDataConfig
1070
1096
  def validation_data_config: () -> Types::ValidationDataConfig
1071
1097
  def output_data_config: () -> Types::OutputDataConfig
1072
- def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
1098
+ def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
1073
1099
  def output_model_kms_key_arn: () -> ::String
1074
1100
  def training_metrics: () -> Types::TrainingMetrics
1075
1101
  def validation_metrics: () -> ::Array[Types::ValidatorMetric]
@@ -1194,7 +1220,8 @@ module Aws
1194
1220
  ?next_token: ::String,
1195
1221
  ?sort_by: ("CreationTime"),
1196
1222
  ?sort_order: ("Ascending" | "Descending"),
1197
- ?is_owned: bool
1223
+ ?is_owned: bool,
1224
+ ?model_status: ("Active" | "Creating" | "Failed")
1198
1225
  ) -> _ListCustomModelsResponseSuccess
1199
1226
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelsResponseSuccess
1200
1227
 
data/sig/types.rbs CHANGED
@@ -85,6 +85,21 @@ module Aws::Bedrock
85
85
  SENSITIVE: []
86
86
  end
87
87
 
88
+ class CreateCustomModelRequest
89
+ attr_accessor model_name: ::String
90
+ attr_accessor model_source_config: Types::ModelDataSource
91
+ attr_accessor model_kms_key_arn: ::String
92
+ attr_accessor role_arn: ::String
93
+ attr_accessor model_tags: ::Array[Types::Tag]
94
+ attr_accessor client_request_token: ::String
95
+ SENSITIVE: []
96
+ end
97
+
98
+ class CreateCustomModelResponse
99
+ attr_accessor model_arn: ::String
100
+ SENSITIVE: []
101
+ end
102
+
88
103
  class CreateEvaluationJobRequest
89
104
  attr_accessor job_name: ::String
90
105
  attr_accessor job_description: ::String
@@ -192,7 +207,7 @@ module Aws::Bedrock
192
207
  attr_accessor role_arn: ::String
193
208
  attr_accessor client_request_token: ::String
194
209
  attr_accessor base_model_identifier: ::String
195
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
210
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
196
211
  attr_accessor custom_model_kms_key_id: ::String
197
212
  attr_accessor job_tags: ::Array[Types::Tag]
198
213
  attr_accessor custom_model_tags: ::Array[Types::Tag]
@@ -300,8 +315,9 @@ module Aws::Bedrock
300
315
  attr_accessor creation_time: ::Time
301
316
  attr_accessor base_model_arn: ::String
302
317
  attr_accessor base_model_name: ::String
303
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
318
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
304
319
  attr_accessor owner_account_id: ::String
320
+ attr_accessor model_status: ("Active" | "Creating" | "Failed")
305
321
  SENSITIVE: []
306
322
  end
307
323
 
@@ -648,7 +664,7 @@ module Aws::Bedrock
648
664
  attr_accessor job_name: ::String
649
665
  attr_accessor job_arn: ::String
650
666
  attr_accessor base_model_arn: ::String
651
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
667
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
652
668
  attr_accessor model_kms_key_arn: ::String
653
669
  attr_accessor hyper_parameters: ::Hash[::String, ::String]
654
670
  attr_accessor training_data_config: Types::TrainingDataConfig
@@ -658,6 +674,8 @@ module Aws::Bedrock
658
674
  attr_accessor validation_metrics: ::Array[Types::ValidatorMetric]
659
675
  attr_accessor creation_time: ::Time
660
676
  attr_accessor customization_config: Types::CustomizationConfig
677
+ attr_accessor model_status: ("Active" | "Creating" | "Failed")
678
+ attr_accessor failure_message: ::String
661
679
  SENSITIVE: []
662
680
  end
663
681
 
@@ -803,8 +821,8 @@ module Aws::Bedrock
803
821
  attr_accessor client_request_token: ::String
804
822
  attr_accessor role_arn: ::String
805
823
  attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
806
- attr_accessor failure_message: ::String
807
824
  attr_accessor status_details: Types::StatusDetails
825
+ attr_accessor failure_message: ::String
808
826
  attr_accessor creation_time: ::Time
809
827
  attr_accessor last_modified_time: ::Time
810
828
  attr_accessor end_time: ::Time
@@ -813,7 +831,7 @@ module Aws::Bedrock
813
831
  attr_accessor training_data_config: Types::TrainingDataConfig
814
832
  attr_accessor validation_data_config: Types::ValidationDataConfig
815
833
  attr_accessor output_data_config: Types::OutputDataConfig
816
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
834
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
817
835
  attr_accessor output_model_kms_key_arn: ::String
818
836
  attr_accessor training_metrics: Types::TrainingMetrics
819
837
  attr_accessor validation_metrics: ::Array[Types::ValidatorMetric]
@@ -1279,6 +1297,7 @@ module Aws::Bedrock
1279
1297
  attr_accessor sort_by: ("CreationTime")
1280
1298
  attr_accessor sort_order: ("Ascending" | "Descending")
1281
1299
  attr_accessor is_owned: bool
1300
+ attr_accessor model_status: ("Active" | "Creating" | "Failed")
1282
1301
  SENSITIVE: []
1283
1302
  end
1284
1303
 
@@ -1545,13 +1564,13 @@ module Aws::Bedrock
1545
1564
  attr_accessor base_model_arn: ::String
1546
1565
  attr_accessor job_name: ::String
1547
1566
  attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
1548
- attr_accessor last_modified_time: ::Time
1549
1567
  attr_accessor status_details: Types::StatusDetails
1568
+ attr_accessor last_modified_time: ::Time
1550
1569
  attr_accessor creation_time: ::Time
1551
1570
  attr_accessor end_time: ::Time
1552
1571
  attr_accessor custom_model_arn: ::String
1553
1572
  attr_accessor custom_model_name: ::String
1554
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
1573
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
1555
1574
  SENSITIVE: []
1556
1575
  end
1557
1576
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.47.0
4
+ version: 1.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services