aws-sdk-codebuild 1.44.0 → 1.45.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.
@@ -111,6 +111,77 @@ module Aws::CodeBuild
111
111
  include Aws::Structure
112
112
  end
113
113
 
114
+ # @note When making an API call, you may pass BatchGetReportGroupsInput
115
+ # data as a hash:
116
+ #
117
+ # {
118
+ # report_group_arns: ["NonEmptyString"], # required
119
+ # }
120
+ #
121
+ # @!attribute [rw] report_group_arns
122
+ # An array of report group ARNs that identify the report groups to
123
+ # return.
124
+ # @return [Array<String>]
125
+ #
126
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetReportGroupsInput AWS API Documentation
127
+ #
128
+ class BatchGetReportGroupsInput < Struct.new(
129
+ :report_group_arns)
130
+ include Aws::Structure
131
+ end
132
+
133
+ # @!attribute [rw] report_groups
134
+ # The array of report groups returned by `BatchGetReportGroups`.
135
+ # @return [Array<Types::ReportGroup>]
136
+ #
137
+ # @!attribute [rw] report_groups_not_found
138
+ # An array of ARNs passed to `BatchGetReportGroups` that are not
139
+ # associated with a `ReportGroup`.
140
+ # @return [Array<String>]
141
+ #
142
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetReportGroupsOutput AWS API Documentation
143
+ #
144
+ class BatchGetReportGroupsOutput < Struct.new(
145
+ :report_groups,
146
+ :report_groups_not_found)
147
+ include Aws::Structure
148
+ end
149
+
150
+ # @note When making an API call, you may pass BatchGetReportsInput
151
+ # data as a hash:
152
+ #
153
+ # {
154
+ # report_arns: ["NonEmptyString"], # required
155
+ # }
156
+ #
157
+ # @!attribute [rw] report_arns
158
+ # An array of ARNs that identify the `Report` objects to return.
159
+ # @return [Array<String>]
160
+ #
161
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetReportsInput AWS API Documentation
162
+ #
163
+ class BatchGetReportsInput < Struct.new(
164
+ :report_arns)
165
+ include Aws::Structure
166
+ end
167
+
168
+ # @!attribute [rw] reports
169
+ # The array of `Report` objects returned by `BatchGetReports`.
170
+ # @return [Array<Types::Report>]
171
+ #
172
+ # @!attribute [rw] reports_not_found
173
+ # An array of ARNs passed to `BatchGetReportGroups` that are not
174
+ # associated with a `Report`.
175
+ # @return [Array<String>]
176
+ #
177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetReportsOutput AWS API Documentation
178
+ #
179
+ class BatchGetReportsOutput < Struct.new(
180
+ :reports,
181
+ :reports_not_found)
182
+ include Aws::Structure
183
+ end
184
+
114
185
  # Information about a build.
115
186
  #
116
187
  # @!attribute [rw] id
@@ -203,7 +274,7 @@ module Aws::CodeBuild
203
274
  # An array of `ProjectSourceVersion` objects. Each
204
275
  # `ProjectSourceVersion` must be one of:
205
276
  #
206
- # * For AWS CodeCommit: the commit ID to use.
277
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
207
278
  #
208
279
  # * For GitHub: the commit ID, pull request ID, branch name, or tag
209
280
  # name that corresponds to the version of the source code you want
@@ -303,6 +374,10 @@ module Aws::CodeBuild
303
374
  # A list of exported environment variables for this build.
304
375
  # @return [Array<Types::ExportedEnvironmentVariable>]
305
376
  #
377
+ # @!attribute [rw] report_arns
378
+ # An array of the ARNs associated with this build's reports.
379
+ # @return [Array<String>]
380
+ #
306
381
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Build AWS API Documentation
307
382
  #
308
383
  class Build < Struct.new(
@@ -333,7 +408,8 @@ module Aws::CodeBuild
333
408
  :vpc_config,
334
409
  :network_interface,
335
410
  :encryption_key,
336
- :exported_environment_variables)
411
+ :exported_environment_variables,
412
+ :report_arns)
337
413
  include Aws::Structure
338
414
  end
339
415
 
@@ -695,7 +771,7 @@ module Aws::CodeBuild
695
771
  # specified, the latest version is used. If specified, it must be one
696
772
  # of:
697
773
  #
698
- # * For AWS CodeCommit: the commit ID to use.
774
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
699
775
  #
700
776
  # * For GitHub: the commit ID, pull request ID, branch name, or tag
701
777
  # name that corresponds to the version of the source code you want
@@ -838,6 +914,57 @@ module Aws::CodeBuild
838
914
  include Aws::Structure
839
915
  end
840
916
 
