aws-sdk-bedrock 1.14.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,161 @@ 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
+
646
+ # @!attribute [rw] job_name
647
+ # A name to give the batch inference job.
648
+ # @return [String]
649
+ #
650
+ # @!attribute [rw] role_arn
651
+ # The Amazon Resource Name (ARN) of the service role with permissions
652
+ # to carry out and manage batch inference. You can use the console to
653
+ # create a default service role or follow the steps at [Create a
654
+ # service role for batch inference][1].
655
+ #
656
+ #
657
+ #
658
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html
659
+ # @return [String]
660
+ #
661
+ # @!attribute [rw] client_request_token
662
+ # A unique, case-sensitive identifier to ensure that the API request
663
+ # completes no more than one time. If this token matches a previous
664
+ # request, Amazon Bedrock ignores the request, but does not return an
665
+ # error. For more information, see [Ensuring idempotency][1].
666
+ #
667
+ # **A suitable default value is auto-generated.** You should normally
668
+ # not need to pass this option.
669
+ #
670
+ #
671
+ #
672
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
673
+ # @return [String]
674
+ #
675
+ # @!attribute [rw] model_id
676
+ # The unique identifier of the foundation model to use for the batch
677
+ # inference job.
678
+ # @return [String]
679
+ #
680
+ # @!attribute [rw] input_data_config
681
+ # Details about the location of the input to the batch inference job.
682
+ # @return [Types::ModelInvocationJobInputDataConfig]
683
+ #
684
+ # @!attribute [rw] output_data_config
685
+ # Details about the location of the output of the batch inference job.
686
+ # @return [Types::ModelInvocationJobOutputDataConfig]
687
+ #
688
+ # @!attribute [rw] timeout_duration_in_hours
689
+ # The number of hours after which to force the batch inference job to
690
+ # time out.
691
+ # @return [Integer]
692
+ #
693
+ # @!attribute [rw] tags
694
+ # Any tags to associate with the batch inference job. For more
695
+ # information, see [Tagging Amazon Bedrock resources][1].
696
+ #
697
+ #
698
+ #
699
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
700
+ # @return [Array<Types::Tag>]
701
+ #
702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelInvocationJobRequest AWS API Documentation
703
+ #
704
+ class CreateModelInvocationJobRequest < Struct.new(
705
+ :job_name,
706
+ :role_arn,
707
+ :client_request_token,
708
+ :model_id,
709
+ :input_data_config,
710
+ :output_data_config,
711
+ :timeout_duration_in_hours,
712
+ :tags)
713
+ SENSITIVE = []
714
+ include Aws::Structure
715
+ end
716
+
717
+ # @!attribute [rw] job_arn
718
+ # The Amazon Resource Name (ARN) of the batch inference job.
719
+ # @return [String]
720
+ #
721
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelInvocationJobResponse AWS API Documentation
722
+ #
723
+ class CreateModelInvocationJobResponse < Struct.new(
724
+ :job_arn)
725
+ SENSITIVE = []
726
+ include Aws::Structure
727
+ end
728
+
499
729
  # @!attribute [rw] client_request_token
500
730
  # A unique, case-sensitive identifier to ensure that the API request
501
731
  # completes no more than one time. If this token matches a previous
@@ -682,6 +912,22 @@ module Aws::Bedrock
682
912
  #
683
913
  class DeleteGuardrailResponse < Aws::EmptyStructure; end
684
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
+
685
931
  # @api private
686
932
  #
687
933
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteModelInvocationLoggingConfigurationRequest AWS API Documentation
@@ -723,7 +969,7 @@ module Aws::Bedrock
723
969
  #
724
970
  #
725
971
  #
726
- # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-prompt-datasets-custom.html
972
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
727
973
  #
728
974
  # @!attribute [rw] model_identifier
729
975
  # The ARN of the Amazon Bedrock model specified.
@@ -782,7 +1028,7 @@ module Aws::Bedrock
782
1028
  # Used to specify supported built-in prompt datasets. Valid values are
783
1029
  # `Builtin.Bold`, `Builtin.BoolQ`, `Builtin.NaturalQuestions`,
784
1030
  # `Builtin.Gigaword`, `Builtin.RealToxicityPrompts`,
785
- # `Builtin.TriviaQa`, `Builtin.T-Rex`,
1031
+ # `Builtin.TriviaQA`, `Builtin.T-Rex`,
786
1032
  # `Builtin.WomensEcommerceClothingReviews` and `Builtin.Wikitext2`.
787
1033
  # @return [String]
788
1034
  #
@@ -1426,6 +1672,65 @@ module Aws::Bedrock
1426
1672
  include Aws::Structure
1427
1673
  end
1428
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
+
1429
1734
  # @!attribute [rw] job_arn
1430
1735
  # The Amazon Resource Name (ARN) of the model copy job.
1431
1736
  # @return [String]
@@ -1636,77 +1941,272 @@ module Aws::Bedrock
1636
1941
  include Aws::Structure
1637
1942
  end
1638
1943
 
1639
- # @api private
1640
- #
1641
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfigurationRequest AWS API Documentation
1642
- #
1643
- class GetModelInvocationLoggingConfigurationRequest < Aws::EmptyStructure; end
1644
-
1645
- # @!attribute [rw] logging_config
1646
- # The current configuration values.
1647
- # @return [Types::LoggingConfig]
1648
- #
1649
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfigurationResponse AWS API Documentation
1650
- #
1651
- class GetModelInvocationLoggingConfigurationResponse < Struct.new(
1652
- :logging_config)
1653
- SENSITIVE = []
1654
- include Aws::Structure
1655
- end
1656
-
1657
- # @!attribute [rw] provisioned_model_id
1658
- # The Amazon Resource Name (ARN) or name of the Provisioned
1659
- # Throughput.
1944
+ # @!attribute [rw] job_identifier
1945
+ # The identifier of the import job.
1660
1946
  # @return [String]
