aws-sdk-bedrock 1.15.0 → 1.17.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +527 -12
- data/lib/aws-sdk-bedrock/client_api.rb +350 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +126 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +18 -0
- data/lib/aws-sdk-bedrock/types.rb +757 -13
- data/lib/aws-sdk-bedrock.rb +2 -2
- data/sig/client.rbs +161 -2
- data/sig/types.rbs +210 -3
- metadata +2 -2
@@ -40,6 +40,81 @@ module Aws::Bedrock
|
|
40
40
|
include Aws::Structure
|
41
41
|
end
|
42
42
|
|
43
|
+
# A JSON array that provides the status of the model evaluation jobs
|
44
|
+
# being deleted.
|
45
|
+
#
|
46
|
+
# @!attribute [rw] job_identifier
|
47
|
+
# The ARN of the model evaluation job being deleted.
|
48
|
+
# @return [String]
|
49
|
+
#
|
50
|
+
# @!attribute [rw] code
|
51
|
+
# A HTTP status code of the model evaluation job being deleted.
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
# @!attribute [rw] message
|
55
|
+
# A status message about the model evaluation job deletion.
|
56
|
+
# @return [String]
|
57
|
+
#
|
58
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteEvaluationJobError AWS API Documentation
|
59
|
+
#
|
60
|
+
class BatchDeleteEvaluationJobError < Struct.new(
|
61
|
+
:job_identifier,
|
62
|
+
:code,
|
63
|
+
:message)
|
64
|
+
SENSITIVE = [:job_identifier]
|
65
|
+
include Aws::Structure
|
66
|
+
end
|
67
|
+
|
68
|
+
# An array of model evaluation jobs to be deleted, and their associated
|
69
|
+
# statuses.
|
70
|
+
#
|
71
|
+
# @!attribute [rw] job_identifier
|
72
|
+
# The ARN of model evaluation job to be deleted.
|
73
|
+
# @return [String]
|
74
|
+
#
|
75
|
+
# @!attribute [rw] job_status
|
76
|
+
# The status of the job's deletion.
|
77
|
+
# @return [String]
|
78
|
+
#
|
79
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteEvaluationJobItem AWS API Documentation
|
80
|
+
#
|
81
|
+
class BatchDeleteEvaluationJobItem < Struct.new(
|
82
|
+
:job_identifier,
|
83
|
+
:job_status)
|
84
|
+
SENSITIVE = [:job_identifier]
|
85
|
+
include Aws::Structure
|
86
|
+
end
|
87
|
+
|
88
|
+
# @!attribute [rw] job_identifiers
|
89
|
+
# An array of model evaluation job ARNs to be deleted.
|
90
|
+
# @return [Array<String>]
|
91
|
+
#
|
92
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteEvaluationJobRequest AWS API Documentation
|
93
|
+
#
|
94
|
+
class BatchDeleteEvaluationJobRequest < Struct.new(
|
95
|
+
:job_identifiers)
|
96
|
+
SENSITIVE = [:job_identifiers]
|
97
|
+
include Aws::Structure
|
98
|
+
end
|
99
|
+
|
100
|
+
# @!attribute [rw] errors
|
101
|
+
# A JSON object containing the HTTP status codes and the ARNs of model
|
102
|
+
# evaluation jobs that failed to be deleted.
|
103
|
+
# @return [Array<Types::BatchDeleteEvaluationJobError>]
|
104
|
+
#
|
105
|
+
# @!attribute [rw] evaluation_jobs
|
106
|
+
# The list of model evaluation jobs to be deleted.
|
107
|
+
# @return [Array<Types::BatchDeleteEvaluationJobItem>]
|
108
|
+
#
|
109
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteEvaluationJobResponse AWS API Documentation
|
110
|
+
#
|
111
|
+
class BatchDeleteEvaluationJobResponse < Struct.new(
|
112
|
+
:errors,
|
113
|
+
:evaluation_jobs)
|
114
|
+
SENSITIVE = []
|
115
|
+
include Aws::Structure
|
116
|
+
end
|
117
|
+
|
43
118
|
# CloudWatch logging configuration.
|
44
119
|
#
|
45
120
|
# @!attribute [rw] log_group_name
|
@@ -496,6 +571,78 @@ module Aws::Bedrock
|
|
496
571
|
include Aws::Structure
|
497
572
|
end
|
498
573
|
|
574
|
+
# @!attribute [rw] job_name
|
575
|
+
# The name of the import job.
|
576
|
+
# @return [String]
|
577
|
+
#
|
578
|
+
# @!attribute [rw] imported_model_name
|
579
|
+
# The name of the imported model.
|
580
|
+
# @return [String]
|
581
|
+
#
|
582
|
+
# @!attribute [rw] role_arn
|
583
|
+
# The Amazon Resource Name (ARN) of the model import job.
|
584
|
+
# @return [String]
|
585
|
+
#
|
586
|
+
# @!attribute [rw] model_data_source
|
587
|
+
# The data source for the imported model.
|
588
|
+
# @return [Types::ModelDataSource]
|
589
|
+
#
|
590
|
+
# @!attribute [rw] job_tags
|
591
|
+
# Tags to attach to this import job.
|
592
|
+
# @return [Array<Types::Tag>]
|
593
|
+
#
|
594
|
+
# @!attribute [rw] imported_model_tags
|
595
|
+
# Tags to attach to the imported model.
|
596
|
+
# @return [Array<Types::Tag>]
|
597
|
+
#
|
598
|
+
# @!attribute [rw] client_request_token
|
599
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
600
|
+
# completes no more than one time. If this token matches a previous
|
601
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
602
|
+
# error. For more information, see [Ensuring idempotency][1].
|
603
|
+
#
|
604
|
+
#
|
605
|
+
#
|
606
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
607
|
+
# @return [String]
|
608
|
+
#
|
609
|
+
# @!attribute [rw] vpc_config
|
610
|
+
# VPC configuration parameters for the private Virtual Private Cloud
|
611
|
+
# (VPC) that contains the resources you are using for the import job.
|
612
|
+
# @return [Types::VpcConfig]
|
613
|
+
#
|
614
|
+
# @!attribute [rw] imported_model_kms_key_id
|
615
|
+
# The imported model is encrypted at rest using this key.
|
616
|
+
# @return [String]
|
617
|
+
#
|
618
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelImportJobRequest AWS API Documentation
|
619
|
+
#
|
620
|
+
class CreateModelImportJobRequest < Struct.new(
|
621
|
+
:job_name,
|
622
|
+
:imported_model_name,
|
623
|
+
:role_arn,
|
624
|
+
:model_data_source,
|
625
|
+
:job_tags,
|
626
|
+
:imported_model_tags,
|
627
|
+
:client_request_token,
|
628
|
+
:vpc_config,
|
629
|
+
:imported_model_kms_key_id)
|
630
|
+
SENSITIVE = []
|
631
|
+
include Aws::Structure
|
632
|
+
end
|
633
|
+
|
634
|
+
# @!attribute [rw] job_arn
|
635
|
+
# The Amazon Resource Name (ARN) of the model import job.
|
636
|
+
# @return [String]
|
637
|
+
#
|
638
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelImportJobResponse AWS API Documentation
|
639
|
+
#
|
640
|
+
class CreateModelImportJobResponse < Struct.new(
|
641
|
+
:job_arn)
|
642
|
+
SENSITIVE = []
|
643
|
+
include Aws::Structure
|
644
|
+
end
|
645
|
+
|
499
646
|
# @!attribute [rw] job_name
|
500
647
|
# A name to give the batch inference job.
|
501
648
|
# @return [String]
|
@@ -765,6 +912,22 @@ module Aws::Bedrock
|
|
765
912
|
#
|
766
913
|
class DeleteGuardrailResponse < Aws::EmptyStructure; end
|
767
914
|
|
915
|
+
# @!attribute [rw] model_identifier
|
916
|
+
# Name of the imported model to delete.
|
917
|
+
# @return [String]
|
918
|
+
#
|
919
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteImportedModelRequest AWS API Documentation
|
920
|
+
#
|
921
|
+
class DeleteImportedModelRequest < Struct.new(
|
922
|
+
:model_identifier)
|
923
|
+
SENSITIVE = []
|
924
|
+
include Aws::Structure
|
925
|
+
end
|
926
|
+
|
927
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteImportedModelResponse AWS API Documentation
|
928
|
+
#
|
929
|
+
class DeleteImportedModelResponse < Aws::EmptyStructure; end
|
930
|
+
|
768
931
|
# @api private
|
769
932
|
#
|
770
933
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteModelInvocationLoggingConfigurationRequest AWS API Documentation
|
@@ -806,7 +969,7 @@ module Aws::Bedrock
|
|
806
969
|
#
|
807
970
|
#
|
808
971
|
#
|
809
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-
|
972
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
|
810
973
|
#
|
811
974
|
# @!attribute [rw] model_identifier
|
812
975
|
# The ARN of the Amazon Bedrock model specified.
|
@@ -865,7 +1028,7 @@ module Aws::Bedrock
|
|
865
1028
|
# Used to specify supported built-in prompt datasets. Valid values are
|
866
1029
|
# `Builtin.Bold`, `Builtin.BoolQ`, `Builtin.NaturalQuestions`,
|
867
1030
|
# `Builtin.Gigaword`, `Builtin.RealToxicityPrompts`,
|
868
|
-
# `Builtin.
|
1031
|
+
# `Builtin.TriviaQA`, `Builtin.T-Rex`,
|
869
1032
|
# `Builtin.WomensEcommerceClothingReviews` and `Builtin.Wikitext2`.
|
870
1033
|
# @return [String]
|
871
1034
|
#
|
@@ -1509,6 +1672,131 @@ module Aws::Bedrock
|
|
1509
1672
|
include Aws::Structure
|
1510
1673
|
end
|
1511
1674
|
|
1675
|
+
# @!attribute [rw] model_identifier
|
1676
|
+
# Name or Amazon Resource Name (ARN) of the imported model.
|
1677
|
+
# @return [String]
|
1678
|
+
#
|
1679
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModelRequest AWS API Documentation
|
1680
|
+
#
|
1681
|
+
class GetImportedModelRequest < Struct.new(
|
1682
|
+
:model_identifier)
|
1683
|
+
SENSITIVE = []
|
1684
|
+
include Aws::Structure
|
1685
|
+
end
|
1686
|
+
|
1687
|
+
# @!attribute [rw] model_arn
|
1688
|
+
# The Amazon Resource Name (ARN) associated with this imported model.
|
1689
|
+
# @return [String]
|
1690
|
+
#
|
1691
|
+
# @!attribute [rw] model_name
|
1692
|
+
# The name of the imported model.
|
1693
|
+
# @return [String]
|
1694
|
+
#
|
1695
|
+
# @!attribute [rw] job_name
|
1696
|
+
# Job name associated with the imported model.
|
1697
|
+
# @return [String]
|
1698
|
+
#
|
1699
|
+
# @!attribute [rw] job_arn
|
1700
|
+
# Job Amazon Resource Name (ARN) associated with the imported model.
|
1701
|
+
# @return [String]
|
1702
|
+
#
|
1703
|
+
# @!attribute [rw] model_data_source
|
1704
|
+
# The data source for this imported model.
|
1705
|
+
# @return [Types::ModelDataSource]
|
1706
|
+
#
|
1707
|
+
# @!attribute [rw] creation_time
|
1708
|
+
# Creation time of the imported model.
|
1709
|
+
# @return [Time]
|
1710
|
+
#
|
1711
|
+
# @!attribute [rw] model_architecture
|
1712
|
+
# The architecture of the imported model.
|
1713
|
+
# @return [String]
|
1714
|
+
#
|
1715
|
+
# @!attribute [rw] model_kms_key_arn
|
1716
|
+
# The imported model is encrypted at rest using this key.
|
1717
|
+
# @return [String]
|
1718
|
+
#
|
1719
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModelResponse AWS API Documentation
|
1720
|
+
#
|
1721
|
+
class GetImportedModelResponse < Struct.new(
|
1722
|
+
:model_arn,
|
1723
|
+
:model_name,
|
1724
|
+
:job_name,
|
1725
|
+
:job_arn,
|
1726
|
+
:model_data_source,
|
1727
|
+
:creation_time,
|
1728
|
+
:model_architecture,
|
1729
|
+
:model_kms_key_arn)
|
1730
|
+
SENSITIVE = []
|
1731
|
+
include Aws::Structure
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
# @!attribute [rw] inference_profile_identifier
|
1735
|
+
# The unique identifier of the inference profile.
|
1736
|
+
# @return [String]
|
1737
|
+
#
|
1738
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetInferenceProfileRequest AWS API Documentation
|
1739
|
+
#
|
1740
|
+
class GetInferenceProfileRequest < Struct.new(
|
1741
|
+
:inference_profile_identifier)
|
1742
|
+
SENSITIVE = []
|
1743
|
+
include Aws::Structure
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
# @!attribute [rw] inference_profile_name
|
1747
|
+
# The name of the inference profile.
|
1748
|
+
# @return [String]
|
1749
|
+
#
|
1750
|
+
# @!attribute [rw] models
|
1751
|
+
# A list of information about each model in the inference profile.
|
1752
|
+
# @return [Array<Types::InferenceProfileModel>]
|
1753
|
+
#
|
1754
|
+
# @!attribute [rw] description
|
1755
|
+
# The description of the inference profile.
|
1756
|
+
# @return [String]
|
1757
|
+
#
|
1758
|
+
# @!attribute [rw] created_at
|
1759
|
+
# The time at which the inference profile was created.
|
1760
|
+
# @return [Time]
|
1761
|
+
#
|
1762
|
+
# @!attribute [rw] updated_at
|
1763
|
+
# The time at which the inference profile was last updated.
|
1764
|
+
# @return [Time]
|
1765
|
+
#
|
1766
|
+
# @!attribute [rw] inference_profile_arn
|
1767
|
+
# The Amazon Resource Name (ARN) of the inference profile.
|
1768
|
+
# @return [String]
|
1769
|
+
#
|
1770
|
+
# @!attribute [rw] inference_profile_id
|
1771
|
+
# The unique identifier of the inference profile.
|
1772
|
+
# @return [String]
|
1773
|
+
#
|
1774
|
+
# @!attribute [rw] status
|
1775
|
+
# The status of the inference profile. `ACTIVE` means that the
|
1776
|
+
# inference profile is available to use.
|
1777
|
+
# @return [String]
|
1778
|
+
#
|
1779
|
+
# @!attribute [rw] type
|
1780
|
+
# The type of the inference profile. `SYSTEM_DEFINED` means that the
|
1781
|
+
# inference profile is defined by Amazon Bedrock.
|
1782
|
+
# @return [String]
|
1783
|
+
#
|
1784
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetInferenceProfileResponse AWS API Documentation
|
1785
|
+
#
|
1786
|
+
class GetInferenceProfileResponse < Struct.new(
|
1787
|
+
:inference_profile_name,
|
1788
|
+
:models,
|
1789
|
+
:description,
|
1790
|
+
:created_at,
|
1791
|
+
:updated_at,
|
1792
|
+
:inference_profile_arn,
|
1793
|
+
:inference_profile_id,
|
1794
|
+
:status,
|
1795
|
+
:type)
|
1796
|
+
SENSITIVE = []
|
1797
|
+
include Aws::Structure
|
1798
|
+
end
|
1799
|
+
|
1512
1800
|
# @!attribute [rw] job_arn
|
1513
1801
|
# The Amazon Resource Name (ARN) of the model copy job.
|
1514
1802
|
# @return [String]
|
@@ -1719,6 +2007,95 @@ module Aws::Bedrock
|
|
1719
2007
|
include Aws::Structure
|
1720
2008
|
end
|
1721
2009
|
|
2010
|
+
# @!attribute [rw] job_identifier
|
2011
|
+
# The identifier of the import job.
|
2012
|
+
# @return [String]
|
2013
|
+
#
|
2014
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJobRequest AWS API Documentation
|
2015
|
+
#
|
2016
|
+
class GetModelImportJobRequest < Struct.new(
|
2017
|
+
:job_identifier)
|
2018
|
+
SENSITIVE = []
|
2019
|
+
include Aws::Structure
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
# @!attribute [rw] job_arn
|
2023
|
+
# The Amazon Resource Name (ARN) of the import job.
|
2024
|
+
# @return [String]
|
2025
|
+
#
|
2026
|
+
# @!attribute [rw] job_name
|
2027
|
+
# The name of the import job.
|
2028
|
+
# @return [String]
|
2029
|
+
#
|
2030
|
+
# @!attribute [rw] imported_model_name
|
2031
|
+
# The name of the imported model.
|
2032
|
+
# @return [String]
|
2033
|
+
#
|
2034
|
+
# @!attribute [rw] imported_model_arn
|
2035
|
+
# The Amazon Resource Name (ARN) of the imported model.
|
2036
|
+
# @return [String]
|
2037
|
+
#
|
2038
|
+
# @!attribute [rw] role_arn
|
2039
|
+
# The Amazon Resource Name (ARN) of the IAM role associated with this
|
2040
|
+
# job.
|
2041
|
+
# @return [String]
|
2042
|
+
#
|
2043
|
+
# @!attribute [rw] model_data_source
|
2044
|
+
# The data source for the imported model.
|
2045
|
+
# @return [Types::ModelDataSource]
|
2046
|
+
#
|
2047
|
+
# @!attribute [rw] status
|
2048
|
+
# The status of the job. A successful job transitions from in-progress
|
2049
|
+
# to completed when the imported model is ready to use. If the job
|
2050
|
+
# failed, the failure message contains information about why the job
|
2051
|
+
# failed.
|
2052
|
+
# @return [String]
|
2053
|
+
#
|
2054
|
+
# @!attribute [rw] failure_message
|
2055
|
+
# Information about why the import job failed.
|
2056
|
+
# @return [String]
|
2057
|
+
#
|
2058
|
+
# @!attribute [rw] creation_time
|
2059
|
+
# The time the resource was created.
|
2060
|
+
# @return [Time]
|
2061
|
+
#
|
2062
|
+
# @!attribute [rw] last_modified_time
|
2063
|
+
# Time the resource was last modified.
|
2064
|
+
# @return [Time]
|
2065
|
+
#
|
2066
|
+
# @!attribute [rw] end_time
|
2067
|
+
# Time that the resource transitioned to terminal state.
|
2068
|
+
# @return [Time]
|
2069
|
+
#
|
2070
|
+
# @!attribute [rw] vpc_config
|
2071
|
+
# The Virtual Private Cloud (VPC) configuration of the import model
|
2072
|
+
# job.
|
2073
|
+
# @return [Types::VpcConfig]
|
2074
|
+
#
|
2075
|
+
# @!attribute [rw] imported_model_kms_key_arn
|
2076
|
+
# The imported model is encrypted at rest using this key.
|
2077
|
+
# @return [String]
|
2078
|
+
#
|
2079
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJobResponse AWS API Documentation
|
2080
|
+
#
|
2081
|
+
class GetModelImportJobResponse < Struct.new(
|
2082
|
+
:job_arn,
|
2083
|
+
:job_name,
|
2084
|
+
:imported_model_name,
|
2085
|
+
:imported_model_arn,
|
2086
|
+
:role_arn,
|
2087
|
+
:model_data_source,
|
2088
|
+
:status,
|
2089
|
+
:failure_message,
|
2090
|
+
:creation_time,
|
2091
|
+
:last_modified_time,
|
2092
|
+
:end_time,
|
2093
|
+
:vpc_config,
|
2094
|
+
:imported_model_kms_key_arn)
|
2095
|
+
SENSITIVE = []
|
2096
|
+
include Aws::Structure
|
2097
|
+
end
|
2098
|
+
|
1722
2099
|
# @!attribute [rw] job_identifier
|
1723
2100
|
# The Amazon Resource Name (ARN) of the batch inference job.
|
1724
2101
|
# @return [String]
|
@@ -2916,21 +3293,115 @@ module Aws::Bedrock
|
|
2916
3293
|
include Aws::Structure
|
2917
3294
|
end
|
2918
3295
|
|
2919
|
-
#
|
3296
|
+
# Information about tne imported model.
|
2920
3297
|
#
|
2921
|
-
# @!attribute [rw]
|
3298
|
+
# @!attribute [rw] model_arn
|
3299
|
+
# The Amazon Resource Name (ARN) of the imported model.
|
2922
3300
|
# @return [String]
|
2923
3301
|
#
|
2924
|
-
#
|
3302
|
+
# @!attribute [rw] model_name
|
3303
|
+
# Name of the imported model.
|
3304
|
+
# @return [String]
|
2925
3305
|
#
|
2926
|
-
|
2927
|
-
|
2928
|
-
|
2929
|
-
|
2930
|
-
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
3306
|
+
# @!attribute [rw] creation_time
|
3307
|
+
# Creation time of the imported model.
|
3308
|
+
# @return [Time]
|
3309
|
+
#
|
3310
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ImportedModelSummary AWS API Documentation
|
3311
|
+
#
|
3312
|
+
class ImportedModelSummary < Struct.new(
|
3313
|
+
:model_arn,
|
3314
|
+
:model_name,
|
3315
|
+
:creation_time)
|
3316
|
+
SENSITIVE = []
|
3317
|
+
include Aws::Structure
|
3318
|
+
end
|
3319
|
+
|
3320
|
+
# Contains information about a model.
|
3321
|
+
#
|
3322
|
+
# @!attribute [rw] model_arn
|
3323
|
+
# The Amazon Resource Name (ARN) of the model.
|
3324
|
+
# @return [String]
|
3325
|
+
#
|
3326
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InferenceProfileModel AWS API Documentation
|
3327
|
+
#
|
3328
|
+
class InferenceProfileModel < Struct.new(
|
3329
|
+
:model_arn)
|
3330
|
+
SENSITIVE = []
|
3331
|
+
include Aws::Structure
|
3332
|
+
end
|
3333
|
+
|
3334
|
+
# Contains information about an inference profile.
|
3335
|
+
#
|
3336
|
+
# @!attribute [rw] inference_profile_name
|
3337
|
+
# The name of the inference profile.
|
3338
|
+
# @return [String]
|
3339
|
+
#
|
3340
|
+
# @!attribute [rw] models
|
3341
|
+
# A list of information about each model in the inference profile.
|
3342
|
+
# @return [Array<Types::InferenceProfileModel>]
|
3343
|
+
#
|
3344
|
+
# @!attribute [rw] description
|
3345
|
+
# The description of the inference profile.
|
3346
|
+
# @return [String]
|
3347
|
+
#
|
3348
|
+
# @!attribute [rw] created_at
|
3349
|
+
# The time at which the inference profile was created.
|
3350
|
+
# @return [Time]
|
3351
|
+
#
|
3352
|
+
# @!attribute [rw] updated_at
|
3353
|
+
# The time at which the inference profile was last updated.
|
3354
|
+
# @return [Time]
|
3355
|
+
#
|
3356
|
+
# @!attribute [rw] inference_profile_arn
|
3357
|
+
# The Amazon Resource Name (ARN) of the inference profile.
|
3358
|
+
# @return [String]
|
3359
|
+
#
|
3360
|
+
# @!attribute [rw] inference_profile_id
|
3361
|
+
# The unique identifier of the inference profile.
|
3362
|
+
# @return [String]
|
3363
|
+
#
|
3364
|
+
# @!attribute [rw] status
|
3365
|
+
# The status of the inference profile. `ACTIVE` means that the
|
3366
|
+
# inference profile is available to use.
|
3367
|
+
# @return [String]
|
3368
|
+
#
|
3369
|
+
# @!attribute [rw] type
|
3370
|
+
# The type of the inference profile. `SYSTEM_DEFINED` means that the
|
3371
|
+
# inference profile is defined by Amazon Bedrock.
|
3372
|
+
# @return [String]
|
3373
|
+
#
|
3374
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InferenceProfileSummary AWS API Documentation
|
3375
|
+
#
|
3376
|
+
class InferenceProfileSummary < Struct.new(
|
3377
|
+
:inference_profile_name,
|
3378
|
+
:models,
|
3379
|
+
:description,
|
3380
|
+
:created_at,
|
3381
|
+
:updated_at,
|
3382
|
+
:inference_profile_arn,
|
3383
|
+
:inference_profile_id,
|
3384
|
+
:status,
|
3385
|
+
:type)
|
3386
|
+
SENSITIVE = []
|
3387
|
+
include Aws::Structure
|
3388
|
+
end
|
3389
|
+
|
3390
|
+
# An internal server error occurred. Retry your request.
|
3391
|
+
#
|
3392
|
+
# @!attribute [rw] message
|
3393
|
+
# @return [String]
|
3394
|
+
#
|
3395
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InternalServerException AWS API Documentation
|
3396
|
+
#
|
3397
|
+
class InternalServerException < Struct.new(
|
3398
|
+
:message)
|
3399
|
+
SENSITIVE = []
|
3400
|
+
include Aws::Structure
|
3401
|
+
end
|
3402
|
+
|
3403
|
+
# @!attribute [rw] creation_time_before
|
3404
|
+
# Return custom models created before the specified time.
|
2934
3405
|
# @return [Time]
|
2935
3406
|
#
|
2936
3407
|
# @!attribute [rw] creation_time_after
|
@@ -3180,6 +3651,119 @@ module Aws::Bedrock
|
|
3180
3651
|
include Aws::Structure
|
3181
3652
|
end
|
3182
3653
|
|
3654
|
+
# @!attribute [rw] creation_time_before
|
3655
|
+
# Return imported models that created before the specified time.
|
3656
|
+
# @return [Time]
|
3657
|
+
#
|
3658
|
+
# @!attribute [rw] creation_time_after
|
3659
|
+
# Return imported models that were created after the specified time.
|
3660
|
+
# @return [Time]
|
3661
|
+
#
|
3662
|
+
# @!attribute [rw] name_contains
|
3663
|
+
# Return imported models only if the model name contains these
|
3664
|
+
# characters.
|
3665
|
+
# @return [String]
|
3666
|
+
#
|
3667
|
+
# @!attribute [rw] max_results
|
3668
|
+
# The maximum number of results to return in the response. If the
|
3669
|
+
# total number of results is greater than this value, use the token
|
3670
|
+
# returned in the response in the `nextToken` field when making
|
3671
|
+
# another request to return the next batch of results.
|
3672
|
+
# @return [Integer]
|
3673
|
+
#
|
3674
|
+
# @!attribute [rw] next_token
|
3675
|
+
# If the total number of results is greater than the `maxResults`
|
3676
|
+
# value provided in the request, enter the token returned in the
|
3677
|
+
# `nextToken` field in the response in this field to return the next
|
3678
|
+
# batch of results.
|
3679
|
+
# @return [String]
|
3680
|
+
#
|
3681
|
+
# @!attribute [rw] sort_by
|
3682
|
+
# The field to sort by in the returned list of imported models.
|
3683
|
+
# @return [String]
|
3684
|
+
#
|
3685
|
+
# @!attribute [rw] sort_order
|
3686
|
+
# Specifies whetehr to sort the results in ascending or descending
|
3687
|
+
# order.
|
3688
|
+
# @return [String]
|
3689
|
+
#
|
3690
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListImportedModelsRequest AWS API Documentation
|
3691
|
+
#
|
3692
|
+
class ListImportedModelsRequest < Struct.new(
|
3693
|
+
:creation_time_before,
|
3694
|
+
:creation_time_after,
|
3695
|
+
:name_contains,
|
3696
|
+
:max_results,
|
3697
|
+
:next_token,
|
3698
|
+
:sort_by,
|
3699
|
+
:sort_order)
|
3700
|
+
SENSITIVE = []
|
3701
|
+
include Aws::Structure
|
3702
|
+
end
|
3703
|
+
|
3704
|
+
# @!attribute [rw] next_token
|
3705
|
+
# If the total number of results is greater than the `maxResults`
|
3706
|
+
# value provided in the request, use this token when making another
|
3707
|
+
# request in the `nextToken` field to return the next batch of
|
3708
|
+
# results.
|
3709
|
+
# @return [String]
|
3710
|
+
#
|
3711
|
+
# @!attribute [rw] model_summaries
|
3712
|
+
# Model summaries.
|
3713
|
+
# @return [Array<Types::ImportedModelSummary>]
|
3714
|
+
#
|
3715
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListImportedModelsResponse AWS API Documentation
|
3716
|
+
#
|
3717
|
+
class ListImportedModelsResponse < Struct.new(
|
3718
|
+
:next_token,
|
3719
|
+
:model_summaries)
|
3720
|
+
SENSITIVE = []
|
3721
|
+
include Aws::Structure
|
3722
|
+
end
|
3723
|
+
|
3724
|
+
# @!attribute [rw] max_results
|
3725
|
+
# The maximum number of results to return in the response. If the
|
3726
|
+
# total number of results is greater than this value, use the token
|
3727
|
+
# returned in the response in the `nextToken` field when making
|
3728
|
+
# another request to return the next batch of results.
|
3729
|
+
# @return [Integer]
|
3730
|
+
#
|
3731
|
+
# @!attribute [rw] next_token
|
3732
|
+
# If the total number of results is greater than the `maxResults`
|
3733
|
+
# value provided in the request, enter the token returned in the
|
3734
|
+
# `nextToken` field in the response in this field to return the next
|
3735
|
+
# batch of results.
|
3736
|
+
# @return [String]
|
3737
|
+
#
|
3738
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListInferenceProfilesRequest AWS API Documentation
|
3739
|
+
#
|
3740
|
+
class ListInferenceProfilesRequest < Struct.new(
|
3741
|
+
:max_results,
|
3742
|
+
:next_token)
|
3743
|
+
SENSITIVE = []
|
3744
|
+
include Aws::Structure
|
3745
|
+
end
|
3746
|
+
|
3747
|
+
# @!attribute [rw] inference_profile_summaries
|
3748
|
+
# A list of information about each inference profile that you can use.
|
3749
|
+
# @return [Array<Types::InferenceProfileSummary>]
|
3750
|
+
#
|
3751
|
+
# @!attribute [rw] next_token
|
3752
|
+
# If the total number of results is greater than the `maxResults`
|
3753
|
+
# value provided in the request, use this token when making another
|
3754
|
+
# request in the `nextToken` field to return the next batch of
|
3755
|
+
# results.
|
3756
|
+
# @return [String]
|
3757
|
+
#
|
3758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListInferenceProfilesResponse AWS API Documentation
|
3759
|
+
#
|
3760
|
+
class ListInferenceProfilesResponse < Struct.new(
|
3761
|
+
:inference_profile_summaries,
|
3762
|
+
:next_token)
|
3763
|
+
SENSITIVE = []
|
3764
|
+
include Aws::Structure
|
3765
|
+
end
|
3766
|
+
|
3183
3767
|
# @!attribute [rw] creation_time_after
|
3184
3768
|
# Filters for model copy jobs created after the specified time.
|
3185
3769
|
# @return [Time]
|
@@ -3342,6 +3926,80 @@ module Aws::Bedrock
|
|
3342
3926
|
include Aws::Structure
|
3343
3927
|
end
|
3344
3928
|
|
3929
|
+
# @!attribute [rw] creation_time_after
|
3930
|
+
# Return import jobs that were created after the specified time.
|
3931
|
+
# @return [Time]
|
3932
|
+
#
|
3933
|
+
# @!attribute [rw] creation_time_before
|
3934
|
+
# Return import jobs that were created before the specified time.
|
3935
|
+
# @return [Time]
|
3936
|
+
#
|
3937
|
+
# @!attribute [rw] status_equals
|
3938
|
+
# Return imported jobs with the specified status.
|
3939
|
+
# @return [String]
|
3940
|
+
#
|
3941
|
+
# @!attribute [rw] name_contains
|
3942
|
+
# Return imported jobs only if the job name contains these characters.
|
3943
|
+
# @return [String]
|
3944
|
+
#
|
3945
|
+
# @!attribute [rw] max_results
|
3946
|
+
# The maximum number of results to return in the response. If the
|
3947
|
+
# total number of results is greater than this value, use the token
|
3948
|
+
# returned in the response in the `nextToken` field when making
|
3949
|
+
# another request to return the next batch of results.
|
3950
|
+
# @return [Integer]
|
3951
|
+
#
|
3952
|
+
# @!attribute [rw] next_token
|
3953
|
+
# If the total number of results is greater than the `maxResults`
|
3954
|
+
# value provided in the request, enter the token returned in the
|
3955
|
+
# `nextToken` field in the response in this field to return the next
|
3956
|
+
# batch of results.
|
3957
|
+
# @return [String]
|
3958
|
+
#
|
3959
|
+
# @!attribute [rw] sort_by
|
3960
|
+
# The field to sort by in the returned list of imported jobs.
|
3961
|
+
# @return [String]
|
3962
|
+
#
|
3963
|
+
# @!attribute [rw] sort_order
|
3964
|
+
# Specifies whether to sort the results in ascending or descending
|
3965
|
+
# order.
|
3966
|
+
# @return [String]
|
3967
|
+
#
|
3968
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobsRequest AWS API Documentation
|
3969
|
+
#
|
3970
|
+
class ListModelImportJobsRequest < Struct.new(
|
3971
|
+
:creation_time_after,
|
3972
|
+
:creation_time_before,
|
3973
|
+
:status_equals,
|
3974
|
+
:name_contains,
|
3975
|
+
:max_results,
|
3976
|
+
:next_token,
|
3977
|
+
:sort_by,
|
3978
|
+
:sort_order)
|
3979
|
+
SENSITIVE = []
|
3980
|
+
include Aws::Structure
|
3981
|
+
end
|
3982
|
+
|
3983
|
+
# @!attribute [rw] next_token
|
3984
|
+
# If the total number of results is greater than the `maxResults`
|
3985
|
+
# value provided in the request, enter the token returned in the
|
3986
|
+
# `nextToken` field in the response in this field to return the next
|
3987
|
+
# batch of results.
|
3988
|
+
# @return [String]
|
3989
|
+
#
|
3990
|
+
# @!attribute [rw] model_import_job_summaries
|
3991
|
+
# Import job summaries.
|
3992
|
+
# @return [Array<Types::ModelImportJobSummary>]
|
3993
|
+
#
|
3994
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobsResponse AWS API Documentation
|
3995
|
+
#
|
3996
|
+
class ListModelImportJobsResponse < Struct.new(
|
3997
|
+
:next_token,
|
3998
|
+
:model_import_job_summaries)
|
3999
|
+
SENSITIVE = []
|
4000
|
+
include Aws::Structure
|
4001
|
+
end
|
4002
|
+
|
3345
4003
|
# @!attribute [rw] submit_time_after
|
3346
4004
|
# Specify a time to filter for batch inference jobs that were
|
3347
4005
|
# submitted after the time you specify.
|
@@ -3706,6 +4364,78 @@ module Aws::Bedrock
|
|
3706
4364
|
include Aws::Structure
|
3707
4365
|
end
|
3708
4366
|
|
4367
|
+
# Data source for the imported model.
|
4368
|
+
#
|
4369
|
+
# @note ModelDataSource is a union - when making an API calls you must set exactly one of the members.
|
4370
|
+
#
|
4371
|
+
# @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.
|
4372
|
+
#
|
4373
|
+
# @!attribute [rw] s3_data_source
|
4374
|
+
# The Amazon S3 data source of the imported model.
|
4375
|
+
# @return [Types::S3DataSource]
|
4376
|
+
#
|
4377
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelDataSource AWS API Documentation
|
4378
|
+
#
|
4379
|
+
class ModelDataSource < Struct.new(
|
4380
|
+
:s3_data_source,
|
4381
|
+
:unknown)
|
4382
|
+
SENSITIVE = []
|
4383
|
+
include Aws::Structure
|
4384
|
+
include Aws::Structure::Union
|
4385
|
+
|
4386
|
+
class S3DataSource < ModelDataSource; end
|
4387
|
+
class Unknown < ModelDataSource; end
|
4388
|
+
end
|
4389
|
+
|
4390
|
+
# Information about the import job.
|
4391
|
+
#
|
4392
|
+
# @!attribute [rw] job_arn
|
4393
|
+
# The Amazon Resource Name (ARN) of the import job.
|
4394
|
+
# @return [String]
|
4395
|
+
#
|
4396
|
+
# @!attribute [rw] job_name
|
4397
|
+
# The name of the import job.
|
4398
|
+
# @return [String]
|
4399
|
+
#
|
4400
|
+
# @!attribute [rw] status
|
4401
|
+
# The status of the imported job.
|
4402
|
+
# @return [String]
|
4403
|
+
#
|
4404
|
+
# @!attribute [rw] last_modified_time
|
4405
|
+
# The time when the import job was last modified.
|
4406
|
+
# @return [Time]
|
4407
|
+
#
|
4408
|
+
# @!attribute [rw] creation_time
|
4409
|
+
# The time import job was created.
|
4410
|
+
# @return [Time]
|
4411
|
+
#
|
4412
|
+
# @!attribute [rw] end_time
|
4413
|
+
# The time when import job ended.
|
4414
|
+
# @return [Time]
|
4415
|
+
#
|
4416
|
+
# @!attribute [rw] imported_model_arn
|
4417
|
+
# The Amazon resource Name (ARN) of the imported model.
|
4418
|
+
# @return [String]
|
4419
|
+
#
|
4420
|
+
# @!attribute [rw] imported_model_name
|
4421
|
+
# The name of the imported model.
|
4422
|
+
# @return [String]
|
4423
|
+
#
|
4424
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelImportJobSummary AWS API Documentation
|
4425
|
+
#
|
4426
|
+
class ModelImportJobSummary < Struct.new(
|
4427
|
+
:job_arn,
|
4428
|
+
:job_name,
|
4429
|
+
:status,
|
4430
|
+
:last_modified_time,
|
4431
|
+
:creation_time,
|
4432
|
+
:end_time,
|
4433
|
+
:imported_model_arn,
|
4434
|
+
:imported_model_name)
|
4435
|
+
SENSITIVE = []
|
4436
|
+
include Aws::Structure
|
4437
|
+
end
|
4438
|
+
|
3709
4439
|
# Details about the location of the input to the batch inference job.
|
3710
4440
|
#
|
3711
4441
|
# @note ModelInvocationJobInputDataConfig is a union - when making an API calls you must set exactly one of the members.
|
@@ -4037,6 +4767,20 @@ module Aws::Bedrock
|
|
4037
4767
|
include Aws::Structure
|
4038
4768
|
end
|
4039
4769
|
|
4770
|
+
# The Amazon S3 data source of the imported job.
|
4771
|
+
#
|
4772
|
+
# @!attribute [rw] s3_uri
|
4773
|
+
# The URI of the Amazon S3 data source.
|
4774
|
+
# @return [String]
|
4775
|
+
#
|
4776
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/S3DataSource AWS API Documentation
|
4777
|
+
#
|
4778
|
+
class S3DataSource < Struct.new(
|
4779
|
+
:s3_uri)
|
4780
|
+
SENSITIVE = []
|
4781
|
+
include Aws::Structure
|
4782
|
+
end
|
4783
|
+
|
4040
4784
|
# The number of requests exceeds the service quota. Resubmit your
|
4041
4785
|
# request later.
|
4042
4786
|
#
|