917
+ # @note When making an API call, you may pass CreateReportGroupInput
918
+ # data as a hash:
919
+ #
920
+ # {
921
+ # name: "ReportGroupName", # required
922
+ # type: "TEST", # required, accepts TEST
923
+ # export_config: { # required
924
+ # export_config_type: "S3", # accepts S3, NO_EXPORT
925
+ # s3_destination: {
926
+ # bucket: "NonEmptyString",
927
+ # path: "String",
928
+ # packaging: "ZIP", # accepts ZIP, NONE
929
+ # encryption_key: "NonEmptyString",
930
+ # encryption_disabled: false,
931
+ # },
932
+ # },
933
+ # }
934
+ #
935
+ # @!attribute [rw] name
936
+ # The name of the report group.
937
+ # @return [String]
938
+ #
939
+ # @!attribute [rw] type
940
+ # The type of report group.
941
+ # @return [String]
942
+ #
943
+ # @!attribute [rw] export_config
944
+ # A `ReportExportConfig` object that contains information about where
945
+ # the report group test results are exported.
946
+ # @return [Types::ReportExportConfig]
947
+ #
948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateReportGroupInput AWS API Documentation
949
+ #
950
+ class CreateReportGroupInput < Struct.new(
951
+ :name,
952
+ :type,
953
+ :export_config)
954
+ include Aws::Structure
955
+ end
956
+
957
+ # @!attribute [rw] report_group
958
+ # Information about the report group that was created.
959
+ # @return [Types::ReportGroup]
960
+ #
961
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateReportGroupOutput AWS API Documentation
962
+ #
963
+ class CreateReportGroupOutput < Struct.new(
964
+ :report_group)
965
+ include Aws::Structure
966
+ end
967
+
841
968
  # @note When making an API call, you may pass CreateWebhookInput
842
969
  # data as a hash:
843
970
  #
@@ -924,6 +1051,50 @@ module Aws::CodeBuild
924
1051
  #
925
1052
  class DeleteProjectOutput < Aws::EmptyStructure; end
926
1053
 
1054
+ # @note When making an API call, you may pass DeleteReportGroupInput
1055
+ # data as a hash:
1056
+ #
1057
+ # {
1058
+ # arn: "NonEmptyString", # required
1059
+ # }
1060
+ #
1061
+ # @!attribute [rw] arn
1062
+ # The ARN of the report group to delete.
1063
+ # @return [String]
1064
+ #
1065
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportGroupInput AWS API Documentation
1066
+ #
1067
+ class DeleteReportGroupInput < Struct.new(
1068
+ :arn)
1069
+ include Aws::Structure
1070
+ end
1071
+
1072
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportGroupOutput AWS API Documentation
1073
+ #
1074
+ class DeleteReportGroupOutput < Aws::EmptyStructure; end
1075
+
1076
+ # @note When making an API call, you may pass DeleteReportInput
1077
+ # data as a hash:
1078
+ #
1079
+ # {
1080
+ # arn: "NonEmptyString", # required
1081
+ # }
1082
+ #
1083
+ # @!attribute [rw] arn
1084
+ # The ARN of the report to delete.
1085
+ # @return [String]
1086
+ #
1087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportInput AWS API Documentation
1088
+ #
1089
+ class DeleteReportInput < Struct.new(
1090
+ :arn)
1091
+ include Aws::Structure
1092
+ end
1093
+
1094
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportOutput AWS API Documentation
1095
+ #
1096
+ class DeleteReportOutput < Aws::EmptyStructure; end
1097
+
927
1098
  # @note When making an API call, you may pass DeleteSourceCredentialsInput
928
1099
  # data as a hash:
929
1100
  #
@@ -975,6 +1146,74 @@ module Aws::CodeBuild
975
1146
  #
976
1147
  class DeleteWebhookOutput < Aws::EmptyStructure; end
977
1148
 
1149
+ # @note When making an API call, you may pass DescribeTestCasesInput
1150
+ # data as a hash:
1151
+ #
1152
+ # {
1153
+ # report_arn: "String", # required
1154
+ # next_token: "String",
1155
+ # max_results: 1,
1156
+ # filter: {
1157
+ # status: "String",
1158
+ # },
1159
+ # }
1160
+ #
1161
+ # @!attribute [rw] report_arn
1162
+ # The ARN of the report for which test cases are returned.
1163
+ # @return [String]
1164
+ #
1165
+ # @!attribute [rw] next_token
1166
+ # During a previous call, the maximum number of items that can be
1167
+ # returned is the value specified in `maxResults`. If there more items
1168
+ # in the list, then a unique string called a *nextToken* is returned.
1169
+ # To get the next batch of items in the list, call this operation
1170
+ # again, adding the next token to the call. To get all of the items in
1171
+ # the list, keep calling this operation with each subsequent next
1172
+ # token that is returned, until no more next tokens are returned.
1173
+ # @return [String]
1174
+ #
1175
+ # @!attribute [rw] max_results
1176
+ # The maximum number of paginated test cases returned per response.
1177
+ # Use `nextToken` to iterate pages in the list of returned `TestCase`
1178
+ # objects. The default value is 100.
1179
+ # @return [Integer]
1180
+ #
1181
+ # @!attribute [rw] filter
1182
+ # A `TestCaseFilter` object used to filter the returned reports.
1183
+ # @return [Types::TestCaseFilter]
1184
+ #
1185
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DescribeTestCasesInput AWS API Documentation
1186
+ #
1187
+ class DescribeTestCasesInput < Struct.new(
1188
+ :report_arn,
1189
+ :next_token,
1190
+ :max_results,
1191
+ :filter)
1192
+ include Aws::Structure
1193
+ end
1194
+
1195
+ # @!attribute [rw] next_token
1196
+ # During a previous call, the maximum number of items that can be
1197
+ # returned is the value specified in `maxResults`. If there more items
1198
+ # in the list, then a unique string called a *nextToken* is returned.
1199
+ # To get the next batch of items in the list, call this operation
1200
+ # again, adding the next token to the call. To get all of the items in
1201
+ # the list, keep calling this operation with each subsequent next
1202
+ # token that is returned, until no more next tokens are returned.
1203
+ # @return [String]
1204
+ #
1205
+ # @!attribute [rw] test_cases
1206
+ # The returned list of test cases.
1207
+ # @return [Array<Types::TestCase>]
1208
+ #
1209
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DescribeTestCasesOutput AWS API Documentation
1210
+ #
1211
+ class DescribeTestCasesOutput < Struct.new(
1212
+ :next_token,
1213
+ :test_cases)
1214
+ include Aws::Structure
1215
+ end
1216
+
978
1217
  # Information about a Docker image that is managed by AWS CodeBuild.