1661
1947
  #
1662
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetProvisionedModelThroughputRequest AWS API Documentation
1948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJobRequest AWS API Documentation
1663
1949
  #
1664
- class GetProvisionedModelThroughputRequest < Struct.new(
1665
- :provisioned_model_id)
1950
+ class GetModelImportJobRequest < Struct.new(
1951
+ :job_identifier)
1666
1952
  SENSITIVE = []
1667
1953
  include Aws::Structure
1668
1954
  end
1669
1955
 
1670
- # @!attribute [rw] model_units
1671
- # The number of model units allocated to this Provisioned Throughput.
1672
- # @return [Integer]
1673
- #
1674
- # @!attribute [rw] desired_model_units
1675
- # The number of model units that was requested for this Provisioned
1676
- # Throughput.
1677
- # @return [Integer]
1678
- #
1679
- # @!attribute [rw] provisioned_model_name
1680
- # The name of the Provisioned Throughput.
1956
+ # @!attribute [rw] job_arn
1957
+ # The Amazon Resource Name (ARN) of the import job.
1681
1958
  # @return [String]
1682
1959
  #
1683
- # @!attribute [rw] provisioned_model_arn
1684
- # The Amazon Resource Name (ARN) of the Provisioned Throughput.
1960
+ # @!attribute [rw] job_name
1961
+ # The name of the import job.
1685
1962
  # @return [String]
1686
1963
  #
1687
- # @!attribute [rw] model_arn
1688
- # The Amazon Resource Name (ARN) of the model associated with this
1689
- # Provisioned Throughput.
1964
+ # @!attribute [rw] imported_model_name
1965
+ # The name of the imported model.
1690
1966
  # @return [String]
1691
1967
  #
1692
- # @!attribute [rw] desired_model_arn
1693
- # The Amazon Resource Name (ARN) of the model requested to be
1694
- # associated to this Provisioned Throughput. This value differs from
1695
- # the `modelArn` if updating hasn't completed.
1968
+ # @!attribute [rw] imported_model_arn
1969
+ # The Amazon Resource Name (ARN) of the imported model.
1696
1970
  # @return [String]
1697
1971
  #
1698
- # @!attribute [rw] foundation_model_arn
1699
- # The Amazon Resource Name (ARN) of the base model for which the
1700
- # Provisioned Throughput was created, or of the base model that the
1701
- # custom model for which the Provisioned Throughput was created was
1702
- # customized.
1972
+ # @!attribute [rw] role_arn
1973
+ # The Amazon Resource Name (ARN) of the IAM role associated with this
1974
+ # job.
1703
1975
  # @return [String]
1704
1976
  #
1705
- # @!attribute [rw] status
1706
- # The status of the Provisioned Throughput.
1707
- # @return [String]
1977
+ # @!attribute [rw] model_data_source
1978
+ # The data source for the imported model.
1979
+ # @return [Types::ModelDataSource]
1708
1980
  #
