aws-sdk-bedrock 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +409 -137
- data/lib/aws-sdk-bedrock/client_api.rb +219 -55
- data/lib/aws-sdk-bedrock/endpoints.rb +70 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +10 -0
- data/lib/aws-sdk-bedrock/types.rb +598 -267
- data/lib/aws-sdk-bedrock/waiters.rb +15 -0
- data/lib/aws-sdk-bedrock.rb +2 -1
- metadata +6 -5
@@ -410,8 +410,18 @@ module Aws::Bedrock
|
|
410
410
|
#
|
411
411
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
412
412
|
#
|
413
|
-
# @option params [required, String] :
|
414
|
-
#
|
413
|
+
# @option params [required, String] :job_name
|
414
|
+
# Enter a unique name for the fine-tuning job.
|
415
|
+
#
|
416
|
+
# @option params [required, String] :custom_model_name
|
417
|
+
# Enter a name for the custom model.
|
418
|
+
#
|
419
|
+
# @option params [required, String] :role_arn
|
420
|
+
# The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume
|
421
|
+
# to perform tasks on your behalf. For example, during model training,
|
422
|
+
# Bedrock needs your permission to read input data from an S3 bucket,
|
423
|
+
# write model artifacts to an S3 bucket. To pass this role to Bedrock,
|
424
|
+
# the caller of this API must have the `iam:PassRole` permission.
|
415
425
|
#
|
416
426
|
# @option params [String] :client_request_token
|
417
427
|
# Unique token value that you can provide. The GetModelCustomizationJob
|
@@ -420,33 +430,17 @@ module Aws::Bedrock
|
|
420
430
|
# **A suitable default value is auto-generated.** You should normally
|
421
431
|
# not need to pass this option.**
|
422
432
|
#
|
433
|
+
# @option params [required, String] :base_model_identifier
|
434
|
+
# Name of the base model.
|
435
|
+
#
|
423
436
|
# @option params [String] :custom_model_kms_key_id
|
424
437
|
# The custom model is encrypted at rest using this key.
|
425
438
|
#
|
426
|
-
# @option params [required, String] :custom_model_name
|
427
|
-
# Enter a name for the custom model.
|
428
|
-
#
|
429
|
-
# @option params [Array<Types::Tag>] :custom_model_tags
|
430
|
-
# Assign tags to the custom model.
|
431
|
-
#
|
432
|
-
# @option params [required, Hash<String,String>] :hyper_parameters
|
433
|
-
# Parameters related to tuning the model.
|
434
|
-
#
|
435
|
-
# @option params [required, String] :job_name
|
436
|
-
# Enter a unique name for the fine-tuning job.
|
437
|
-
#
|
438
439
|
# @option params [Array<Types::Tag>] :job_tags
|
439
440
|
# Assign tags to the job.
|
440
441
|
#
|
441
|
-
# @option params [
|
442
|
-
#
|
443
|
-
#
|
444
|
-
# @option params [required, String] :role_arn
|
445
|
-
# The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume
|
446
|
-
# to perform tasks on your behalf. For example, during model training,
|
447
|
-
# Bedrock needs your permission to read input data from an S3 bucket,
|
448
|
-
# write model artifacts to an S3 bucket. To pass this role to Bedrock,
|
449
|
-
# the caller of this API must have the `iam:PassRole` permission.
|
442
|
+
# @option params [Array<Types::Tag>] :custom_model_tags
|
443
|
+
# Assign tags to the custom model.
|
450
444
|
#
|
451
445
|
# @option params [required, Types::TrainingDataConfig] :training_data_config
|
452
446
|
# Information about the training dataset.
|
@@ -454,6 +448,12 @@ module Aws::Bedrock
|
|
454
448
|
# @option params [Types::ValidationDataConfig] :validation_data_config
|
455
449
|
# Information about the validation dataset.
|
456
450
|
#
|
451
|
+
# @option params [required, Types::OutputDataConfig] :output_data_config
|
452
|
+
# S3 location for the output data.
|
453
|
+
#
|
454
|
+
# @option params [required, Hash<String,String>] :hyper_parameters
|
455
|
+
# Parameters related to tuning the model.
|
456
|
+
#
|
457
457
|
# @option params [Types::VpcConfig] :vpc_config
|
458
458
|
# VPC configuration (optional). Configuration parameters for the private
|
459
459
|
# Virtual Private Cloud (VPC) that contains the resources you are using
|
@@ -466,30 +466,24 @@ module Aws::Bedrock
|
|
466
466
|
# @example Request syntax with placeholder values
|
467
467
|
#
|
468
468
|
# resp = client.create_model_customization_job({
|
469
|
-
#
|
469
|
+
# job_name: "JobName", # required
|
470
|
+
# custom_model_name: "CustomModelName", # required
|
471
|
+
# role_arn: "RoleArn", # required
|
470
472
|
# client_request_token: "IdempotencyToken",
|
473
|
+
# base_model_identifier: "BaseModelIdentifier", # required
|
471
474
|
# custom_model_kms_key_id: "KmsKeyId",
|
472
|
-
#
|
473
|
-
# custom_model_tags: [
|
475
|
+
# job_tags: [
|
474
476
|
# {
|
475
477
|
# key: "TagKey", # required
|
476
478
|
# value: "TagValue", # required
|
477
479
|
# },
|
478
480
|
# ],
|
479
|
-
#
|
480
|
-
# "String" => "String",
|
481
|
-
# },
|
482
|
-
# job_name: "JobName", # required
|
483
|
-
# job_tags: [
|
481
|
+
# custom_model_tags: [
|
484
482
|
# {
|
485
483
|
# key: "TagKey", # required
|
486
484
|
# value: "TagValue", # required
|
487
485
|
# },
|
488
486
|
# ],
|
489
|
-
# output_data_config: { # required
|
490
|
-
# s3_uri: "S3Uri", # required
|
491
|
-
# },
|
492
|
-
# role_arn: "RoleArn", # required
|
493
487
|
# training_data_config: { # required
|
494
488
|
# s3_uri: "S3Uri", # required
|
495
489
|
# },
|
@@ -500,9 +494,15 @@ module Aws::Bedrock
|
|
500
494
|
# },
|
501
495
|
# ],
|
502
496
|
# },
|
497
|
+
# output_data_config: { # required
|
498
|
+
# s3_uri: "S3Uri", # required
|
499
|
+
# },
|
500
|
+
# hyper_parameters: { # required
|
501
|
+
# "String" => "String",
|
502
|
+
# },
|
503
503
|
# vpc_config: {
|
504
|
-
# security_group_ids: ["SecurityGroupId"], # required
|
505
504
|
# subnet_ids: ["SubnetId"], # required
|
505
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
506
506
|
# },
|
507
507
|
# })
|
508
508
|
#
|
@@ -519,6 +519,73 @@ module Aws::Bedrock
|
|
519
519
|
req.send_request(options)
|
520
520
|
end
|
521
521
|
|
522
|
+
# Creates a provisioned throughput with dedicated capacity for a
|
523
|
+
# foundation model or a fine-tuned model.
|
524
|
+
#
|
525
|
+
# For more information, see [Provisioned throughput][1] in the Bedrock
|
526
|
+
# User Guide.
|
527
|
+
#
|
528
|
+
#
|
529
|
+
#
|
530
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
531
|
+
#
|
532
|
+
# @option params [String] :client_request_token
|
533
|
+
# Unique token value that you can provide. If this token matches a
|
534
|
+
# previous request, Bedrock ignores the request, but does not return an
|
535
|
+
# error.
|
536
|
+
#
|
537
|
+
# **A suitable default value is auto-generated.** You should normally
|
538
|
+
# not need to pass this option.**
|
539
|
+
#
|
540
|
+
# @option params [required, Integer] :model_units
|
541
|
+
# Number of model units to allocate.
|
542
|
+
#
|
543
|
+
# @option params [required, String] :provisioned_model_name
|
544
|
+
# Unique name for this provisioned throughput.
|
545
|
+
#
|
546
|
+
# @option params [required, String] :model_id
|
547
|
+
# Name or ARN of the model to associate with this provisioned
|
548
|
+
# throughput.
|
549
|
+
#
|
550
|
+
# @option params [String] :commitment_duration
|
551
|
+
# Commitment duration requested for the provisioned throughput.
|
552
|
+
#
|
553
|
+
# @option params [Array<Types::Tag>] :tags
|
554
|
+
# Tags to associate with this provisioned throughput.
|
555
|
+
#
|
556
|
+
# @return [Types::CreateProvisionedModelThroughputResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
557
|
+
#
|
558
|
+
# * {Types::CreateProvisionedModelThroughputResponse#provisioned_model_arn #provisioned_model_arn} => String
|
559
|
+
#
|
560
|
+
# @example Request syntax with placeholder values
|
561
|
+
#
|
562
|
+
# resp = client.create_provisioned_model_throughput({
|
563
|
+
# client_request_token: "IdempotencyToken",
|
564
|
+
# model_units: 1, # required
|
565
|
+
# provisioned_model_name: "ProvisionedModelName", # required
|
566
|
+
# model_id: "ModelIdentifier", # required
|
567
|
+
# commitment_duration: "OneMonth", # accepts OneMonth, SixMonths
|
568
|
+
# tags: [
|
569
|
+
# {
|
570
|
+
# key: "TagKey", # required
|
571
|
+
# value: "TagValue", # required
|
572
|
+
# },
|
573
|
+
# ],
|
574
|
+
# })
|
575
|
+
#
|
576
|
+
# @example Response structure
|
577
|
+
#
|
578
|
+
# resp.provisioned_model_arn #=> String
|
579
|
+
#
|
580
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateProvisionedModelThroughput AWS API Documentation
|
581
|
+
#
|
582
|
+
# @overload create_provisioned_model_throughput(params = {})
|
583
|
+
# @param [Hash] params ({})
|
584
|
+
def create_provisioned_model_throughput(params = {}, options = {})
|
585
|
+
req = build_request(:create_provisioned_model_throughput, params)
|
586
|
+
req.send_request(options)
|
587
|
+
end
|
588
|
+
|
522
589
|
# Deletes a custom model that you created earlier. For more information,
|
523
590
|
# see [Custom models][1] in the Bedrock User Guide.
|
524
591
|
#
|
@@ -559,6 +626,33 @@ module Aws::Bedrock
|
|
559
626
|
req.send_request(options)
|
560
627
|
end
|
561
628
|
|
629
|
+
# Deletes a provisioned throughput. For more information, see
|
630
|
+
# [Provisioned throughput][1] in the Bedrock User Guide.
|
631
|
+
#
|
632
|
+
#
|
633
|
+
#
|
634
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
635
|
+
#
|
636
|
+
# @option params [required, String] :provisioned_model_id
|
637
|
+
# The ARN or name of the provisioned throughput.
|
638
|
+
#
|
639
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
640
|
+
#
|
641
|
+
# @example Request syntax with placeholder values
|
642
|
+
#
|
643
|
+
# resp = client.delete_provisioned_model_throughput({
|
644
|
+
# provisioned_model_id: "ProvisionedModelId", # required
|
645
|
+
# })
|
646
|
+
#
|
647
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteProvisionedModelThroughput AWS API Documentation
|
648
|
+
#
|
649
|
+
# @overload delete_provisioned_model_throughput(params = {})
|
650
|
+
# @param [Hash] params ({})
|
651
|
+
def delete_provisioned_model_throughput(params = {}, options = {})
|
652
|
+
req = build_request(:delete_provisioned_model_throughput, params)
|
653
|
+
req.send_request(options)
|
654
|
+
end
|
655
|
+
|
562
656
|
# Get the properties associated with a Bedrock custom model that you
|
563
657
|
# have created.For more information, see [Custom models][1] in the
|
564
658
|
# Bedrock User Guide.
|
@@ -572,19 +666,19 @@ module Aws::Bedrock
|
|
572
666
|
#
|
573
667
|
# @return [Types::GetCustomModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
574
668
|
#
|
575
|
-
# * {Types::GetCustomModelResponse#base_model_arn #base_model_arn} => String
|
576
|
-
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
577
|
-
# * {Types::GetCustomModelResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
578
|
-
# * {Types::GetCustomModelResponse#job_arn #job_arn} => String
|
579
|
-
# * {Types::GetCustomModelResponse#job_name #job_name} => String
|
580
669
|
# * {Types::GetCustomModelResponse#model_arn #model_arn} => String
|
581
|
-
# * {Types::GetCustomModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
582
670
|
# * {Types::GetCustomModelResponse#model_name #model_name} => String
|
583
|
-
# * {Types::GetCustomModelResponse#
|
671
|
+
# * {Types::GetCustomModelResponse#job_name #job_name} => String
|
672
|
+
# * {Types::GetCustomModelResponse#job_arn #job_arn} => String
|
673
|
+
# * {Types::GetCustomModelResponse#base_model_arn #base_model_arn} => String
|
674
|
+
# * {Types::GetCustomModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
675
|
+
# * {Types::GetCustomModelResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
584
676
|
# * {Types::GetCustomModelResponse#training_data_config #training_data_config} => Types::TrainingDataConfig
|
585
|
-
# * {Types::GetCustomModelResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
586
677
|
# * {Types::GetCustomModelResponse#validation_data_config #validation_data_config} => Types::ValidationDataConfig
|
678
|
+
# * {Types::GetCustomModelResponse#output_data_config #output_data_config} => Types::OutputDataConfig
|
679
|
+
# * {Types::GetCustomModelResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
587
680
|
# * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
681
|
+
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
588
682
|
#
|
589
683
|
# @example Request syntax with placeholder values
|
590
684
|
#
|
@@ -594,22 +688,22 @@ module Aws::Bedrock
|
|
594
688
|
#
|
595
689
|
# @example Response structure
|
596
690
|
#
|
691
|
+
# resp.model_arn #=> String
|
692
|
+
# resp.model_name #=> String
|
693
|
+
# resp.job_name #=> String
|
694
|
+
# resp.job_arn #=> String
|
597
695
|
# resp.base_model_arn #=> String
|
598
|
-
# resp.
|
696
|
+
# resp.model_kms_key_arn #=> String
|
599
697
|
# resp.hyper_parameters #=> Hash
|
600
698
|
# resp.hyper_parameters["String"] #=> String
|
601
|
-
# resp.job_arn #=> String
|
602
|
-
# resp.job_name #=> String
|
603
|
-
# resp.model_arn #=> String
|
604
|
-
# resp.model_kms_key_arn #=> String
|
605
|
-
# resp.model_name #=> String
|
606
|
-
# resp.output_data_config.s3_uri #=> String
|
607
699
|
# resp.training_data_config.s3_uri #=> String
|
608
|
-
# resp.training_metrics.training_loss #=> Float
|
609
700
|
# resp.validation_data_config.validators #=> Array
|
610
701
|
# resp.validation_data_config.validators[0].s3_uri #=> String
|
702
|
+
# resp.output_data_config.s3_uri #=> String
|
703
|
+
# resp.training_metrics.training_loss #=> Float
|
611
704
|
# resp.validation_metrics #=> Array
|
612
705
|
# resp.validation_metrics[0].validation_loss #=> Float
|
706
|
+
# resp.creation_time #=> Time
|
613
707
|
#
|
614
708
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
|
615
709
|
#
|
@@ -637,19 +731,19 @@ module Aws::Bedrock
|
|
637
731
|
#
|
638
732
|
# @example Response structure
|
639
733
|
#
|
640
|
-
# resp.model_details.customizations_supported #=> Array
|
641
|
-
# resp.model_details.customizations_supported[0] #=> String, one of "FINE_TUNING"
|
642
|
-
# resp.model_details.inference_types_supported #=> Array
|
643
|
-
# resp.model_details.inference_types_supported[0] #=> String, one of "ON_DEMAND", "PROVISIONED"
|
644
|
-
# resp.model_details.input_modalities #=> Array
|
645
|
-
# resp.model_details.input_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
646
734
|
# resp.model_details.model_arn #=> String
|
647
735
|
# resp.model_details.model_id #=> String
|
648
736
|
# resp.model_details.model_name #=> String
|
737
|
+
# resp.model_details.provider_name #=> String
|
738
|
+
# resp.model_details.input_modalities #=> Array
|
739
|
+
# resp.model_details.input_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
649
740
|
# resp.model_details.output_modalities #=> Array
|
650
741
|
# resp.model_details.output_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
651
|
-
# resp.model_details.provider_name #=> String
|
652
742
|
# resp.model_details.response_streaming_supported #=> Boolean
|
743
|
+
# resp.model_details.customizations_supported #=> Array
|
744
|
+
# resp.model_details.customizations_supported[0] #=> String, one of "FINE_TUNING"
|
745
|
+
# resp.model_details.inference_types_supported #=> Array
|
746
|
+
# resp.model_details.inference_types_supported[0] #=> String, one of "ON_DEMAND", "PROVISIONED"
|
653
747
|
#
|
654
748
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModel AWS API Documentation
|
655
749
|
#
|
@@ -673,24 +767,24 @@ module Aws::Bedrock
|
|
673
767
|
#
|
674
768
|
# @return [Types::GetModelCustomizationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
675
769
|
#
|
676
|
-
# * {Types::GetModelCustomizationJobResponse#base_model_arn #base_model_arn} => String
|
677
|
-
# * {Types::GetModelCustomizationJobResponse#client_request_token #client_request_token} => String
|
678
|
-
# * {Types::GetModelCustomizationJobResponse#creation_time #creation_time} => Time
|
679
|
-
# * {Types::GetModelCustomizationJobResponse#end_time #end_time} => Time
|
680
|
-
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
681
|
-
# * {Types::GetModelCustomizationJobResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
682
770
|
# * {Types::GetModelCustomizationJobResponse#job_arn #job_arn} => String
|
683
771
|
# * {Types::GetModelCustomizationJobResponse#job_name #job_name} => String
|
684
|
-
# * {Types::GetModelCustomizationJobResponse#last_modified_time #last_modified_time} => Time
|
685
|
-
# * {Types::GetModelCustomizationJobResponse#output_data_config #output_data_config} => Types::OutputDataConfig
|
686
|
-
# * {Types::GetModelCustomizationJobResponse#output_model_arn #output_model_arn} => String
|
687
|
-
# * {Types::GetModelCustomizationJobResponse#output_model_kms_key_arn #output_model_kms_key_arn} => String
|
688
772
|
# * {Types::GetModelCustomizationJobResponse#output_model_name #output_model_name} => String
|
773
|
+
# * {Types::GetModelCustomizationJobResponse#output_model_arn #output_model_arn} => String
|
774
|
+
# * {Types::GetModelCustomizationJobResponse#client_request_token #client_request_token} => String
|
689
775
|
# * {Types::GetModelCustomizationJobResponse#role_arn #role_arn} => String
|
690
776
|
# * {Types::GetModelCustomizationJobResponse#status #status} => String
|
777
|
+
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
778
|
+
# * {Types::GetModelCustomizationJobResponse#creation_time #creation_time} => Time
|
779
|
+
# * {Types::GetModelCustomizationJobResponse#last_modified_time #last_modified_time} => Time
|
780
|
+
# * {Types::GetModelCustomizationJobResponse#end_time #end_time} => Time
|
781
|
+
# * {Types::GetModelCustomizationJobResponse#base_model_arn #base_model_arn} => String
|
782
|
+
# * {Types::GetModelCustomizationJobResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
691
783
|
# * {Types::GetModelCustomizationJobResponse#training_data_config #training_data_config} => Types::TrainingDataConfig
|
692
|
-
# * {Types::GetModelCustomizationJobResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
693
784
|
# * {Types::GetModelCustomizationJobResponse#validation_data_config #validation_data_config} => Types::ValidationDataConfig
|
785
|
+
# * {Types::GetModelCustomizationJobResponse#output_data_config #output_data_config} => Types::OutputDataConfig
|
786
|
+
# * {Types::GetModelCustomizationJobResponse#output_model_kms_key_arn #output_model_kms_key_arn} => String
|
787
|
+
# * {Types::GetModelCustomizationJobResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
694
788
|
# * {Types::GetModelCustomizationJobResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
695
789
|
# * {Types::GetModelCustomizationJobResponse#vpc_config #vpc_config} => Types::VpcConfig
|
696
790
|
#
|
@@ -702,32 +796,32 @@ module Aws::Bedrock
|
|
702
796
|
#
|
703
797
|
# @example Response structure
|
704
798
|
#
|
705
|
-
# resp.base_model_arn #=> String
|
706
|
-
# resp.client_request_token #=> String
|
707
|
-
# resp.creation_time #=> Time
|
708
|
-
# resp.end_time #=> Time
|
709
|
-
# resp.failure_message #=> String
|
710
|
-
# resp.hyper_parameters #=> Hash
|
711
|
-
# resp.hyper_parameters["String"] #=> String
|
712
799
|
# resp.job_arn #=> String
|
713
800
|
# resp.job_name #=> String
|
714
|
-
# resp.last_modified_time #=> Time
|
715
|
-
# resp.output_data_config.s3_uri #=> String
|
716
|
-
# resp.output_model_arn #=> String
|
717
|
-
# resp.output_model_kms_key_arn #=> String
|
718
801
|
# resp.output_model_name #=> String
|
802
|
+
# resp.output_model_arn #=> String
|
803
|
+
# resp.client_request_token #=> String
|
719
804
|
# resp.role_arn #=> String
|
720
805
|
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
806
|
+
# resp.failure_message #=> String
|
807
|
+
# resp.creation_time #=> Time
|
808
|
+
# resp.last_modified_time #=> Time
|
809
|
+
# resp.end_time #=> Time
|
810
|
+
# resp.base_model_arn #=> String
|
811
|
+
# resp.hyper_parameters #=> Hash
|
812
|
+
# resp.hyper_parameters["String"] #=> String
|
721
813
|
# resp.training_data_config.s3_uri #=> String
|
722
|
-
# resp.training_metrics.training_loss #=> Float
|
723
814
|
# resp.validation_data_config.validators #=> Array
|
724
815
|
# resp.validation_data_config.validators[0].s3_uri #=> String
|
816
|
+
# resp.output_data_config.s3_uri #=> String
|
817
|
+
# resp.output_model_kms_key_arn #=> String
|
818
|
+
# resp.training_metrics.training_loss #=> Float
|
725
819
|
# resp.validation_metrics #=> Array
|
726
820
|
# resp.validation_metrics[0].validation_loss #=> Float
|
727
|
-
# resp.vpc_config.security_group_ids #=> Array
|
728
|
-
# resp.vpc_config.security_group_ids[0] #=> String
|
729
821
|
# resp.vpc_config.subnet_ids #=> Array
|
730
822
|
# resp.vpc_config.subnet_ids[0] #=> String
|
823
|
+
# resp.vpc_config.security_group_ids #=> Array
|
824
|
+
# resp.vpc_config.security_group_ids[0] #=> String
|
731
825
|
#
|
732
826
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelCustomizationJob AWS API Documentation
|
733
827
|
#
|
@@ -746,15 +840,15 @@ module Aws::Bedrock
|
|
746
840
|
#
|
747
841
|
# @example Response structure
|
748
842
|
#
|
749
|
-
# resp.logging_config.cloud_watch_config.large_data_delivery_s3_config.bucket_name #=> String
|
750
|
-
# resp.logging_config.cloud_watch_config.large_data_delivery_s3_config.key_prefix #=> String
|
751
843
|
# resp.logging_config.cloud_watch_config.log_group_name #=> String
|
752
844
|
# resp.logging_config.cloud_watch_config.role_arn #=> String
|
753
|
-
# resp.logging_config.
|
754
|
-
# resp.logging_config.
|
845
|
+
# resp.logging_config.cloud_watch_config.large_data_delivery_s3_config.bucket_name #=> String
|
846
|
+
# resp.logging_config.cloud_watch_config.large_data_delivery_s3_config.key_prefix #=> String
|
755
847
|
# resp.logging_config.s3_config.bucket_name #=> String
|
756
848
|
# resp.logging_config.s3_config.key_prefix #=> String
|
757
849
|
# resp.logging_config.text_data_delivery_enabled #=> Boolean
|
850
|
+
# resp.logging_config.image_data_delivery_enabled #=> Boolean
|
851
|
+
# resp.logging_config.embedding_data_delivery_enabled #=> Boolean
|
758
852
|
#
|
759
853
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfiguration AWS API Documentation
|
760
854
|
#
|
@@ -765,6 +859,63 @@ module Aws::Bedrock
|
|
765
859
|
req.send_request(options)
|
766
860
|
end
|
767
861
|
|
862
|
+
# Get details for a provisioned throughput. For more information, see
|
863
|
+
# [Provisioned throughput][1] in the Bedrock User Guide.
|
864
|
+
#
|
865
|
+
#
|
866
|
+
#
|
867
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
868
|
+
#
|
869
|
+
# @option params [required, String] :provisioned_model_id
|
870
|
+
# The ARN or name of the provisioned throughput.
|
871
|
+
#
|
872
|
+
# @return [Types::GetProvisionedModelThroughputResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
873
|
+
#
|
874
|
+
# * {Types::GetProvisionedModelThroughputResponse#model_units #model_units} => Integer
|
875
|
+
# * {Types::GetProvisionedModelThroughputResponse#desired_model_units #desired_model_units} => Integer
|
876
|
+
# * {Types::GetProvisionedModelThroughputResponse#provisioned_model_name #provisioned_model_name} => String
|
877
|
+
# * {Types::GetProvisionedModelThroughputResponse#provisioned_model_arn #provisioned_model_arn} => String
|
878
|
+
# * {Types::GetProvisionedModelThroughputResponse#model_arn #model_arn} => String
|
879
|
+
# * {Types::GetProvisionedModelThroughputResponse#desired_model_arn #desired_model_arn} => String
|
880
|
+
# * {Types::GetProvisionedModelThroughputResponse#foundation_model_arn #foundation_model_arn} => String
|
881
|
+
# * {Types::GetProvisionedModelThroughputResponse#status #status} => String
|
882
|
+
# * {Types::GetProvisionedModelThroughputResponse#creation_time #creation_time} => Time
|
883
|
+
# * {Types::GetProvisionedModelThroughputResponse#last_modified_time #last_modified_time} => Time
|
884
|
+
# * {Types::GetProvisionedModelThroughputResponse#failure_message #failure_message} => String
|
885
|
+
# * {Types::GetProvisionedModelThroughputResponse#commitment_duration #commitment_duration} => String
|
886
|
+
# * {Types::GetProvisionedModelThroughputResponse#commitment_expiration_time #commitment_expiration_time} => Time
|
887
|
+
#
|
888
|
+
# @example Request syntax with placeholder values
|
889
|
+
#
|
890
|
+
# resp = client.get_provisioned_model_throughput({
|
891
|
+
# provisioned_model_id: "ProvisionedModelId", # required
|
892
|
+
# })
|
893
|
+
#
|
894
|
+
# @example Response structure
|
895
|
+
#
|
896
|
+
# resp.model_units #=> Integer
|
897
|
+
# resp.desired_model_units #=> Integer
|
898
|
+
# resp.provisioned_model_name #=> String
|
899
|
+
# resp.provisioned_model_arn #=> String
|
900
|
+
# resp.model_arn #=> String
|
901
|
+
# resp.desired_model_arn #=> String
|
902
|
+
# resp.foundation_model_arn #=> String
|
903
|
+
# resp.status #=> String, one of "Creating", "InService", "Updating", "Failed"
|
904
|
+
# resp.creation_time #=> Time
|
905
|
+
# resp.last_modified_time #=> Time
|
906
|
+
# resp.failure_message #=> String
|
907
|
+
# resp.commitment_duration #=> String, one of "OneMonth", "SixMonths"
|
908
|
+
# resp.commitment_expiration_time #=> Time
|
909
|
+
#
|
910
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetProvisionedModelThroughput AWS API Documentation
|
911
|
+
#
|
912
|
+
# @overload get_provisioned_model_throughput(params = {})
|
913
|
+
# @param [Hash] params ({})
|
914
|
+
def get_provisioned_model_throughput(params = {}, options = {})
|
915
|
+
req = build_request(:get_provisioned_model_throughput, params)
|
916
|
+
req.send_request(options)
|
917
|
+
end
|
918
|
+
|
768
919
|
# Returns a list of the custom models that you have created with the
|
769
920
|
# `CreateModelCustomizationJob` operation.
|
770
921
|
#
|
@@ -775,15 +926,18 @@ module Aws::Bedrock
|
|
775
926
|
#
|
776
927
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
777
928
|
#
|
778
|
-
# @option params [String] :
|
779
|
-
# Return custom models
|
780
|
-
# parameter.
|
929
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
930
|
+
# Return custom models created before the specified time.
|
781
931
|
#
|
782
932
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
783
933
|
# Return custom models created after the specified time.
|
784
934
|
#
|
785
|
-
# @option params [
|
786
|
-
# Return custom models
|
935
|
+
# @option params [String] :name_contains
|
936
|
+
# Return custom models only if the job name contains these characters.
|
937
|
+
#
|
938
|
+
# @option params [String] :base_model_arn_equals
|
939
|
+
# Return custom models only if the base model ARN matches this
|
940
|
+
# parameter.
|
787
941
|
#
|
788
942
|
# @option params [String] :foundation_model_arn_equals
|
789
943
|
# Return custom models only if the foundation model ARN matches this
|
@@ -792,9 +946,6 @@ module Aws::Bedrock
|
|
792
946
|
# @option params [Integer] :max_results
|
793
947
|
# Maximum number of results to return in the response.
|
794
948
|
#
|
795
|
-
# @option params [String] :name_contains
|
796
|
-
# Return custom models only if the job name contains these characters.
|
797
|
-
#
|
798
949
|
# @option params [String] :next_token
|
799
950
|
# Continuation token from the previous response, for Bedrock to list the
|
800
951
|
# next set of results.
|
@@ -807,20 +958,20 @@ module Aws::Bedrock
|
|
807
958
|
#
|
808
959
|
# @return [Types::ListCustomModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
809
960
|
#
|
810
|
-
# * {Types::ListCustomModelsResponse#model_summaries #model_summaries} => Array<Types::CustomModelSummary>
|
811
961
|
# * {Types::ListCustomModelsResponse#next_token #next_token} => String
|
962
|
+
# * {Types::ListCustomModelsResponse#model_summaries #model_summaries} => Array<Types::CustomModelSummary>
|
812
963
|
#
|
813
964
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
814
965
|
#
|
815
966
|
# @example Request syntax with placeholder values
|
816
967
|
#
|
817
968
|
# resp = client.list_custom_models({
|
818
|
-
# base_model_arn_equals: "ModelArn",
|
819
|
-
# creation_time_after: Time.now,
|
820
969
|
# creation_time_before: Time.now,
|
970
|
+
# creation_time_after: Time.now,
|
971
|
+
# name_contains: "CustomModelName",
|
972
|
+
# base_model_arn_equals: "ModelArn",
|
821
973
|
# foundation_model_arn_equals: "FoundationModelArn",
|
822
974
|
# max_results: 1,
|
823
|
-
# name_contains: "CustomModelName",
|
824
975
|
# next_token: "PaginationToken",
|
825
976
|
# sort_by: "CreationTime", # accepts CreationTime
|
826
977
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
@@ -828,13 +979,13 @@ module Aws::Bedrock
|
|
828
979
|
#
|
829
980
|
# @example Response structure
|
830
981
|
#
|
982
|
+
# resp.next_token #=> String
|
831
983
|
# resp.model_summaries #=> Array
|
832
|
-
# resp.model_summaries[0].base_model_arn #=> String
|
833
|
-
# resp.model_summaries[0].base_model_name #=> String
|
834
|
-
# resp.model_summaries[0].creation_time #=> Time
|
835
984
|
# resp.model_summaries[0].model_arn #=> String
|
836
985
|
# resp.model_summaries[0].model_name #=> String
|
837
|
-
# resp.
|
986
|
+
# resp.model_summaries[0].creation_time #=> Time
|
987
|
+
# resp.model_summaries[0].base_model_arn #=> String
|
988
|
+
# resp.model_summaries[0].base_model_name #=> String
|
838
989
|
#
|
839
990
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
|
840
991
|
#
|
@@ -852,17 +1003,17 @@ module Aws::Bedrock
|
|
852
1003
|
#
|
853
1004
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html
|
854
1005
|
#
|
1006
|
+
# @option params [String] :by_provider
|
1007
|
+
# A Bedrock model provider.
|
1008
|
+
#
|
855
1009
|
# @option params [String] :by_customization_type
|
856
1010
|
# List by customization type.
|
857
1011
|
#
|
858
|
-
# @option params [String] :by_inference_type
|
859
|
-
# List by inference type.
|
860
|
-
#
|
861
1012
|
# @option params [String] :by_output_modality
|
862
1013
|
# List by output modality type.
|
863
1014
|
#
|
864
|
-
# @option params [String] :
|
865
|
-
#
|
1015
|
+
# @option params [String] :by_inference_type
|
1016
|
+
# List by inference type.
|
866
1017
|
#
|
867
1018
|
# @return [Types::ListFoundationModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
868
1019
|
#
|
@@ -871,28 +1022,28 @@ module Aws::Bedrock
|
|
871
1022
|
# @example Request syntax with placeholder values
|
872
1023
|
#
|
873
1024
|
# resp = client.list_foundation_models({
|
1025
|
+
# by_provider: "Provider",
|
874
1026
|
# by_customization_type: "FINE_TUNING", # accepts FINE_TUNING
|
875
|
-
# by_inference_type: "ON_DEMAND", # accepts ON_DEMAND, PROVISIONED
|
876
1027
|
# by_output_modality: "TEXT", # accepts TEXT, IMAGE, EMBEDDING
|
877
|
-
#
|
1028
|
+
# by_inference_type: "ON_DEMAND", # accepts ON_DEMAND, PROVISIONED
|
878
1029
|
# })
|
879
1030
|
#
|
880
1031
|
# @example Response structure
|
881
1032
|
#
|
882
1033
|
# resp.model_summaries #=> Array
|
883
|
-
# resp.model_summaries[0].customizations_supported #=> Array
|
884
|
-
# resp.model_summaries[0].customizations_supported[0] #=> String, one of "FINE_TUNING"
|
885
|
-
# resp.model_summaries[0].inference_types_supported #=> Array
|
886
|
-
# resp.model_summaries[0].inference_types_supported[0] #=> String, one of "ON_DEMAND", "PROVISIONED"
|
887
|
-
# resp.model_summaries[0].input_modalities #=> Array
|
888
|
-
# resp.model_summaries[0].input_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
889
1034
|
# resp.model_summaries[0].model_arn #=> String
|
890
1035
|
# resp.model_summaries[0].model_id #=> String
|
891
1036
|
# resp.model_summaries[0].model_name #=> String
|
1037
|
+
# resp.model_summaries[0].provider_name #=> String
|
1038
|
+
# resp.model_summaries[0].input_modalities #=> Array
|
1039
|
+
# resp.model_summaries[0].input_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
892
1040
|
# resp.model_summaries[0].output_modalities #=> Array
|
893
1041
|
# resp.model_summaries[0].output_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
894
|
-
# resp.model_summaries[0].provider_name #=> String
|
895
1042
|
# resp.model_summaries[0].response_streaming_supported #=> Boolean
|
1043
|
+
# resp.model_summaries[0].customizations_supported #=> Array
|
1044
|
+
# resp.model_summaries[0].customizations_supported[0] #=> String, one of "FINE_TUNING"
|
1045
|
+
# resp.model_summaries[0].inference_types_supported #=> Array
|
1046
|
+
# resp.model_summaries[0].inference_types_supported[0] #=> String, one of "ON_DEMAND", "PROVISIONED"
|
896
1047
|
#
|
897
1048
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModels AWS API Documentation
|
898
1049
|
#
|
@@ -919,13 +1070,16 @@ module Aws::Bedrock
|
|
919
1070
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
920
1071
|
# Return customization jobs created before the specified time.
|
921
1072
|
#
|
922
|
-
# @option params [
|
923
|
-
#
|
1073
|
+
# @option params [String] :status_equals
|
1074
|
+
# Return customization jobs with the specified status.
|
924
1075
|
#
|
925
1076
|
# @option params [String] :name_contains
|
926
1077
|
# Return customization jobs only if the job name contains these
|
927
1078
|
# characters.
|
928
1079
|
#
|
1080
|
+
# @option params [Integer] :max_results
|
1081
|
+
# Maximum number of results to return in the response.
|
1082
|
+
#
|
929
1083
|
# @option params [String] :next_token
|
930
1084
|
# Continuation token from the previous response, for Bedrock to list the
|
931
1085
|
# next set of results.
|
@@ -936,13 +1090,10 @@ module Aws::Bedrock
|
|
936
1090
|
# @option params [String] :sort_order
|
937
1091
|
# The sort order of the results.
|
938
1092
|
#
|
939
|
-
# @option params [String] :status_equals
|
940
|
-
# Return customization jobs with the specified status.
|
941
|
-
#
|
942
1093
|
# @return [Types::ListModelCustomizationJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
943
1094
|
#
|
944
|
-
# * {Types::ListModelCustomizationJobsResponse#model_customization_job_summaries #model_customization_job_summaries} => Array<Types::ModelCustomizationJobSummary>
|
945
1095
|
# * {Types::ListModelCustomizationJobsResponse#next_token #next_token} => String
|
1096
|
+
# * {Types::ListModelCustomizationJobsResponse#model_customization_job_summaries #model_customization_job_summaries} => Array<Types::ModelCustomizationJobSummary>
|
946
1097
|
#
|
947
1098
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
948
1099
|
#
|
@@ -951,27 +1102,27 @@ module Aws::Bedrock
|
|
951
1102
|
# resp = client.list_model_customization_jobs({
|
952
1103
|
# creation_time_after: Time.now,
|
953
1104
|
# creation_time_before: Time.now,
|
954
|
-
#
|
1105
|
+
# status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped
|
955
1106
|
# name_contains: "JobName",
|
1107
|
+
# max_results: 1,
|
956
1108
|
# next_token: "PaginationToken",
|
957
1109
|
# sort_by: "CreationTime", # accepts CreationTime
|
958
1110
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
959
|
-
# status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped
|
960
1111
|
# })
|
961
1112
|
#
|
962
1113
|
# @example Response structure
|
963
1114
|
#
|
1115
|
+
# resp.next_token #=> String
|
964
1116
|
# resp.model_customization_job_summaries #=> Array
|
1117
|
+
# resp.model_customization_job_summaries[0].job_arn #=> String
|
965
1118
|
# resp.model_customization_job_summaries[0].base_model_arn #=> String
|
1119
|
+
# resp.model_customization_job_summaries[0].job_name #=> String
|
1120
|
+
# resp.model_customization_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
1121
|
+
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
966
1122
|
# resp.model_customization_job_summaries[0].creation_time #=> Time
|
1123
|
+
# resp.model_customization_job_summaries[0].end_time #=> Time
|
967
1124
|
# resp.model_customization_job_summaries[0].custom_model_arn #=> String
|
968
1125
|
# resp.model_customization_job_summaries[0].custom_model_name #=> String
|
969
|
-
# resp.model_customization_job_summaries[0].end_time #=> Time
|
970
|
-
# resp.model_customization_job_summaries[0].job_arn #=> String
|
971
|
-
# resp.model_customization_job_summaries[0].job_name #=> String
|
972
|
-
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
973
|
-
# resp.model_customization_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
974
|
-
# resp.next_token #=> String
|
975
1126
|
#
|
976
1127
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs AWS API Documentation
|
977
1128
|
#
|
@@ -982,6 +1133,91 @@ module Aws::Bedrock
|
|
982
1133
|
req.send_request(options)
|
983
1134
|
end
|
984
1135
|
|
1136
|
+
# List the provisioned capacities. For more information, see
|
1137
|
+
# [Provisioned throughput][1] in the Bedrock User Guide.
|
1138
|
+
#
|
1139
|
+
#
|
1140
|
+
#
|
1141
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1142
|
+
#
|
1143
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
1144
|
+
# Return provisioned capacities created after the specified time.
|
1145
|
+
#
|
1146
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
1147
|
+
# Return provisioned capacities created before the specified time.
|
1148
|
+
#
|
1149
|
+
# @option params [String] :status_equals
|
1150
|
+
# Return the list of provisioned capacities that match the specified
|
1151
|
+
# status.
|
1152
|
+
#
|
1153
|
+
# @option params [String] :model_arn_equals
|
1154
|
+
# Return the list of provisioned capacities where their model ARN is
|
1155
|
+
# equal to this parameter.
|
1156
|
+
#
|
1157
|
+
# @option params [String] :name_contains
|
1158
|
+
# Return the list of provisioned capacities if their name contains these
|
1159
|
+
# characters.
|
1160
|
+
#
|
1161
|
+
# @option params [Integer] :max_results
|
1162
|
+
# THe maximum number of results to return in the response.
|
1163
|
+
#
|
1164
|
+
# @option params [String] :next_token
|
1165
|
+
# Continuation token from the previous response, for Bedrock to list the
|
1166
|
+
# next set of results.
|
1167
|
+
#
|
1168
|
+
# @option params [String] :sort_by
|
1169
|
+
# The field to sort by in the returned list of provisioned capacities.
|
1170
|
+
#
|
1171
|
+
# @option params [String] :sort_order
|
1172
|
+
# The sort order of the results.
|
1173
|
+
#
|
1174
|
+
# @return [Types::ListProvisionedModelThroughputsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1175
|
+
#
|
1176
|
+
# * {Types::ListProvisionedModelThroughputsResponse#next_token #next_token} => String
|
1177
|
+
# * {Types::ListProvisionedModelThroughputsResponse#provisioned_model_summaries #provisioned_model_summaries} => Array<Types::ProvisionedModelSummary>
|
1178
|
+
#
|
1179
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1180
|
+
#
|
1181
|
+
# @example Request syntax with placeholder values
|
1182
|
+
#
|
1183
|
+
# resp = client.list_provisioned_model_throughputs({
|
1184
|
+
# creation_time_after: Time.now,
|
1185
|
+
# creation_time_before: Time.now,
|
1186
|
+
# status_equals: "Creating", # accepts Creating, InService, Updating, Failed
|
1187
|
+
# model_arn_equals: "ModelArn",
|
1188
|
+
# name_contains: "ProvisionedModelName",
|
1189
|
+
# max_results: 1,
|
1190
|
+
# next_token: "PaginationToken",
|
1191
|
+
# sort_by: "CreationTime", # accepts CreationTime
|
1192
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
1193
|
+
# })
|
1194
|
+
#
|
1195
|
+
# @example Response structure
|
1196
|
+
#
|
1197
|
+
# resp.next_token #=> String
|
1198
|
+
# resp.provisioned_model_summaries #=> Array
|
1199
|
+
# resp.provisioned_model_summaries[0].provisioned_model_name #=> String
|
1200
|
+
# resp.provisioned_model_summaries[0].provisioned_model_arn #=> String
|
1201
|
+
# resp.provisioned_model_summaries[0].model_arn #=> String
|
1202
|
+
# resp.provisioned_model_summaries[0].desired_model_arn #=> String
|
1203
|
+
# resp.provisioned_model_summaries[0].foundation_model_arn #=> String
|
1204
|
+
# resp.provisioned_model_summaries[0].model_units #=> Integer
|
1205
|
+
# resp.provisioned_model_summaries[0].desired_model_units #=> Integer
|
1206
|
+
# resp.provisioned_model_summaries[0].status #=> String, one of "Creating", "InService", "Updating", "Failed"
|
1207
|
+
# resp.provisioned_model_summaries[0].commitment_duration #=> String, one of "OneMonth", "SixMonths"
|
1208
|
+
# resp.provisioned_model_summaries[0].commitment_expiration_time #=> Time
|
1209
|
+
# resp.provisioned_model_summaries[0].creation_time #=> Time
|
1210
|
+
# resp.provisioned_model_summaries[0].last_modified_time #=> Time
|
1211
|
+
#
|
1212
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListProvisionedModelThroughputs AWS API Documentation
|
1213
|
+
#
|
1214
|
+
# @overload list_provisioned_model_throughputs(params = {})
|
1215
|
+
# @param [Hash] params ({})
|
1216
|
+
def list_provisioned_model_throughputs(params = {}, options = {})
|
1217
|
+
req = build_request(:list_provisioned_model_throughputs, params)
|
1218
|
+
req.send_request(options)
|
1219
|
+
end
|
1220
|
+
|
985
1221
|
# List the tags associated with the specified resource.
|
986
1222
|
#
|
987
1223
|
# For more information, see [Tagging resources][1] in the Bedrock User
|
@@ -1031,20 +1267,20 @@ module Aws::Bedrock
|
|
1031
1267
|
# resp = client.put_model_invocation_logging_configuration({
|
1032
1268
|
# logging_config: { # required
|
1033
1269
|
# cloud_watch_config: {
|
1270
|
+
# log_group_name: "LogGroupName", # required
|
1271
|
+
# role_arn: "RoleArn", # required
|
1034
1272
|
# large_data_delivery_s3_config: {
|
1035
1273
|
# bucket_name: "BucketName", # required
|
1036
1274
|
# key_prefix: "KeyPrefix",
|
1037
1275
|
# },
|
1038
|
-
# log_group_name: "LogGroupName", # required
|
1039
|
-
# role_arn: "RoleArn", # required
|
1040
1276
|
# },
|
1041
|
-
# embedding_data_delivery_enabled: false,
|
1042
|
-
# image_data_delivery_enabled: false,
|
1043
1277
|
# s3_config: {
|
1044
1278
|
# bucket_name: "BucketName", # required
|
1045
1279
|
# key_prefix: "KeyPrefix",
|
1046
1280
|
# },
|
1047
1281
|
# text_data_delivery_enabled: false,
|
1282
|
+
# image_data_delivery_enabled: false,
|
1283
|
+
# embedding_data_delivery_enabled: false,
|
1048
1284
|
# },
|
1049
1285
|
# })
|
1050
1286
|
#
|
@@ -1151,6 +1387,42 @@ module Aws::Bedrock
|
|
1151
1387
|
req.send_request(options)
|
1152
1388
|
end
|
1153
1389
|
|
1390
|
+
# Update a provisioned throughput. For more information, see
|
1391
|
+
# [Provisioned throughput][1] in the Bedrock User Guide.
|
1392
|
+
#
|
1393
|
+
#
|
1394
|
+
#
|
1395
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1396
|
+
#
|
1397
|
+
# @option params [required, String] :provisioned_model_id
|
1398
|
+
# The ARN or name of the provisioned throughput to update.
|
1399
|
+
#
|
1400
|
+
# @option params [String] :desired_provisioned_model_name
|
1401
|
+
# The new name for this provisioned throughput.
|
1402
|
+
#
|
1403
|
+
# @option params [String] :desired_model_id
|
1404
|
+
# The ARN of the new model to associate with this provisioned
|
1405
|
+
# throughput.
|
1406
|
+
#
|
1407
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1408
|
+
#
|
1409
|
+
# @example Request syntax with placeholder values
|
1410
|
+
#
|
1411
|
+
# resp = client.update_provisioned_model_throughput({
|
1412
|
+
# provisioned_model_id: "ProvisionedModelId", # required
|
1413
|
+
# desired_provisioned_model_name: "ProvisionedModelName",
|
1414
|
+
# desired_model_id: "ModelIdentifier",
|
1415
|
+
# })
|
1416
|
+
#
|
1417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateProvisionedModelThroughput AWS API Documentation
|
1418
|
+
#
|
1419
|
+
# @overload update_provisioned_model_throughput(params = {})
|
1420
|
+
# @param [Hash] params ({})
|
1421
|
+
def update_provisioned_model_throughput(params = {}, options = {})
|
1422
|
+
req = build_request(:update_provisioned_model_throughput, params)
|
1423
|
+
req.send_request(options)
|
1424
|
+
end
|
1425
|
+
|
1154
1426
|
# @!endgroup
|
1155
1427
|
|
1156
1428
|
# @param params ({})
|
@@ -1164,7 +1436,7 @@ module Aws::Bedrock
|
|
1164
1436
|
params: params,
|
1165
1437
|
config: config)
|
1166
1438
|
context[:gem_name] = 'aws-sdk-bedrock'
|
1167
|
-
context[:gem_version] = '1.
|
1439
|
+
context[:gem_version] = '1.2.0'
|
1168
1440
|
Seahorse::Client::Request.new(handlers, context)
|
1169
1441
|
end
|
1170
1442
|
|