979
1218
  #
980
1219
  # @!attribute [rw] name
@@ -1069,7 +1308,7 @@ module Aws::CodeBuild
1069
1308
  # * `PARAMETER_STORE`\: An environment variable stored in Amazon EC2
1070
1309
  # Systems Manager Parameter Store.
1071
1310
  #
1072
- # * `PLAINTEXT`\: An environment variable in plaintext format.
1311
+ # * `PLAINTEXT`\: An environment variable in plain text format.
1073
1312
  #
1074
1313
  # * `SECRETS_MANAGER`\: An environment variable stored in AWS Secrets
1075
1314
  # Manager.
@@ -1422,6 +1661,233 @@ module Aws::CodeBuild
1422
1661
  include Aws::Structure
1423
1662
  end
1424
1663
 
1664
+ # @note When making an API call, you may pass ListReportGroupsInput
1665
+ # data as a hash:
1666
+ #
1667
+ # {
1668
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
1669
+ # sort_by: "NAME", # accepts NAME, CREATED_TIME, LAST_MODIFIED_TIME
1670
+ # next_token: "String",
1671
+ # max_results: 1,
1672
+ # }
1673
+ #
1674
+ # @!attribute [rw] sort_order
1675
+ # Used to specify the order to sort the list of returned report
1676
+ # groups. Valid values are `ASCENDING` and `DESCENDING`.
1677
+ # @return [String]
1678
+ #
1679
+ # @!attribute [rw] sort_by
1680
+ # The criterion to be used to list build report groups. Valid values
1681
+ # include:
1682
+ #
1683
+ # * `CREATED_TIME`\: List based on when each report group was created.
1684
+ #
1685
+ # * `LAST_MODIFIED_TIME`\: List based on when each report group was
1686
+ # last changed.
1687
+ #
1688
+ # * `NAME`\: List based on each report group's name.
1689
+ # @return [String]
1690
+ #
1691
+ # @!attribute [rw] next_token
1692
+ # During a previous call, the maximum number of items that can be
1693
+ # returned is the value specified in `maxResults`. If there more items
1694
+ # in the list, then a unique string called a *nextToken* is returned.
1695
+ # To get the next batch of items in the list, call this operation
1696
+ # again, adding the next token to the call. To get all of the items in
1697
+ # the list, keep calling this operation with each subsequent next
1698
+ # token that is returned, until no more next tokens are returned.
1699
+ # @return [String]
1700
+ #
1701
+ # @!attribute [rw] max_results
1702
+ # The maximum number of paginated report groups returned per response.
1703
+ # Use `nextToken` to iterate pages in the list of returned
1704
+ # `ReportGroup` objects. The default value is 100.
1705
+ # @return [Integer]
1706
+ #
1707
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroupsInput AWS API Documentation
1708
+ #
1709
+ class ListReportGroupsInput < Struct.new(
1710
+ :sort_order,
1711
+ :sort_by,
1712
+ :next_token,
1713
+ :max_results)
1714
+ include Aws::Structure
1715
+ end
1716
+
1717
+ # @!attribute [rw] next_token
1718
+ # During a previous call, the maximum number of items that can be
1719
+ # returned is the value specified in `maxResults`. If there more items
1720
+ # in the list, then a unique string called a *nextToken* is returned.
1721
+ # To get the next batch of items in the list, call this operation
1722
+ # again, adding the next token to the call. To get all of the items in
1723
+ # the list, keep calling this operation with each subsequent next
1724
+ # token that is returned, until no more next tokens are returned.
1725
+ # @return [String]
1726
+ #
1727
+ # @!attribute [rw] report_groups
1728
+ # The list of ARNs for the report groups in the current AWS account.
1729
+ # @return [Array<String>]
1730
+ #
1731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroupsOutput AWS API Documentation
1732
+ #
1733
+ class ListReportGroupsOutput < Struct.new(
1734
+ :next_token,
1735
+ :report_groups)
1736
+ include Aws::Structure
1737
+ end
1738
+
1739
+ # @note When making an API call, you may pass ListReportsForReportGroupInput
1740
+ # data as a hash:
1741
+ #
1742
+ # {
1743
+ # report_group_arn: "String", # required
1744
+ # next_token: "String",
1745
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
1746
+ # max_results: 1,
1747
+ # filter: {
1748
+ # status: "GENERATING", # accepts GENERATING, SUCCEEDED, FAILED, INCOMPLETE, DELETING
1749
+ # },
1750
+ # }
1751
+ #
1752
+ # @!attribute [rw] report_group_arn
1753
+ # The ARN of the report group for which you want to return report
1754
+ # ARNs.
1755
+ # @return [String]
1756
+ #
1757
+ # @!attribute [rw] next_token
1758
+ # During a previous call, the maximum number of items that can be
1759
+ # returned is the value specified in `maxResults`. If there more items
1760
+ # in the list, then a unique string called a *nextToken* is returned.
1761
+ # To get the next batch of items in the list, call this operation
1762
+ # again, adding the next token to the call. To get all of the items in
1763
+ # the list, keep calling this operation with each subsequent next
1764
+ # token that is returned, until no more next tokens are returned.
1765
+ # @return [String]
1766
+ #
1767
+ # @!attribute [rw] sort_order
1768
+ # Use to specify whether the results are returned in ascending or
1769
+ # descending order.
1770
+ # @return [String]
1771
+ #
1772
+ # @!attribute [rw] max_results
1773
+ # The maximum number of paginated reports in this report group
1774
+ # returned per response. Use `nextToken` to iterate pages in the list
1775
+ # of returned `Report` objects. The default value is 100.
1776
+ # @return [Integer]
1777
+ #
1778
+ # @!attribute [rw] filter
1779
+ # A `ReportFilter` object used to filter the returned reports.
1780
+ # @return [Types::ReportFilter]
1781
+ #
1782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportsForReportGroupInput AWS API Documentation
1783
+ #
1784
+ class ListReportsForReportGroupInput < Struct.new(
1785
+ :report_group_arn,
1786
+ :next_token,
1787
+ :sort_order,
1788
+ :max_results,
1789
+ :filter)
1790
+ include Aws::Structure
1791
+ end
1792
+
1793
+ # @!attribute [rw] next_token
1794
+ # During a previous call, the maximum number of items that can be
1795
+ # returned is the value specified in `maxResults`. If there more items
1796
+ # in the list, then a unique string called a *nextToken* is returned.
1797
+ # To get the next batch of items in the list, call this operation
1798
+ # again, adding the next token to the call. To get all of the items in
1799
+ # the list, keep calling this operation with each subsequent next
1800
+ # token that is returned, until no more next tokens are returned.
1801
+ # @return [String]
1802
+ #
1803
+ # @!attribute [rw] reports
1804
+ # The list of returned report group ARNs.
1805
+ # @return [Array<String>]
1806
+ #
1807
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportsForReportGroupOutput AWS API Documentation
1808
+ #
1809
+ class ListReportsForReportGroupOutput < Struct.new(
1810
+ :next_token,
1811
+ :reports)
1812
+ include Aws::Structure
1813
+ end
1814
+
1815
+ # @note When making an API call, you may pass ListReportsInput
1816
+ # data as a hash:
1817
+ #
1818
+ # {
1819
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
1820
+ # next_token: "String",
1821
+ # max_results: 1,
1822
+ # filter: {
1823
+ # status: "GENERATING", # accepts GENERATING, SUCCEEDED, FAILED, INCOMPLETE, DELETING
1824
+ # },
1825
+ # }
1826
+ #
1827
+ # @!attribute [rw] sort_order
1828
+ # Specifies the sort order for the list of returned reports. Valid
1829
+ # values are:
1830
+ #
1831
+ # * `ASCENDING`\: return reports in chronological order based on their
1832
+ # creation date.
1833
+ #
1834
+ # * `DESCENDING`\: return reports in the reverse chronological order
1835
+ # based on their creation date.
1836
+ # @return [String]
1837
+ #
1838
+ # @!attribute [rw] next_token
1839
+ # During a previous call, the maximum number of items that can be
1840
+ # returned is the value specified in `maxResults`. If there more items
1841
+ # in the list, then a unique string called a *nextToken* is returned.
1842
+ # To get the next batch of items in the list, call this operation
1843
+ # again, adding the next token to the call. To get all of the items in
1844
+ # the list, keep calling this operation with each subsequent next
1845
+ # token that is returned, until no more next tokens are returned.
1846
+ # @return [String]
1847
+ #
1848
+ # @!attribute [rw] max_results
1849
+ # The maximum number of paginated reports returned per response. Use
1850
+ # `nextToken` to iterate pages in the list of returned `Report`
1851
+ # objects. The default value is 100.
1852
+ # @return [Integer]
1853
+ #
1854
+ # @!attribute [rw] filter
1855
+ # A `ReportFilter` object used to filter the returned reports.
1856
+ # @return [Types::ReportFilter]
1857
+ #
1858
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportsInput AWS API Documentation
1859
+ #
1860
+ class ListReportsInput < Struct.new(
1861
+ :sort_order,
1862
+ :next_token,
1863
+ :max_results,
1864
+ :filter)
1865
+ include Aws::Structure
1866
+ end
1867
+
1868
+ # @!attribute [rw] next_token
1869
+ # During a previous call, the maximum number of items that can be
1870
+ # returned is the value specified in `maxResults`. If there more items
1871
+ # in the list, then a unique string called a *nextToken* is returned.
1872
+ # To get the next batch of items in the list, call this operation
1873
+ # again, adding the next token to the call. To get all of the items in
1874
+ # the list, keep calling this operation with each subsequent next
1875
+ # token that is returned, until no more next tokens are returned.
1876
+ # @return [String]
1877
+ #
1878
+ # @!attribute [rw] reports
1879
+ # The list of returned ARNs for the reports in the current AWS
1880
+ # account.
1881
+ # @return [Array<String>]
1882
+ #
1883
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportsOutput AWS API Documentation
1884
+ #
1885
+ class ListReportsOutput < Struct.new(
1886
+ :next_token,
1887
+ :reports)
1888
+ include Aws::Structure
1889
+ end
1890
+
1425
1891
  # @api private