1709
- # @!attribute [rw] creation_time
1981
+ # @!attribute [rw] status
1982
+ # The status of the job. A successful job transitions from in-progress
1983
+ # to completed when the imported model is ready to use. If the job
1984
+ # failed, the failure message contains information about why the job
1985
+ # failed.
1986
+ # @return [String]
1987
+ #
1988
+ # @!attribute [rw] failure_message
1989
+ # Information about why the import job failed.
1990
+ # @return [String]
1991
+ #
1992
+ # @!attribute [rw] creation_time
1993
+ # The time the resource was created.
1994
+ # @return [Time]
1995
+ #
1996
+ # @!attribute [rw] last_modified_time
1997
+ # Time the resource was last modified.
1998
+ # @return [Time]
1999
+ #
2000
+ # @!attribute [rw] end_time
2001
+ # Time that the resource transitioned to terminal state.
2002
+ # @return [Time]
2003
+ #
2004
+ # @!attribute [rw] vpc_config
2005
+ # The Virtual Private Cloud (VPC) configuration of the import model
2006
+ # job.
2007
+ # @return [Types::VpcConfig]
2008
+ #
2009
+ # @!attribute [rw] imported_model_kms_key_arn
2010
+ # The imported model is encrypted at rest using this key.
2011
+ # @return [String]
2012
+ #
2013
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJobResponse AWS API Documentation
2014
+ #
2015
+ class GetModelImportJobResponse < Struct.new(
2016
+ :job_arn,
2017
+ :job_name,
2018
+ :imported_model_name,
2019
+ :imported_model_arn,
2020
+ :role_arn,
2021
+ :model_data_source,
2022
+ :status,
2023
+ :failure_message,
2024
+ :creation_time,
2025
+ :last_modified_time,
2026
+ :end_time,
2027
+ :vpc_config,
2028
+ :imported_model_kms_key_arn)
2029
+ SENSITIVE = []
2030
+ include Aws::Structure
2031
+ end
2032
+
2033
+ # @!attribute [rw] job_identifier
2034
+ # The Amazon Resource Name (ARN) of the batch inference job.
2035
+ # @return [String]
2036
+ #
2037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationJobRequest AWS API Documentation
2038
+ #
2039
+ class GetModelInvocationJobRequest < Struct.new(
2040
+ :job_identifier)
2041
+ SENSITIVE = []
2042
+ include Aws::Structure
2043
+ end
2044
+
2045
+ # @!attribute [rw] job_arn
2046
+ # The Amazon Resource Name (ARN) of the batch inference job.
2047
+ # @return [String]
2048
+ #
2049
+ # @!attribute [rw] job_name
2050
+ # The name of the batch inference job.
2051
+ # @return [String]
2052
+ #
2053
+ # @!attribute [rw] model_id
2054
+ # The unique identifier of the foundation model used for model
2055
+ # inference.
2056
+ # @return [String]
2057
+ #
2058
+ # @!attribute [rw] client_request_token
2059
+ # A unique, case-sensitive identifier to ensure that the API request
2060
+ # completes no more than one time. If this token matches a previous
2061
+ # request, Amazon Bedrock ignores the request, but does not return an
2062
+ # error. For more information, see [Ensuring idempotency][1].
2063
+ #
2064
+ #
2065
+ #
2066
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
2067
+ # @return [String]
2068
+ #
2069
+ # @!attribute [rw] role_arn
2070
+ # The Amazon Resource Name (ARN) of the service role with permissions
2071
+ # to carry out and manage batch inference. You can use the console to
2072
+ # create a default service role or follow the steps at [Create a
2073
+ # service role for batch inference][1].
2074
+ #
2075
+ #
2076
+ #
2077
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html
2078
+ # @return [String]
2079
+ #
2080
+ # @!attribute [rw] status
2081
+ # The status of the batch inference job.
2082
+ # @return [String]
2083
+ #
2084
+ # @!attribute [rw] message
2085
+ # If the batch inference job failed, this field contains a message
2086
+ # describing why the job failed.
2087
+ # @return [String]
2088
+ #
2089
+ # @!attribute [rw] submit_time
2090
+ # The time at which the batch inference job was submitted.
2091
+ # @return [Time]
2092
+ #
2093
+ # @!attribute [rw] last_modified_time
2094
+ # The time at which the batch inference job was last modified.
2095
+ # @return [Time]
2096
+ #
2097
+ # @!attribute [rw] end_time
2098
+ # The time at which the batch inference job ended.
2099
+ # @return [Time]
2100
+ #
2101
+ # @!attribute [rw] input_data_config
2102
+ # Details about the location of the input to the batch inference job.
2103
+ # @return [Types::ModelInvocationJobInputDataConfig]
2104
+ #
2105
+ # @!attribute [rw] output_data_config
2106
+ # Details about the location of the output of the batch inference job.
2107
+ # @return [Types::ModelInvocationJobOutputDataConfig]
2108
+ #
2109
+ # @!attribute [rw] timeout_duration_in_hours
2110
+ # The number of hours after which batch inference job was set to time
2111
+ # out.
2112
+ # @return [Integer]
2113
+ #
2114
+ # @!attribute [rw] job_expiration_time
2115
+ # The time at which the batch inference job times or timed out.
2116
+ # @return [Time]
2117
+ #
2118
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationJobResponse AWS API Documentation
2119
+ #
2120
+ class GetModelInvocationJobResponse < Struct.new(
2121
+ :job_arn,
2122
+ :job_name,
2123
+ :model_id,
2124
+ :client_request_token,
2125
+ :role_arn,
2126
+ :status,
2127
+ :message,
2128
+ :submit_time,
2129
+ :last_modified_time,
2130
+ :end_time,
2131
+ :input_data_config,
2132
+ :output_data_config,
2133
+ :timeout_duration_in_hours,
2134
+ :job_expiration_time)
2135
+ SENSITIVE = [:message]
2136
+ include Aws::Structure
2137
+ end
2138
+
2139
+ # @api private
2140
+ #
2141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfigurationRequest AWS API Documentation
2142
+ #
2143
+ class GetModelInvocationLoggingConfigurationRequest < Aws::EmptyStructure; end
2144
+
2145
+ # @!attribute [rw] logging_config
2146
+ # The current configuration values.
2147
+ # @return [Types::LoggingConfig]
2148
+ #
2149
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfigurationResponse AWS API Documentation
2150
+ #
2151
+ class GetModelInvocationLoggingConfigurationResponse < Struct.new(
2152
+ :logging_config)
2153
+ SENSITIVE = []
2154
+ include Aws::Structure
2155
+ end
2156
+
2157
+ # @!attribute [rw] provisioned_model_id
2158
+ # The Amazon Resource Name (ARN) or name of the Provisioned
2159
+ # Throughput.
2160
+ # @return [String]
2161
+ #
2162
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetProvisionedModelThroughputRequest AWS API Documentation
2163
+ #
2164
+ class GetProvisionedModelThroughputRequest < Struct.new(
2165
+ :provisioned_model_id)
2166
+ SENSITIVE = []
2167
+ include Aws::Structure
2168
+ end
2169
+
2170
+ # @!attribute [rw] model_units
2171
+ # The number of model units allocated to this Provisioned Throughput.
2172
+ # @return [Integer]
2173
+ #
2174
+ # @!attribute [rw] desired_model_units
2175
+ # The number of model units that was requested for this Provisioned
2176
+ # Throughput.
2177
+ # @return [Integer]
2178
+ #
2179
+ # @!attribute [rw] provisioned_model_name
2180
+ # The name of the Provisioned Throughput.
2181
+ # @return [String]
2182
+ #
2183
+ # @!attribute [rw] provisioned_model_arn
2184
+ # The Amazon Resource Name (ARN) of the Provisioned Throughput.
2185
+ # @return [String]
2186
+ #
2187
+ # @!attribute [rw] model_arn
2188
+ # The Amazon Resource Name (ARN) of the model associated with this
2189
+ # Provisioned Throughput.
2190
+ # @return [String]
2191
+ #
2192
+ # @!attribute [rw] desired_model_arn
2193
+ # The Amazon Resource Name (ARN) of the model requested to be
2194
+ # associated to this Provisioned Throughput. This value differs from
2195
+ # the `modelArn` if updating hasn't completed.
2196
+ # @return [String]
2197
+ #
2198
+ # @!attribute [rw] foundation_model_arn
2199
+ # The Amazon Resource Name (ARN) of the base model for which the
2200
+ # Provisioned Throughput was created, or of the base model that the
2201
+ # custom model for which the Provisioned Throughput was created was
2202
+ # customized.
2203
+ # @return [String]
2204
+ #
2205
+ # @!attribute [rw] status
2206
+ # The status of the Provisioned Throughput.
2207
+ # @return [String]
2208
+ #
2209
+ # @!attribute [rw] creation_time
1710
2210
  # The timestamp of the creation time for this Provisioned Throughput.
1711
2211
  # @return [Time]
1712
2212
  #
@@ -2727,6 +3227,30 @@ module Aws::Bedrock
2727
3227
  include Aws::Structure
2728
3228
  end
2729
3229
 
3230
+ # Information about tne imported model.
3231
+ #
3232
+ # @!attribute [rw] model_arn
3233
+ # The Amazon Resource Name (ARN) of the imported model.
3234
+ # @return [String]
3235
+ #
3236
+ # @!attribute [rw] model_name
3237
+ # Name of the imported model.
3238
+ # @return [String]
3239
+ #
3240
+ # @!attribute [rw] creation_time
3241
+ # Creation time of the imported model.
3242
+ # @return [Time]
3243
+ #
3244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ImportedModelSummary AWS API Documentation
3245
+ #
3246
+ class ImportedModelSummary < Struct.new(
3247
+ :model_arn,
3248
+ :model_name,
3249
+ :creation_time)
3250
+ SENSITIVE = []
3251
+ include Aws::Structure
3252
+ end
3253
+
2730
3254
  # An internal server error occurred. Retry your request.
2731
3255
  #
2732
3256
  # @!attribute [rw] message
@@ -2991,32 +3515,17 @@ module Aws::Bedrock
2991
3515
  include Aws::Structure
2992
3516
  end
2993
3517
 
2994
- # @!attribute [rw] creation_time_after
2995
- # Filters for model copy jobs created after the specified time.
2996
- # @return [Time]
2997
- #
2998
3518
  # @!attribute [rw] creation_time_before
2999
- # Filters for model copy jobs created before the specified time.
3519
+ # Return imported models that created before the specified time.
3000
3520
  # @return [Time]
3001
3521
  #
3002
- # @!attribute [rw] status_equals
3003
- # Filters for model copy jobs whose status matches the value that you
3004
- # specify.
3005
- # @return [String]
3006
- #
3007
- # @!attribute [rw] source_account_equals
3008
- # Filters for model copy jobs in which the account that the source
3009
- # model belongs to is equal to the value that you specify.
3010
- # @return [String]
3011
- #
3012
- # @!attribute [rw] source_model_arn_equals
3013
- # Filters for model copy jobs in which the Amazon Resource Name (ARN)
3014
- # of the source model to is equal to the value that you specify.
3015
- # @return [String]
3522
+ # @!attribute [rw] creation_time_after
3523
+ # Return imported models that were created after the specified time.
3524
+ # @return [Time]
3016
3525
  #
3017
- # @!attribute [rw] target_model_name_contains
3018
- # Filters for model copy jobs in which the name of the copied model
3019
- # contains the string that you specify.
3526
+ # @!attribute [rw] name_contains
3527
+ # Return imported models only if the model name contains these
3528
+ # characters.
3020
3529
  # @return [String]
3021
3530
  #
3022
3531
  # @!attribute [rw] max_results
@@ -3034,23 +3543,20 @@ module Aws::Bedrock
3034
3543
  # @return [String]
3035
3544
  #
3036
3545
  # @!attribute [rw] sort_by
3037
- # The field to sort by in the returned list of model copy jobs.
3546
+ # The field to sort by in the returned list of imported models.
3038
3547
  # @return [String]
3039
3548
  #
3040
3549
  # @!attribute [rw] sort_order
3041
- # Specifies whether to sort the results in ascending or descending
3550
+ # Specifies whetehr to sort the results in ascending or descending
3042
3551
  # order.
3043
3552
  # @return [String]
3044
3553
  #
3045
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCopyJobsRequest AWS API Documentation
3554
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListImportedModelsRequest AWS API Documentation
3046
3555
  #