1426
1892
  #
1427
1893
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSourceCredentialsInput AWS API Documentation
@@ -1605,7 +2071,7 @@ module Aws::CodeBuild
1605
2071
  # specified, the latest version is used. If specified, it must be one
1606
2072
  # of:
1607
2073
  #
1608
- # * For AWS CodeCommit: the commit ID to use.
2074
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
1609
2075
  #
1610
2076
  # * For GitHub: the commit ID, pull request ID, branch name, or tag
1611
2077
  # name that corresponds to the version of the source code you want
@@ -2017,9 +2483,9 @@ module Aws::CodeBuild
2017
2483
  # * Symlinks are used to reference cached directories.
2018
2484
  #
2019
2485
  # * Cached directories are linked to your build before it downloads
2020
- # its project sources. Cached items are overriden if a source item
2021
- # has the same name. Directories are specified using cache paths
2022
- # in the buildspec file.
2486
+ # its project sources. Cached items are overridden if a source
2487
+ # item has the same name. Directories are specified using cache
2488
+ # paths in the buildspec file.
2023
2489
  # @return [Array<String>]
2024
2490
  #
2025
2491
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectCache AWS API Documentation
@@ -2376,7 +2842,7 @@ module Aws::CodeBuild
2376
2842
  # The source version for the corresponding source identifier. If