3047
- class ListModelCopyJobsRequest < Struct.new(
3048
- :creation_time_after,
3556
+ class ListImportedModelsRequest < Struct.new(
3049
3557
  :creation_time_before,
3050
- :status_equals,
3051
- :source_account_equals,
3052
- :source_model_arn_equals,
3053
- :target_model_name_contains,
3558
+ :creation_time_after,
3559
+ :name_contains,
3054
3560
  :max_results,
3055
3561
  :next_token,
3056
3562
  :sort_by,
@@ -3066,34 +3572,122 @@ module Aws::Bedrock
3066
3572
  # results.
3067
3573
  # @return [String]
3068
3574
  #
3069
- # @!attribute [rw] model_copy_job_summaries
3070
- # A list of information about each model copy job.
3071
- # @return [Array<Types::ModelCopyJobSummary>]
3575
+ # @!attribute [rw] model_summaries
3576
+ # Model summaries.
3577
+ # @return [Array<Types::ImportedModelSummary>]
3072
3578
  #
3073
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCopyJobsResponse AWS API Documentation
3579
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListImportedModelsResponse AWS API Documentation
3074
3580
  #
3075
- class ListModelCopyJobsResponse < Struct.new(
3581
+ class ListImportedModelsResponse < Struct.new(
3076
3582
  :next_token,
3077
- :model_copy_job_summaries)
3583
+ :model_summaries)
3078
3584
  SENSITIVE = []
3079
3585
  include Aws::Structure
3080
3586
  end
3081
3587
 
3082
3588
  # @!attribute [rw] creation_time_after
3083
- # Return customization jobs created after the specified time.
3589
+ # Filters for model copy jobs created after the specified time.
3084
3590
  # @return [Time]
3085
3591
  #
3086
3592
  # @!attribute [rw] creation_time_before
3087
- # Return customization jobs created before the specified time.
3593
+ # Filters for model copy jobs created before the specified time.
3088
3594
  # @return [Time]
3089
3595
  #
3090
3596
  # @!attribute [rw] status_equals
3091
- # Return customization jobs with the specified status.
3597
+ # Filters for model copy jobs whose status matches the value that you
3598
+ # specify.
3092
3599
  # @return [String]
3093
3600
  #
3094
- # @!attribute [rw] name_contains
3095
- # Return customization jobs only if the job name contains these
3096
- # characters.
3601
+ # @!attribute [rw] source_account_equals
3602
+ # Filters for model copy jobs in which the account that the source
3603
+ # model belongs to is equal to the value that you specify.
3604
+ # @return [String]
3605
+ #
3606
+ # @!attribute [rw] source_model_arn_equals
3607
+ # Filters for model copy jobs in which the Amazon Resource Name (ARN)
3608
+ # of the source model to is equal to the value that you specify.
3609
+ # @return [String]
3610
+ #
3611
+ # @!attribute [rw] target_model_name_contains
3612
+ # Filters for model copy jobs in which the name of the copied model
3613
+ # contains the string that you specify.
3614
+ # @return [String]
3615
+ #
3616
+ # @!attribute [rw] max_results
3617
+ # The maximum number of results to return in the response. If the
3618
+ # total number of results is greater than this value, use the token
3619
+ # returned in the response in the `nextToken` field when making
3620
+ # another request to return the next batch of results.
3621
+ # @return [Integer]
3622
+ #
3623
+ # @!attribute [rw] next_token
3624
+ # If the total number of results is greater than the `maxResults`
3625
+ # value provided in the request, enter the token returned in the
3626
+ # `nextToken` field in the response in this field to return the next
3627
+ # batch of results.
3628
+ # @return [String]
3629
+ #
3630
+ # @!attribute [rw] sort_by
3631
+ # The field to sort by in the returned list of model copy jobs.
3632
+ # @return [String]
3633
+ #
3634
+ # @!attribute [rw] sort_order
3635
+ # Specifies whether to sort the results in ascending or descending
3636
+ # order.
3637
+ # @return [String]
3638
+ #
3639
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCopyJobsRequest AWS API Documentation
3640
+ #
3641
+ class ListModelCopyJobsRequest < Struct.new(
3642
+ :creation_time_after,
3643
+ :creation_time_before,
3644
+ :status_equals,
3645
+ :source_account_equals,
3646
+ :source_model_arn_equals,
3647
+ :target_model_name_contains,
3648
+ :max_results,
3649
+ :next_token,
3650
+ :sort_by,
3651
+ :sort_order)
3652
+ SENSITIVE = []
3653
+ include Aws::Structure
3654
+ end
3655
+
3656
+ # @!attribute [rw] next_token
3657
+ # If the total number of results is greater than the `maxResults`
3658
+ # value provided in the request, use this token when making another
3659
+ # request in the `nextToken` field to return the next batch of
3660
+ # results.
3661
+ # @return [String]
3662
+ #
3663
+ # @!attribute [rw] model_copy_job_summaries
3664
+ # A list of information about each model copy job.
3665
+ # @return [Array<Types::ModelCopyJobSummary>]
3666
+ #
3667
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCopyJobsResponse AWS API Documentation
3668
+ #
3669
+ class ListModelCopyJobsResponse < Struct.new(
3670
+ :next_token,
3671
+ :model_copy_job_summaries)
3672
+ SENSITIVE = []
3673
+ include Aws::Structure
3674
+ end
3675
+
3676
+ # @!attribute [rw] creation_time_after
3677
+ # Return customization jobs created after the specified time.
3678
+ # @return [Time]
3679
+ #
3680
+ # @!attribute [rw] creation_time_before
3681
+ # Return customization jobs created before the specified time.
3682
+ # @return [Time]
3683
+ #
3684
+ # @!attribute [rw] status_equals
3685
+ # Return customization jobs with the specified status.
3686
+ # @return [String]
3687
+ #
3688
+ # @!attribute [rw] name_contains
3689
+ # Return customization jobs only if the job name contains these
3690
+ # characters.
3097
3691
  # @return [String]
3098
3692
  #
3099
3693
  # @!attribute [rw] max_results
@@ -3153,6 +3747,159 @@ module Aws::Bedrock
3153
3747
  include Aws::Structure
3154
3748
  end
3155
3749
 
3750
+ # @!attribute [rw] creation_time_after
3751
+ # Return import jobs that were created after the specified time.
3752
+ # @return [Time]
3753
+ #
3754
+ # @!attribute [rw] creation_time_before
3755
+ # Return import jobs that were created before the specified time.
3756
+ # @return [Time]
3757
+ #
3758
+ # @!attribute [rw] status_equals
3759
+ # Return imported jobs with the specified status.
3760
+ # @return [String]
3761
+ #
3762
+ # @!attribute [rw] name_contains
3763
+ # Return imported jobs only if the job name contains these characters.
3764
+ # @return [String]
3765
+ #
3766
+ # @!attribute [rw] max_results
3767
+ # The maximum number of results to return in the response. If the
3768
+ # total number of results is greater than this value, use the token
3769
+ # returned in the response in the `nextToken` field when making
3770
+ # another request to return the next batch of results.
3771
+ # @return [Integer]
3772
+ #
3773
+ # @!attribute [rw] next_token
3774
+ # If the total number of results is greater than the `maxResults`
3775
+ # value provided in the request, enter the token returned in the
3776
+ # `nextToken` field in the response in this field to return the next
3777
+ # batch of results.
3778
+ # @return [String]
3779
+ #
3780
+ # @!attribute [rw] sort_by
3781
+ # The field to sort by in the returned list of imported jobs.
3782
+ # @return [String]
3783
+ #
3784
+ # @!attribute [rw] sort_order
3785
+ # Specifies whether to sort the results in ascending or descending
3786
+ # order.
3787
+ # @return [String]
3788
+ #
3789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobsRequest AWS API Documentation
3790
+ #
3791
+ class ListModelImportJobsRequest < Struct.new(
3792
+ :creation_time_after,
3793
+ :creation_time_before,
3794
+ :status_equals,
3795
+ :name_contains,
3796
+ :max_results,
3797
+ :next_token,
3798
+ :sort_by,
3799
+ :sort_order)
3800
+ SENSITIVE = []
3801
+ include Aws::Structure
3802
+ end
3803
+
3804
+ # @!attribute [rw] next_token
3805
+ # If the total number of results is greater than the `maxResults`
3806
+ # value provided in the request, enter the token returned in the
3807
+ # `nextToken` field in the response in this field to return the next
3808
+ # batch of results.
3809
+ # @return [String]
3810
+ #
3811
+ # @!attribute [rw] model_import_job_summaries
3812
+ # Import job summaries.
3813
+ # @return [Array<Types::ModelImportJobSummary>]
3814
+ #
3815
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobsResponse AWS API Documentation
3816
+ #
3817
+ class ListModelImportJobsResponse < Struct.new(
3818
+ :next_token,
3819
+ :model_import_job_summaries)
3820
+ SENSITIVE = []
3821
+ include Aws::Structure
3822
+ end
3823
+
3824
+ # @!attribute [rw] submit_time_after
3825
+ # Specify a time to filter for batch inference jobs that were
3826
+ # submitted after the time you specify.
3827
+ # @return [Time]
3828
+ #
3829
+ # @!attribute [rw] submit_time_before
3830
+ # Specify a time to filter for batch inference jobs that were
3831
+ # submitted before the time you specify.
3832
+ # @return [Time]
3833
+ #
3834
+ # @!attribute [rw] status_equals
3835
+ # Specify a status to filter for batch inference jobs whose statuses
3836
+ # match the string you specify.
3837
+ # @return [String]
3838
+ #
3839
+ # @!attribute [rw] name_contains
3840
+ # Specify a string to filter for batch inference jobs whose names
3841
+ # contain the string.
3842
+ # @return [String]
3843
+ #
3844
+ # @!attribute [rw] max_results
3845
+ # The maximum number of results to return. If there are more results
3846
+ # than the number that you specify, a `nextToken` value is returned.
3847
+ # Use the `nextToken` in a request to return the next batch of
3848
+ # results.
3849
+ # @return [Integer]
3850
+ #
3851
+ # @!attribute [rw] next_token
3852
+ # If there were more results than the value you specified in the
3853
+ # `maxResults` field in a previous `ListModelInvocationJobs` request,
3854
+ # the response would have returned a `nextToken` value. To see the
3855
+ # next batch of results, send the `nextToken` value in another
3856
+ # request.
3857
+ # @return [String]
3858
+ #
3859
+ # @!attribute [rw] sort_by
3860
+ # An attribute by which to sort the results.
3861
+ # @return [String]
3862
+ #
3863
+ # @!attribute [rw] sort_order
3864
+ # Specifies whether to sort the results by ascending or descending
3865
+ # order.
3866
+ # @return [String]
3867
+ #
3868
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelInvocationJobsRequest AWS API Documentation
3869
+ #
3870
+ class ListModelInvocationJobsRequest < Struct.new(
3871
+ :submit_time_after,
3872
+ :submit_time_before,
3873
+ :status_equals,
3874
+ :name_contains,
3875
+ :max_results,
3876
+ :next_token,
3877
+ :sort_by,
3878
+ :sort_order)
3879
+ SENSITIVE = []
3880
+ include Aws::Structure
3881
+ end
3882
+
3883
+ # @!attribute [rw] next_token
3884
+ # If there are more results than can fit in the response, a
3885
+ # `nextToken` is returned. Use the `nextToken` in a request to return
3886
+ # the next batch of results.
3887
+ # @return [String]
3888
+ #
3889
+ # @!attribute [rw] invocation_job_summaries
3890
+ # A list of items, each of which contains a summary about a batch
3891
+ # inference job.
3892
+ # @return [Array<Types::ModelInvocationJobSummary>]
3893
+ #
3894
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelInvocationJobsResponse AWS API Documentation
3895
+ #
3896
+ class ListModelInvocationJobsResponse < Struct.new(
3897
+ :next_token,
3898
+ :invocation_job_summaries)
3899
+ SENSITIVE = []
3900
+ include Aws::Structure
3901
+ end
3902
+
3156
3903
  # @!attribute [rw] creation_time_after
3157
3904
  # A filter that returns Provisioned Throughputs created after the
3158
3905
  # specified time.
@@ -3438,6 +4185,259 @@ module Aws::Bedrock
3438
4185
  include Aws::Structure
3439
4186
  end
3440
4187
 
4188
+ # Data source for the imported model.
4189
+ #
4190
+ # @note ModelDataSource is a union - when making an API calls you must set exactly one of the members.
4191
+ #
4192
+ # @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.
4193
+ #
4194
+ # @!attribute [rw] s3_data_source
4195
+ # The Amazon S3 data source of the imported model.
4196
+ # @return [Types::S3DataSource]
4197
+ #
4198
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelDataSource AWS API Documentation
4199
+ #
4200
+ class ModelDataSource < Struct.new(
4201
+ :s3_data_source,
4202
+ :unknown)
4203
+ SENSITIVE = []
4204
+ include Aws::Structure
4205
+ include Aws::Structure::Union
4206
+
4207
+ class S3DataSource < ModelDataSource; end
4208
+ class Unknown < ModelDataSource; end
4209
+ end
4210
+
4211
+ # Information about the import job.
4212
+ #
4213
+ # @!attribute [rw] job_arn
4214
+ # The Amazon Resource Name (ARN) of the import job.
4215
+ # @return [String]
4216
+ #
4217
+ # @!attribute [rw] job_name
4218
+ # The name of the import job.
4219
+ # @return [String]
4220
+ #
4221
+ # @!attribute [rw] status
4222
+ # The status of the imported job.
4223
+ # @return [String]
4224
+ #
4225
+ # @!attribute [rw] last_modified_time
4226
+ # The time when the import job was last modified.
4227
+ # @return [Time]
4228
+ #
4229
+ # @!attribute [rw] creation_time
4230
+ # The time import job was created.
4231
+ # @return [Time]
4232
+ #
4233
+ # @!attribute [rw] end_time
4234
+ # The time when import job ended.
4235
+ # @return [Time]
4236
+ #
4237
+ # @!attribute [rw] imported_model_arn
4238
+ # The Amazon resource Name (ARN) of the imported model.
4239
+ # @return [String]
4240
+ #
4241
+ # @!attribute [rw] imported_model_name
4242
+ # The name of the imported model.
4243
+ # @return [String]
4244
+ #
4245
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelImportJobSummary AWS API Documentation
4246
+ #
4247
+ class ModelImportJobSummary < Struct.new(
4248
+ :job_arn,
4249
+ :job_name,
4250
+ :status,
4251
+ :last_modified_time,
4252
+ :creation_time,
4253
+ :end_time,
4254
+ :imported_model_arn,
4255
+ :imported_model_name)
4256
+ SENSITIVE = []
4257
+ include Aws::Structure
4258
+ end
4259
+
4260
+ # Details about the location of the input to the batch inference job.
4261
+ #
4262
+ # @note ModelInvocationJobInputDataConfig is a union - when making an API calls you must set exactly one of the members.
4263
+ #
4264
+ # @note ModelInvocationJobInputDataConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ModelInvocationJobInputDataConfig corresponding to the set member.
4265
+ #
4266
+ # @!attribute [rw] s3_input_data_config
4267
+ # Contains the configuration of the S3 location of the input data.
4268
+ # @return [Types::ModelInvocationJobS3InputDataConfig]
4269
+ #
4270
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobInputDataConfig AWS API Documentation
4271
+ #
4272
+ class ModelInvocationJobInputDataConfig < Struct.new(
4273
+ :s3_input_data_config,
4274
+ :unknown)
4275
+ SENSITIVE = []
4276
+ include Aws::Structure
4277
+ include Aws::Structure::Union
4278
+
4279
+ class S3InputDataConfig < ModelInvocationJobInputDataConfig; end
4280
+ class Unknown < ModelInvocationJobInputDataConfig; end
4281
+ end
4282
+
4283
+ # Contains the configuration of the S3 location of the output data.
4284
+ #
4285
+ # @note ModelInvocationJobOutputDataConfig is a union - when making an API calls you must set exactly one of the members.
4286
+ #
4287
+ # @note ModelInvocationJobOutputDataConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ModelInvocationJobOutputDataConfig corresponding to the set member.
4288
+ #
4289
+ # @!attribute [rw] s3_output_data_config
4290
+ # Contains the configuration of the S3 location of the output data.
4291
+ # @return [Types::ModelInvocationJobS3OutputDataConfig]
4292
+ #
4293
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobOutputDataConfig AWS API Documentation
4294
+ #
4295
+ class ModelInvocationJobOutputDataConfig < Struct.new(
4296
+ :s3_output_data_config,
4297
+ :unknown)
4298
+ SENSITIVE = []
4299
+ include Aws::Structure
4300
+ include Aws::Structure::Union
4301
+
4302
+ class S3OutputDataConfig < ModelInvocationJobOutputDataConfig; end
4303
+ class Unknown < ModelInvocationJobOutputDataConfig; end
4304
+ end
4305
+
4306
+ # Contains the configuration of the S3 location of the output data.
4307
+ #
4308
+ # @!attribute [rw] s3_input_format
4309
+ # The format of the input data.
4310
+ # @return [String]
4311
+ #
4312
+ # @!attribute [rw] s3_uri
4313
+ # The S3 location of the input data.
4314
+ # @return [String]
4315
+ #
4316
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobS3InputDataConfig AWS API Documentation
4317
+ #
4318
+ class ModelInvocationJobS3InputDataConfig < Struct.new(
4319
+ :s3_input_format,
4320
+ :s3_uri)
4321
+ SENSITIVE = []
4322
+ include Aws::Structure
4323
+ end
4324
+
4325
+ # Contains the configuration of the S3 location of the output data.
4326
+ #
4327
+ # @!attribute [rw] s3_uri
4328
+ # The S3 location of the output data.
4329
+ # @return [String]
4330
+ #
4331
+ # @!attribute [rw] s3_encryption_key_id
4332
+ # The unique identifier of the key that encrypts the S3 location of
4333
+ # the output data.
4334
+ # @return [String]
4335
+ #
4336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobS3OutputDataConfig AWS API Documentation
4337
+ #
4338
+ class ModelInvocationJobS3OutputDataConfig < Struct.new(
4339
+ :s3_uri,
4340
+ :s3_encryption_key_id)
4341
+ SENSITIVE = []
4342
+ include Aws::Structure
4343
+ end
4344
+
4345
+ # A summary of a batch inference job.
4346
+ #
4347
+ # @!attribute [rw] job_arn
4348
+ # The Amazon Resource Name (ARN) of the batch inference job.
4349
+ # @return [String]
4350
+ #
4351
+ # @!attribute [rw] job_name
4352
+ # The name of the batch inference job.
4353
+ # @return [String]
4354
+ #
4355
+ # @!attribute [rw] model_id
4356
+ # The unique identifier of the foundation model used for model
4357
+ # inference.
4358
+ # @return [String]
4359
+ #
4360
+ # @!attribute [rw] client_request_token
4361
+ # A unique, case-sensitive identifier to ensure that the API request
4362
+ # completes no more than one time. If this token matches a previous
4363
+ # request, Amazon Bedrock ignores the request, but does not return an
4364
+ # error. For more information, see [Ensuring idempotency][1].
4365
+ #
4366
+ #
4367
+ #
4368
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
4369
+ # @return [String]
4370
+ #
4371
+ # @!attribute [rw] role_arn
4372
+ # The Amazon Resource Name (ARN) of the service role with permissions
4373
+ # to carry out and manage batch inference. You can use the console to
4374
+ # create a default service role or follow the steps at [Create a
4375
+ # service role for batch inference][1].
4376
+ #
4377
+ #
4378
+ #
4379
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html
4380
+ # @return [String]
4381
+ #
4382
+ # @!attribute [rw] status
4383
+ # The status of the batch inference job.
4384
+ # @return [String]
4385
+ #
4386
+ # @!attribute [rw] message
4387
+ # If the batch inference job failed, this field contains a message
4388
+ # describing why the job failed.
4389
+ # @return [String]
4390
+ #
4391
+ # @!attribute [rw] submit_time
4392
+ # The time at which the batch inference job was submitted.
4393
+ # @return [Time]
4394
+ #
4395
+ # @!attribute [rw] last_modified_time
4396
+ # The time at which the batch inference job was last modified.
4397
+ # @return [Time]
4398
+ #
4399
+ # @!attribute [rw] end_time
4400
+ # The time at which the batch inference job ended.
4401
+ # @return [Time]
4402
+ #
4403
+ # @!attribute [rw] input_data_config
4404
+ # Details about the location of the input to the batch inference job.
4405
+ # @return [Types::ModelInvocationJobInputDataConfig]
4406
+ #
4407
+ # @!attribute [rw] output_data_config
4408
+ # Details about the location of the output of the batch inference job.
4409
+ # @return [Types::ModelInvocationJobOutputDataConfig]
4410
+ #
4411
+ # @!attribute [rw] timeout_duration_in_hours
4412
+ # The number of hours after which the batch inference job was set to
4413
+ # time out.
4414
+ # @return [Integer]
4415
+ #
4416
+ # @!attribute [rw] job_expiration_time
4417
+ # The time at which the batch inference job times or timed out.
4418
+ # @return [Time]
4419
+ #
4420
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelInvocationJobSummary AWS API Documentation
4421
+ #
4422
+ class ModelInvocationJobSummary < Struct.new(
4423
+ :job_arn,
4424
+ :job_name,
4425
+ :model_id,
4426
+ :client_request_token,
4427
+ :role_arn,
4428
+ :status,
4429
+ :message,
4430
+ :submit_time,
4431
+ :last_modified_time,
4432
+ :end_time,
4433
+ :input_data_config,
4434
+ :output_data_config,
4435
+ :timeout_duration_in_hours,
4436
+ :job_expiration_time)
4437
+ SENSITIVE = [:message]
4438
+ include Aws::Structure
4439
+ end
4440
+
3441
4441
  # S3 Location of the output data.
3442
4442
  #
3443
4443
  # @!attribute [rw] s3_uri
@@ -3588,6 +4588,20 @@ module Aws::Bedrock
3588
4588
  include Aws::Structure
3589
4589
  end
3590
4590
 
4591
+ # The Amazon S3 data source of the imported job.
4592
+ #
4593
+ # @!attribute [rw] s3_uri
4594
+ # The URI of the Amazon S3 data source.
4595
+ # @return [String]
4596
+ #
4597
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/S3DataSource AWS API Documentation
4598
+ #
4599
+ class S3DataSource < Struct.new(
4600
+ :s3_uri)
4601
+ SENSITIVE = []
4602
+ include Aws::Structure
4603
+ end
4604
+
3591
4605
  # The number of requests exceeds the service quota. Resubmit your
3592
4606
  # request later.
3593
4607
  #
@@ -3634,6 +4648,22 @@ module Aws::Bedrock
3634
4648
  #
3635
4649
  class StopModelCustomizationJobResponse < Aws::EmptyStructure; end
3636
4650
 
4651
+ # @!attribute [rw] job_identifier
4652
+ # The Amazon Resource Name (ARN) of the batch inference job to stop.
4653
+ # @return [String]
4654
+ #
4655
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopModelInvocationJobRequest AWS API Documentation
4656
+ #
4657
+ class StopModelInvocationJobRequest < Struct.new(
4658
+ :job_identifier)
4659
+ SENSITIVE = []
4660
+ include Aws::Structure
4661
+ end
4662
+
4663
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopModelInvocationJobResponse AWS API Documentation
4664
+ #
4665
+ class StopModelInvocationJobResponse < Aws::EmptyStructure; end
4666
+
3637
4667
  # Definition of the key/value pair for a tag.
3638
4668
  #
3639
4669
  # @!attribute [rw] key