2377
2843
  # specified, must be one of:
2378
2844
  #
2379
- # * For AWS CodeCommit: the commit ID to use.
2845
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
2380
2846
  #
2381
2847
  # * For GitHub: the commit ID, pull request ID, branch name, or tag
2382
2848
  # name that corresponds to the version of the source code you want
@@ -2456,6 +2922,180 @@ module Aws::CodeBuild
2456
2922
  include Aws::Structure
2457
2923
  end
2458
2924
 
2925
+ # Information about the results from running a series of test cases
2926
+ # during the run of a build project. The test cases are specified in the
2927
+ # buildspec for the build project using one or more paths to the test
2928
+ # case files. You can specify any type of tests you want, such as unit
2929
+ # tests, integration tests, and functional tests.
2930
+ #
2931
+ # @!attribute [rw] arn
2932
+ # The ARN of the report run.
2933
+ # @return [String]
2934
+ #
2935
+ # @!attribute [rw] type
2936
+ # The type of the report that was run.
2937
+ # @return [String]
2938
+ #
2939
+ # @!attribute [rw] name
2940
+ # The name of the report that was run.
2941
+ # @return [String]
2942
+ #
2943
+ # @!attribute [rw] report_group_arn
2944
+ # The ARN of the report group associated with this report.
2945
+ # @return [String]
2946
+ #
2947
+ # @!attribute [rw] execution_id
2948
+ # The ARN of the build run that generated this report.
2949
+ # @return [String]
2950
+ #
2951
+ # @!attribute [rw] status
2952
+ # The status of this report.
2953
+ # @return [String]
2954
+ #
2955
+ # @!attribute [rw] created
2956
+ # The date and time this report run occurred.
2957
+ # @return [Time]
2958
+ #
2959
+ # @!attribute [rw] expired
2960
+ # The date and time a report expires. A report expires 30 days after
2961
+ # it is created. An expired report is not available to view in
2962
+ # CodeBuild.
2963
+ # @return [Time]
2964
+ #
2965
+ # @!attribute [rw] export_config
2966
+ # Information about where the raw data used to generate this report
2967
+ # was exported.
2968
+ # @return [Types::ReportExportConfig]
2969
+ #
2970
+ # @!attribute [rw] truncated
2971
+ # A boolean that specifies if this report run is truncated. The list
2972
+ # of test cases is truncated after the maximum number of test cases is
2973
+ # reached.
2974
+ # @return [Boolean]
2975
+ #
2976
+ # @!attribute [rw] test_summary
2977
+ # A `TestReportSummary` object that contains information about this
2978
+ # test report.
2979
+ # @return [Types::TestReportSummary]
2980
+ #
2981
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Report AWS API Documentation
2982
+ #
2983
+ class Report < Struct.new(
2984
+ :arn,
2985
+ :type,
2986
+ :name,
2987
+ :report_group_arn,
2988
+ :execution_id,
2989
+ :status,
2990
+ :created,
2991
+ :expired,
2992
+ :export_config,
2993
+ :truncated,
2994
+ :test_summary)
2995
+ include Aws::Structure
2996
+ end
2997
+
2998
+ # Information about the location where the run of a report is exported.
2999
+ #
3000
+ # @note When making an API call, you may pass ReportExportConfig
3001
+ # data as a hash:
3002
+ #
3003
+ # {
3004
+ # export_config_type: "S3", # accepts S3, NO_EXPORT
3005
+ # s3_destination: {
3006
+ # bucket: "NonEmptyString",
3007
+ # path: "String",
3008
+ # packaging: "ZIP", # accepts ZIP, NONE
3009
+ # encryption_key: "NonEmptyString",
3010
+ # encryption_disabled: false,
3011
+ # },
3012
+ # }
3013
+ #
3014
+ # @!attribute [rw] export_config_type
3015
+ # The export configuration type. Valid values are:
3016
+ #
3017
+ # * `S3`\: The report results are exported to an S3 bucket.
3018
+ #
3019
+ # * `NO_EXPORT`\: The report results are not exported.
3020
+ # @return [String]
3021
+ #
3022
+ # @!attribute [rw] s3_destination
3023
+ # A `S3ReportExportConfig` object that contains information about the
3024
+ # S3 bucket where the run of a report is exported.
3025
+ # @return [Types::S3ReportExportConfig]
3026
+ #
3027
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportExportConfig AWS API Documentation
3028
+ #
3029
+ class ReportExportConfig < Struct.new(
3030
+ :export_config_type,
3031
+ :s3_destination)
3032
+ include Aws::Structure
3033
+ end
3034
+
3035
+ # A filter used to return reports with the status specified by the input
3036
+ # `status` parameter.
3037
+ #
3038
+ # @note When making an API call, you may pass ReportFilter
3039
+ # data as a hash:
3040
+ #
3041
+ # {
3042
+ # status: "GENERATING", # accepts GENERATING, SUCCEEDED, FAILED, INCOMPLETE, DELETING
3043
+ # }
3044
+ #
3045
+ # @!attribute [rw] status
3046
+ # The status used to filter reports. You can filter using one status
3047
+ # only.
3048
+ # @return [String]
3049
+ #
3050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportFilter AWS API Documentation
3051
+ #
3052
+ class ReportFilter < Struct.new(
3053
+ :status)
3054
+ include Aws::Structure
3055
+ end
3056
+
3057
+ # A series of reports. Each report contains information about the
3058
+ # results from running a series of test cases. You specify the test
3059
+ # cases for a report group in the buildspec for a build project using
3060
+ # one or more paths to the test case files.
3061
+ #
3062
+ # @!attribute [rw] arn
3063
+ # The ARN of a `ReportGroup`.
3064
+ # @return [String]
3065
+ #
3066
+ # @!attribute [rw] name
3067
+ # The name of a `ReportGroup`.
3068
+ # @return [String]
3069
+ #
3070
+ # @!attribute [rw] type
3071
+ # The type of the `ReportGroup`. The one valid value is `TEST`.
3072
+ # @return [String]
3073
+ #
3074
+ # @!attribute [rw] export_config
3075
+ # Information about the destination where the raw data of this
3076
+ # `ReportGroup` is exported.
3077
+ # @return [Types::ReportExportConfig]
3078
+ #
3079
+ # @!attribute [rw] created
3080
+ # The date and time this `ReportGroup` was created.
3081
+ # @return [Time]
3082
+ #
3083
+ # @!attribute [rw] last_modified
3084
+ # The date and time this `ReportGroup` was last modified.
3085
+ # @return [Time]
3086
+ #
3087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportGroup AWS API Documentation
3088
+ #
3089
+ class ReportGroup < Struct.new(
3090
+ :arn,
3091
+ :name,
3092
+ :type,
3093
+ :export_config,
3094
+ :created,
3095
+ :last_modified)
3096
+ include Aws::Structure
3097
+ end
3098
+
2459
3099
  # Information about S3 logs for a build project.
2460
3100
  #
2461
3101
  # @note When making an API call, you may pass S3LogsConfig
@@ -2496,6 +3136,59 @@ module Aws::CodeBuild
2496
3136
  include Aws::Structure
2497
3137
  end
2498
3138
 
3139
+ # Information about the S3 bucket where the raw data of a report are
3140
+ # exported.
3141
+ #
3142
+ # @note When making an API call, you may pass S3ReportExportConfig
3143
+ # data as a hash:
3144
+ #
3145
+ # {
3146
+ # bucket: "NonEmptyString",
3147
+ # path: "String",
3148
+ # packaging: "ZIP", # accepts ZIP, NONE
3149
+ # encryption_key: "NonEmptyString",
3150
+ # encryption_disabled: false,
3151
+ # }
3152
+ #
3153
+ # @!attribute [rw] bucket
3154
+ # The name of the S3 bucket where the raw data of a report are
3155
+ # exported.
3156
+ # @return [String]
3157
+ #
3158
+ # @!attribute [rw] path
3159
+ # The path to the exported report's raw data results.
3160
+ # @return [String]
3161
+ #
3162
+ # @!attribute [rw] packaging
3163
+ # The type of build output artifact to create. Valid values include:
3164
+ #
3165
+ # * `NONE`\: AWS CodeBuild creates the raw data in the output bucket.
3166
+ # This is the default if packaging is not specified.
3167
+ #
3168
+ # * `ZIP`\: AWS CodeBuild creates a ZIP file with the raw data in the
3169
+ # output bucket.
3170
+ # @return [String]
3171
+ #
3172
+ # @!attribute [rw] encryption_key
3173
+ # The encryption key for the report's encrypted raw data.
3174
+ # @return [String]
3175
+ #
3176
+ # @!attribute [rw] encryption_disabled
3177
+ # A boolean value that specifies if the results of a report are
3178
+ # encrypted.
3179
+ # @return [Boolean]
3180
+ #
3181
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/S3ReportExportConfig AWS API Documentation
3182
+ #
3183
+ class S3ReportExportConfig < Struct.new(
3184
+ :bucket,
3185
+ :path,
3186
+ :packaging,
3187
+ :encryption_key,
3188
+ :encryption_disabled)
3189
+ include Aws::Structure
3190
+ end
3191
+
2499
3192
  # Information about the authorization settings for AWS CodeBuild to
2500
3193
  # access the source code to be built.
2501
3194
  #
@@ -2684,7 +3377,7 @@ module Aws::CodeBuild
2684
3377
  # not specified, the latest version is used. If specified, must be one
2685
3378
  # of:
2686
3379
  #
2687
- # * For AWS CodeCommit: the commit ID to use.
3380
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
2688
3381
  #
2689
3382
  # * For GitHub: the commit ID, pull request ID, branch name, or tag
2690
3383
  # name that corresponds to the version of the source code you want
@@ -2960,6 +3653,110 @@ module Aws::CodeBuild
2960
3653
  include Aws::Structure
2961
3654
  end
2962
3655
 
3656
+ # Information about a test case created using a framework such as NUnit
3657
+ # or Cucumber. A test case might be a unit test or a configuration test.
3658
+ #
3659
+ # @!attribute [rw] report_arn
3660
+ # The ARN of the report to which the test case belongs.
3661
+ # @return [String]
3662
+ #
3663
+ # @!attribute [rw] test_raw_data_path
3664
+ # The path to the raw data file that contains the test result.
3665
+ # @return [String]
3666
+ #
3667
+ # @!attribute [rw] prefix
3668
+ # A string that is applied to a series of related test cases.
3669
+ # CodeBuild generates the prefix. The prefix depends on the framework
3670
+ # used to generate the tests.
3671
+ # @return [String]
3672
+ #
3673
+ # @!attribute [rw] name
3674
+ # The name of the test case.
3675
+ # @return [String]
3676
+ #
3677
+ # @!attribute [rw] status
3678
+ # The status returned by the test case after it was run. Valid
3679
+ # statuses are `SUCCEEDED`, `FAILED`, `ERROR`, `SKIPPED`, and
3680
+ # `UNKNOWN`.
3681
+ # @return [String]
3682
+ #
3683
+ # @!attribute [rw] duration_in_nano_seconds
3684
+ # The number of nanoseconds it took to run this test case.
3685
+ # @return [Integer]
3686
+ #
3687
+ # @!attribute [rw] message
3688
+ # A message associated with a test case. For example, an error message
3689
+ # or stack trace.
3690
+ # @return [String]
3691
+ #
3692
+ # @!attribute [rw] expired
3693
+ # The date and time a test case expires. A test case expires 30 days
3694
+ # after it is created. An expired test case is not available to view
3695
+ # in CodeBuild.
3696
+ # @return [Time]
3697
+ #
3698
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/TestCase AWS API Documentation
3699
+ #
3700
+ class TestCase < Struct.new(
3701
+ :report_arn,
3702
+ :test_raw_data_path,
3703
+ :prefix,
3704
+ :name,
3705
+ :status,
3706
+ :duration_in_nano_seconds,
3707
+ :message,
3708
+ :expired)
3709
+ include Aws::Structure
3710
+ end
3711
+
3712
+ # A filter used to return specific types of test cases.
3713
+ #
3714
+ # @note When making an API call, you may pass TestCaseFilter
3715
+ # data as a hash:
3716
+ #
3717
+ # {
3718
+ # status: "String",
3719
+ # }
3720
+ #
3721
+ # @!attribute [rw] status
3722
+ # The status used to filter test cases. Valid statuses are
3723
+ # `SUCCEEDED`, `FAILED`, `ERROR`, `SKIPPED`, and `UNKNOWN`. A
3724
+ # `TestCaseFilter` can have one status.
3725
+ # @return [String]
3726
+ #
3727
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/TestCaseFilter AWS API Documentation
3728
+ #
3729
+ class TestCaseFilter < Struct.new(
3730
+ :status)
3731
+ include Aws::Structure
3732
+ end
3733
+
3734
+ # Information about a test report.
3735
+ #
3736
+ # @!attribute [rw] total
3737
+ # The number of test cases in this `TestReportSummary`. The total
3738
+ # includes truncated test cases.
3739
+ # @return [Integer]
3740
+ #
3741
+ # @!attribute [rw] status_counts
3742
+ # A map that contains the number of each type of status returned by
3743
+ # the test results in this `TestReportSummary`.
3744
+ # @return [Hash<String,Integer>]
3745
+ #
3746
+ # @!attribute [rw] duration_in_nano_seconds
3747
+ # The number of nanoseconds it took to run all of the test cases in
3748
+ # this report.
3749
+ # @return [Integer]
3750
+ #
3751
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/TestReportSummary AWS API Documentation
3752
+ #
3753
+ class TestReportSummary < Struct.new(
3754
+ :total,
3755
+ :status_counts,
3756
+ :duration_in_nano_seconds)
3757
+ include Aws::Structure
3758
+ end
3759
+
2963
3760
  # @note When making an API call, you may pass UpdateProjectInput
2964
3761
  # data as a hash:
2965
3762
  #
@@ -3111,7 +3908,7 @@ module Aws::CodeBuild
3111
3908
  # specified, the latest version is used. If specified, it must be one
3112
3909
  # of:
3113
3910
  #
3114
- # * For AWS CodeCommit: the commit ID to use.
3911
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
3115
3912
  #
3116
3913
  # * For GitHub: the commit ID, pull request ID, branch name, or tag
3117
3914
  # name that corresponds to the version of the source code you want
@@ -3254,6 +4051,54 @@ module Aws::CodeBuild
3254
4051
  include Aws::Structure
3255
4052
  end
3256
4053
 
4054
+ # @note When making an API call, you may pass UpdateReportGroupInput
4055
+ # data as a hash:
4056
+ #
4057
+ # {
4058
+ # arn: "NonEmptyString", # required
4059
+ # export_config: {
4060
+ # export_config_type: "S3", # accepts S3, NO_EXPORT
4061
+ # s3_destination: {
4062
+ # bucket: "NonEmptyString",
4063
+ # path: "String",
4064
+ # packaging: "ZIP", # accepts ZIP, NONE
4065
+ # encryption_key: "NonEmptyString",
4066
+ # encryption_disabled: false,
4067
+ # },
4068
+ # },
4069
+ # }
4070
+ #
4071
+ # @!attribute [rw] arn
4072
+ # The ARN of the report group to update.
4073
+ # @return [String]
4074
+ #
4075
+ # @!attribute [rw] export_config
4076
+ # Used to specify an updated export type. Valid values are:
4077
+ #
4078
+ # * `S3`\: The report results are exported to an S3 bucket.
4079
+ #
4080
+ # * `NO_EXPORT`\: The report results are not exported.
4081
+ # @return [Types::ReportExportConfig]
4082
+ #
4083
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateReportGroupInput AWS API Documentation
4084
+ #
4085
+ class UpdateReportGroupInput < Struct.new(
4086
+ :arn,
4087
+ :export_config)
4088
+ include Aws::Structure
4089
+ end
4090
+
4091
+ # @!attribute [rw] report_group
4092
+ # Information about the updated report group.
4093
+ # @return [Types::ReportGroup]
4094
+ #
4095
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateReportGroupOutput AWS API Documentation
4096
+ #
4097
+ class UpdateReportGroupOutput < Struct.new(
4098
+ :report_group)
4099
+ include Aws::Structure
4100
+ end
4101
+
3257
4102
  # @note When making an API call, you may pass UpdateWebhookInput
3258
4103
  # data as a hash:
3259
4104
  #
@@ -3296,7 +4141,7 @@ module Aws::CodeBuild
3296
4141
  #
3297
4142
  # @!attribute [rw] filter_groups
3298
4143
  # An array of arrays of `WebhookFilter` objects used to determine if a
3299
- # webhook event can trigger a build. A filter group must pcontain at
4144
+ # webhook event can trigger a build. A filter group must contain at
3300
4145
  # least one `EVENT` `WebhookFilter`.
3301
4146
  # @return [Array<Array<Types::WebhookFilter>>]
3302
4147
  #