aws-sdk-codebuild 1.63.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b05ca1d8cdcff6f53d141a91d1ae8b24605e48dd48ae86e6102781095720b228
4
- data.tar.gz: 03b9d11de810d2d54e8267e2a79316d0d3fe5eda2af636fe995fc33df3874f44
3
+ metadata.gz: ad60e42f8c6615d6a54b1073988882b7742cb8d820ff4977369d8357f077f4c0
4
+ data.tar.gz: 6b323164ce938575eaadf420ae535731fce74ca716398c50b55a729dfc5f2a3e
5
5
  SHA512:
6
- metadata.gz: bd00067c20430f6e42913626d1a9548f5aeb8f48473c0a24c1ae9efc0d1b4500bee584d1bd0dfd19b40ac0d19d7b10d2c8796d4e04aa42637ed64b40cfaff6fc
7
- data.tar.gz: e4d9901eb4c5855a38816389bb6711fd5b34b25d3c8917eae83a42c9f1999be2a90419b83dd62b8dd90199b89d5e17971488e99eb50ca2a640997497abe0cf1d
6
+ metadata.gz: d02fb94069395deeadf844538356002d9eb8fccb9fc63641406496be6714c99b70e67acbe60b71c2fc557a1810e5be2288cc0f254fd4b9ffbdacb91bb7279bd8
7
+ data.tar.gz: 5f0d5edd2a8275496517ca80fdaae3b14abd82251812d3b213e1ede1bdd9325b1b5853def13b5e71afe5cce5ed5d72867e9bad55ecdd52bde24281b8a5512fa0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-codebuild/customizations'
48
48
  # @!group service
49
49
  module Aws::CodeBuild
50
50
 
51
- GEM_VERSION = '1.63.0'
51
+ GEM_VERSION = '1.68.0'
52
52
 
53
53
  end
@@ -1064,6 +1064,7 @@ module Aws::CodeBuild
1064
1064
  # resp.projects[0].build_batch_config.restrictions.compute_types_allowed #=> Array
1065
1065
  # resp.projects[0].build_batch_config.restrictions.compute_types_allowed[0] #=> String
1066
1066
  # resp.projects[0].build_batch_config.timeout_in_mins #=> Integer
1067
+ # resp.projects[0].concurrent_build_limit #=> Integer
1067
1068
  # resp.projects_not_found #=> Array
1068
1069
  # resp.projects_not_found[0] #=> String
1069
1070
  #
@@ -1110,6 +1111,7 @@ module Aws::CodeBuild
1110
1111
  # resp.report_groups[0].tags #=> Array
1111
1112
  # resp.report_groups[0].tags[0].key #=> String
1112
1113
  # resp.report_groups[0].tags[0].value #=> String
1114
+ # resp.report_groups[0].status #=> String, one of "ACTIVE", "DELETING"
1113
1115
  # resp.report_groups_not_found #=> Array
1114
1116
  # resp.report_groups_not_found[0] #=> String
1115
1117
  #
@@ -1298,6 +1300,14 @@ module Aws::CodeBuild
1298
1300
  # A ProjectBuildBatchConfig object that defines the batch build options
1299
1301
  # for the project.
1300
1302
  #
1303
+ # @option params [Integer] :concurrent_build_limit
1304
+ # The maximum number of concurrent builds that are allowed for this
1305
+ # project.
1306
+ #
1307
+ # New builds are only started if the current number of builds is less
1308
+ # than or equal to this limit. If the current build count meets this
1309
+ # limit, new builds are throttled and are not run.
1310
+ #
1301
1311
  # @return [Types::CreateProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1302
1312
  #
1303
1313
  # * {Types::CreateProjectOutput#project #project} => Types::Project
@@ -1450,6 +1460,7 @@ module Aws::CodeBuild
1450
1460
  # },
1451
1461
  # timeout_in_mins: 1,
1452
1462
  # },
1463
+ # concurrent_build_limit: 1,
1453
1464
  # })
1454
1465
  #
1455
1466
  # @example Response structure
@@ -1566,6 +1577,7 @@ module Aws::CodeBuild
1566
1577
  # resp.project.build_batch_config.restrictions.compute_types_allowed #=> Array
1567
1578
  # resp.project.build_batch_config.restrictions.compute_types_allowed[0] #=> String
1568
1579
  # resp.project.build_batch_config.timeout_in_mins #=> Integer
1580
+ # resp.project.concurrent_build_limit #=> Integer
1569
1581
  #
1570
1582
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProject AWS API Documentation
1571
1583
  #
@@ -1638,6 +1650,7 @@ module Aws::CodeBuild
1638
1650
  # resp.report_group.tags #=> Array
1639
1651
  # resp.report_group.tags[0].key #=> String
1640
1652
  # resp.report_group.tags[0].value #=> String
1653
+ # resp.report_group.status #=> String, one of "ACTIVE", "DELETING"
1641
1654
  #
1642
1655
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateReportGroup AWS API Documentation
1643
1656
  #
@@ -2070,6 +2083,101 @@ module Aws::CodeBuild
2070
2083
  req.send_request(options)
2071
2084
  end
2072
2085
 
2086
+ # Analyzes and accumulates test report values for the specified test
2087
+ # reports.
2088
+ #
2089
+ # @option params [required, String] :report_group_arn
2090
+ # The ARN of the report group that contains the reports to analyze.
2091
+ #
2092
+ # @option params [Integer] :num_of_reports
2093
+ # The number of reports to analyze. This operation always retrieves the
2094
+ # most recent reports.
2095
+ #
2096
+ # If this parameter is omitted, the most recent 100 reports are
2097
+ # analyzed.
2098
+ #
2099
+ # @option params [required, String] :trend_field
2100
+ # The test report value to accumulate. This must be one of the following
2101
+ # values:
2102
+ #
2103
+ # Test reports:
2104
+ # : DURATION
2105
+ #
2106
+ # : Accumulate the test run times for the specified reports.
2107
+ #
2108
+ # PASS\_RATE
2109
+ #
2110
+ # : Accumulate the percentage of tests that passed for the specified
2111
+ # test reports.
2112
+ #
2113
+ # TOTAL
2114
+ #
2115
+ # : Accumulate the total number of tests for the specified test
2116
+ # reports.
2117
+ # ^
2118
+ #
2119
+ # Code coverage reports:
2120
+ # : BRANCH\_COVERAGE
2121
+ #
2122
+ # : Accumulate the branch coverage percentages for the specified test
2123
+ # reports.
2124
+ #
2125
+ # BRANCHES\_COVERED
2126
+ #
2127
+ # : Accumulate the branches covered values for the specified test
2128
+ # reports.
2129
+ #
2130
+ # BRANCHES\_MISSED
2131
+ #
2132
+ # : Accumulate the branches missed values for the specified test
2133
+ # reports.
2134
+ #
2135
+ # LINE\_COVERAGE
2136
+ #
2137
+ # : Accumulate the line coverage percentages for the specified test
2138
+ # reports.
2139
+ #
2140
+ # LINES\_COVERED
2141
+ #
2142
+ # : Accumulate the lines covered values for the specified test
2143
+ # reports.
2144
+ #
2145
+ # LINES\_MISSED
2146
+ #
2147
+ # : Accumulate the lines not covered values for the specified test
2148
+ # reports.
2149
+ #
2150
+ # @return [Types::GetReportGroupTrendOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2151
+ #
2152
+ # * {Types::GetReportGroupTrendOutput#stats #stats} => Types::ReportGroupTrendStats
2153
+ # * {Types::GetReportGroupTrendOutput#raw_data #raw_data} => Array<Types::ReportWithRawData>
2154
+ #
2155
+ # @example Request syntax with placeholder values
2156
+ #
2157
+ # resp = client.get_report_group_trend({
2158
+ # report_group_arn: "NonEmptyString", # required
2159
+ # num_of_reports: 1,
2160
+ # trend_field: "PASS_RATE", # required, accepts PASS_RATE, DURATION, TOTAL, LINE_COVERAGE, LINES_COVERED, LINES_MISSED, BRANCH_COVERAGE, BRANCHES_COVERED, BRANCHES_MISSED
2161
+ # })
2162
+ #
2163
+ # @example Response structure
2164
+ #
2165
+ # resp.stats.average #=> String
2166
+ # resp.stats.max #=> String
2167
+ # resp.stats.min #=> String
2168
+ # resp.raw_data #=> Array
2169
+ # resp.raw_data[0].report_arn #=> String
2170
+ # resp.raw_data[0].data #=> String
2171
+ #
2172
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetReportGroupTrend AWS API Documentation
2173
+ #
2174
+ # @overload get_report_group_trend(params = {})
2175
+ # @param [Hash] params ({})
2176
+ def get_report_group_trend(params = {}, options = {})
2177
+ req = build_request(:get_report_group_trend, params)
2178
+ req.send_request(options)
2179
+ end
2180
+
2073
2181
  # Gets a resource policy that is identified by its resource ARN.
2074
2182
  #
2075
2183
  # @option params [required, String] :resource_arn
@@ -2337,19 +2445,25 @@ module Aws::CodeBuild
2337
2445
  req.send_request(options)
2338
2446
  end
2339
2447
 
2340
- # Gets a list of build IDs for the specified build project, with each
2341
- # build ID representing a single build.
2448
+ # Gets a list of build identifiers for the specified build project, with
2449
+ # each build identifier representing a single build.
2342
2450
  #
2343
2451
  # @option params [required, String] :project_name
2344
2452
  # The name of the AWS CodeBuild project.
2345
2453
  #
2346
2454
  # @option params [String] :sort_order
2347
- # The order to list build IDs. Valid values include:
2455
+ # The order to list results in. The results are sorted by build number,
2456
+ # not the build identifier.
2457
+ #
2458
+ # Valid values include:
2348
2459
  #
2349
2460
  # * `ASCENDING`\: List the build IDs in ascending order by build ID.
2350
2461
  #
2351
2462
  # * `DESCENDING`\: List the build IDs in descending order by build ID.
2352
2463
  #
2464
+ # If the project has more than 100 builds, setting the sort order will
2465
+ # result in an error.
2466
+ #
2353
2467
  # @option params [String] :next_token
2354
2468
  # During a previous call, if there are more than 100 items in the list,
2355
2469
  # only the first 100 items are returned, along with a unique string
@@ -3009,7 +3123,8 @@ module Aws::CodeBuild
3009
3123
  req.send_request(options)
3010
3124
  end
3011
3125
 
3012
- # Restarts a batch build.
3126
+ # Restarts a failed batch build. Only batch builds that have failed can
3127
+ # be retried.
3013
3128
  #
3014
3129
  # @option params [String] :id
3015
3130
  # Specifies the identifier of the batch build to restart.
@@ -3294,13 +3409,23 @@ module Aws::CodeBuild
3294
3409
  # Set to true to report to your source provider the status of a build's
3295
3410
  # start and completion. If you use this option with a source provider
3296
3411
  # other than GitHub, GitHub Enterprise, or Bitbucket, an
3297
- # invalidInputException is thrown.
3412
+ # `invalidInputException` is thrown.
3413
+ #
3414
+ # To be able to report the build status to the source provider, the user
3415
+ # associated with the source provider must have write access to the
3416
+ # repo. If the user does not have write access, the build status cannot
3417
+ # be updated. For more information, see [Source provider access][1] in
3418
+ # the *AWS CodeBuild User Guide*.
3298
3419
  #
3299
3420
  # <note markdown="1"> The status of a build triggered by a webhook is always reported to
3300
3421
  # your source provider.
3301
3422
  #
3302
3423
  # </note>
3303
3424
  #
3425
+ #
3426
+ #
3427
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html
3428
+ #
3304
3429
  # @option params [Types::BuildStatusConfig] :build_status_config_override
3305
3430
  # Contains information that defines how the build project reports the
3306
3431
  # build status to the source provider. This option is only used when the
@@ -4545,6 +4670,16 @@ module Aws::CodeBuild
4545
4670
  # @option params [Types::ProjectBuildBatchConfig] :build_batch_config
4546
4671
  # Contains configuration information about a batch build project.
4547
4672
  #
4673
+ # @option params [Integer] :concurrent_build_limit
4674
+ # The maximum number of concurrent builds that are allowed for this
4675
+ # project.
4676
+ #
4677
+ # New builds are only started if the current number of builds is less
4678
+ # than or equal to this limit. If the current build count meets this
4679
+ # limit, new builds are throttled and are not run.
4680
+ #
4681
+ # To remove this limit, set this value to -1.
4682
+ #
4548
4683
  # @return [Types::UpdateProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4549
4684
  #
4550
4685
  # * {Types::UpdateProjectOutput#project #project} => Types::Project
@@ -4697,6 +4832,7 @@ module Aws::CodeBuild
4697
4832
  # },
4698
4833
  # timeout_in_mins: 1,
4699
4834
  # },
4835
+ # concurrent_build_limit: 1,
4700
4836
  # })
4701
4837
  #
4702
4838
  # @example Response structure
@@ -4813,6 +4949,7 @@ module Aws::CodeBuild
4813
4949
  # resp.project.build_batch_config.restrictions.compute_types_allowed #=> Array
4814
4950
  # resp.project.build_batch_config.restrictions.compute_types_allowed[0] #=> String
4815
4951
  # resp.project.build_batch_config.timeout_in_mins #=> Integer
4952
+ # resp.project.concurrent_build_limit #=> Integer
4816
4953
  #
4817
4954
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProject AWS API Documentation
4818
4955
  #
@@ -4884,6 +5021,7 @@ module Aws::CodeBuild
4884
5021
  # resp.report_group.tags #=> Array
4885
5022
  # resp.report_group.tags[0].key #=> String
4886
5023
  # resp.report_group.tags[0].value #=> String
5024
+ # resp.report_group.status #=> String, one of "ACTIVE", "DELETING"
4887
5025
  #
4888
5026
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateReportGroup AWS API Documentation
4889
5027
  #
@@ -4985,7 +5123,7 @@ module Aws::CodeBuild
4985
5123
  params: params,
4986
5124
  config: config)
4987
5125
  context[:gem_name] = 'aws-sdk-codebuild'
4988
- context[:gem_version] = '1.63.0'
5126
+ context[:gem_version] = '1.68.0'
4989
5127
  Seahorse::Client::Request.new(handlers, context)
4990
5128
  end
4991
5129
 
@@ -104,6 +104,8 @@ module Aws::CodeBuild
104
104
  FileSystemType = Shapes::StringShape.new(name: 'FileSystemType')
105
105
  FilterGroup = Shapes::ListShape.new(name: 'FilterGroup')
106
106
  FilterGroups = Shapes::ListShape.new(name: 'FilterGroups')
107
+ GetReportGroupTrendInput = Shapes::StructureShape.new(name: 'GetReportGroupTrendInput')
108
+ GetReportGroupTrendOutput = Shapes::StructureShape.new(name: 'GetReportGroupTrendOutput')
107
109
  GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
108
110
  GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
109
111
  GitCloneDepth = Shapes::IntegerShape.new(name: 'GitCloneDepth')
@@ -187,11 +189,16 @@ module Aws::CodeBuild
187
189
  ReportGroupArns = Shapes::ListShape.new(name: 'ReportGroupArns')
188
190
  ReportGroupName = Shapes::StringShape.new(name: 'ReportGroupName')
189
191
  ReportGroupSortByType = Shapes::StringShape.new(name: 'ReportGroupSortByType')
192
+ ReportGroupStatusType = Shapes::StringShape.new(name: 'ReportGroupStatusType')
193
+ ReportGroupTrendFieldType = Shapes::StringShape.new(name: 'ReportGroupTrendFieldType')
194
+ ReportGroupTrendRawDataList = Shapes::ListShape.new(name: 'ReportGroupTrendRawDataList')
195
+ ReportGroupTrendStats = Shapes::StructureShape.new(name: 'ReportGroupTrendStats')
190
196
  ReportGroups = Shapes::ListShape.new(name: 'ReportGroups')
191
197
  ReportPackagingType = Shapes::StringShape.new(name: 'ReportPackagingType')
192
198
  ReportStatusCounts = Shapes::MapShape.new(name: 'ReportStatusCounts')
193
199
  ReportStatusType = Shapes::StringShape.new(name: 'ReportStatusType')
194
200
  ReportType = Shapes::StringShape.new(name: 'ReportType')
201
+ ReportWithRawData = Shapes::StructureShape.new(name: 'ReportWithRawData')
195
202
  Reports = Shapes::ListShape.new(name: 'Reports')
196
203
  ResolvedArtifact = Shapes::StructureShape.new(name: 'ResolvedArtifact')
197
204
  ResolvedSecondaryArtifacts = Shapes::ListShape.new(name: 'ResolvedSecondaryArtifacts')
@@ -482,6 +489,7 @@ module Aws::CodeBuild
482
489
  CreateProjectInput.add_member(:logs_config, Shapes::ShapeRef.new(shape: LogsConfig, location_name: "logsConfig"))
483
490
  CreateProjectInput.add_member(:file_system_locations, Shapes::ShapeRef.new(shape: ProjectFileSystemLocations, location_name: "fileSystemLocations"))
484
491
  CreateProjectInput.add_member(:build_batch_config, Shapes::ShapeRef.new(shape: ProjectBuildBatchConfig, location_name: "buildBatchConfig"))
492
+ CreateProjectInput.add_member(:concurrent_build_limit, Shapes::ShapeRef.new(shape: WrapperInt, location_name: "concurrentBuildLimit"))
485
493
  CreateProjectInput.struct_class = Types::CreateProjectInput
486
494
 
487
495
  CreateProjectOutput.add_member(:project, Shapes::ShapeRef.new(shape: Project, location_name: "project"))
@@ -608,6 +616,15 @@ module Aws::CodeBuild
608
616
 
609
617
  FilterGroups.member = Shapes::ShapeRef.new(shape: FilterGroup)
610
618
 
619
+ GetReportGroupTrendInput.add_member(:report_group_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "reportGroupArn"))
620
+ GetReportGroupTrendInput.add_member(:num_of_reports, Shapes::ShapeRef.new(shape: PageSize, location_name: "numOfReports"))
621
+ GetReportGroupTrendInput.add_member(:trend_field, Shapes::ShapeRef.new(shape: ReportGroupTrendFieldType, required: true, location_name: "trendField"))
622
+ GetReportGroupTrendInput.struct_class = Types::GetReportGroupTrendInput
623
+
624
+ GetReportGroupTrendOutput.add_member(:stats, Shapes::ShapeRef.new(shape: ReportGroupTrendStats, location_name: "stats"))
625
+ GetReportGroupTrendOutput.add_member(:raw_data, Shapes::ShapeRef.new(shape: ReportGroupTrendRawDataList, location_name: "rawData"))
626
+ GetReportGroupTrendOutput.struct_class = Types::GetReportGroupTrendOutput
627
+
611
628
  GetResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "resourceArn"))
612
629
  GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
613
630
 
@@ -796,6 +813,7 @@ module Aws::CodeBuild
796
813
  Project.add_member(:logs_config, Shapes::ShapeRef.new(shape: LogsConfig, location_name: "logsConfig"))
797
814
  Project.add_member(:file_system_locations, Shapes::ShapeRef.new(shape: ProjectFileSystemLocations, location_name: "fileSystemLocations"))
798
815
  Project.add_member(:build_batch_config, Shapes::ShapeRef.new(shape: ProjectBuildBatchConfig, location_name: "buildBatchConfig"))
816
+ Project.add_member(:concurrent_build_limit, Shapes::ShapeRef.new(shape: WrapperInt, location_name: "concurrentBuildLimit"))
799
817
  Project.struct_class = Types::Project
800
818
 
801
819
  ProjectArns.member = Shapes::ShapeRef.new(shape: NonEmptyString)
@@ -914,15 +932,27 @@ module Aws::CodeBuild
914
932
  ReportGroup.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "created"))
915
933
  ReportGroup.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModified"))
916
934
  ReportGroup.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
935
+ ReportGroup.add_member(:status, Shapes::ShapeRef.new(shape: ReportGroupStatusType, location_name: "status"))
917
936
  ReportGroup.struct_class = Types::ReportGroup
918
937
 
919
938
  ReportGroupArns.member = Shapes::ShapeRef.new(shape: NonEmptyString)
920
939
 
940
+ ReportGroupTrendRawDataList.member = Shapes::ShapeRef.new(shape: ReportWithRawData)
941
+
942
+ ReportGroupTrendStats.add_member(:average, Shapes::ShapeRef.new(shape: String, location_name: "average"))
943
+ ReportGroupTrendStats.add_member(:max, Shapes::ShapeRef.new(shape: String, location_name: "max"))
944
+ ReportGroupTrendStats.add_member(:min, Shapes::ShapeRef.new(shape: String, location_name: "min"))
945
+ ReportGroupTrendStats.struct_class = Types::ReportGroupTrendStats
946
+
921
947
  ReportGroups.member = Shapes::ShapeRef.new(shape: ReportGroup)
922
948
 
923
949
  ReportStatusCounts.key = Shapes::ShapeRef.new(shape: String)
924
950
  ReportStatusCounts.value = Shapes::ShapeRef.new(shape: WrapperInt)
925
951
 
952
+ ReportWithRawData.add_member(:report_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "reportArn"))
953
+ ReportWithRawData.add_member(:data, Shapes::ShapeRef.new(shape: String, location_name: "data"))
954
+ ReportWithRawData.struct_class = Types::ReportWithRawData
955
+
926
956
  Reports.member = Shapes::ShapeRef.new(shape: Report)
927
957
 
928
958
  ResolvedArtifact.add_member(:type, Shapes::ShapeRef.new(shape: ArtifactsType, location_name: "type"))
@@ -1108,6 +1138,7 @@ module Aws::CodeBuild
1108
1138
  UpdateProjectInput.add_member(:logs_config, Shapes::ShapeRef.new(shape: LogsConfig, location_name: "logsConfig"))
1109
1139
  UpdateProjectInput.add_member(:file_system_locations, Shapes::ShapeRef.new(shape: ProjectFileSystemLocations, location_name: "fileSystemLocations"))
1110
1140
  UpdateProjectInput.add_member(:build_batch_config, Shapes::ShapeRef.new(shape: ProjectBuildBatchConfig, location_name: "buildBatchConfig"))
1141
+ UpdateProjectInput.add_member(:concurrent_build_limit, Shapes::ShapeRef.new(shape: WrapperInt, location_name: "concurrentBuildLimit"))
1111
1142
  UpdateProjectInput.struct_class = Types::UpdateProjectInput
1112
1143
 
1113
1144
  UpdateProjectOutput.add_member(:project, Shapes::ShapeRef.new(shape: Project, location_name: "project"))
@@ -1353,6 +1384,16 @@ module Aws::CodeBuild
1353
1384
  )
1354
1385
  end)
1355
1386
 
1387
+ api.add_operation(:get_report_group_trend, Seahorse::Model::Operation.new.tap do |o|
1388
+ o.name = "GetReportGroupTrend"
1389
+ o.http_method = "POST"
1390
+ o.http_request_uri = "/"
1391
+ o.input = Shapes::ShapeRef.new(shape: GetReportGroupTrendInput)
1392
+ o.output = Shapes::ShapeRef.new(shape: GetReportGroupTrendOutput)
1393
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1394
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1395
+ end)
1396
+
1356
1397
  api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1357
1398
  o.name = "GetResourcePolicy"
1358
1399
  o.http_method = "POST"
@@ -1520,6 +1520,7 @@ module Aws::CodeBuild
1520
1520
  # },
1521
1521
  # timeout_in_mins: 1,
1522
1522
  # },
1523
+ # concurrent_build_limit: 1,
1523
1524
  # }
1524
1525
  #
1525
1526
  # @!attribute [rw] name
@@ -1664,6 +1665,15 @@ module Aws::CodeBuild
1664
1665
  # options for the project.
1665
1666
  # @return [Types::ProjectBuildBatchConfig]
1666
1667
  #
1668
+ # @!attribute [rw] concurrent_build_limit
1669
+ # The maximum number of concurrent builds that are allowed for this
1670
+ # project.
1671
+ #
1672
+ # New builds are only started if the current number of builds is less
1673
+ # than or equal to this limit. If the current build count meets this
1674
+ # limit, new builds are throttled and are not run.
1675
+ # @return [Integer]
1676
+ #
1667
1677
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProjectInput AWS API Documentation
1668
1678
  #
1669
1679
  class CreateProjectInput < Struct.new(
@@ -1686,7 +1696,8 @@ module Aws::CodeBuild
1686
1696
  :badge_enabled,
1687
1697
  :logs_config,
1688
1698
  :file_system_locations,
1689
- :build_batch_config)
1699
+ :build_batch_config,
1700
+ :concurrent_build_limit)
1690
1701
  SENSITIVE = []
1691
1702
  include Aws::Structure
1692
1703
  end
@@ -2384,6 +2395,106 @@ module Aws::CodeBuild
2384
2395
  include Aws::Structure
2385
2396
  end
2386
2397
 
2398
+ # @note When making an API call, you may pass GetReportGroupTrendInput
2399
+ # data as a hash:
2400
+ #
2401
+ # {
2402
+ # report_group_arn: "NonEmptyString", # required
2403
+ # num_of_reports: 1,
2404
+ # trend_field: "PASS_RATE", # required, accepts PASS_RATE, DURATION, TOTAL, LINE_COVERAGE, LINES_COVERED, LINES_MISSED, BRANCH_COVERAGE, BRANCHES_COVERED, BRANCHES_MISSED
2405
+ # }
2406
+ #
2407
+ # @!attribute [rw] report_group_arn
2408
+ # The ARN of the report group that contains the reports to analyze.
2409
+ # @return [String]
2410
+ #
2411
+ # @!attribute [rw] num_of_reports
2412
+ # The number of reports to analyze. This operation always retrieves
2413
+ # the most recent reports.
2414
+ #
2415
+ # If this parameter is omitted, the most recent 100 reports are
2416
+ # analyzed.
2417
+ # @return [Integer]
2418
+ #
2419
+ # @!attribute [rw] trend_field
2420
+ # The test report value to accumulate. This must be one of the
2421
+ # following values:
2422
+ #
2423
+ # Test reports:
2424
+ # : DURATION
2425
+ #
2426
+ # : Accumulate the test run times for the specified reports.
2427
+ #
2428
+ # PASS\_RATE
2429
+ #
2430
+ # : Accumulate the percentage of tests that passed for the specified
2431
+ # test reports.
2432
+ #
2433
+ # TOTAL
2434
+ #
2435
+ # : Accumulate the total number of tests for the specified test
2436
+ # reports.
2437
+ # ^
2438
+ #
2439
+ # Code coverage reports:
2440
+ # : BRANCH\_COVERAGE
2441
+ #
2442
+ # : Accumulate the branch coverage percentages for the specified
2443
+ # test reports.
2444
+ #
2445
+ # BRANCHES\_COVERED
2446
+ #
2447
+ # : Accumulate the branches covered values for the specified test
2448
+ # reports.
2449
+ #
2450
+ # BRANCHES\_MISSED
2451
+ #
2452
+ # : Accumulate the branches missed values for the specified test
2453
+ # reports.
2454
+ #
2455
+ # LINE\_COVERAGE
2456
+ #
2457
+ # : Accumulate the line coverage percentages for the specified test
2458
+ # reports.
2459
+ #
2460
+ # LINES\_COVERED
2461
+ #
2462
+ # : Accumulate the lines covered values for the specified test
2463
+ # reports.
2464
+ #
2465
+ # LINES\_MISSED
2466
+ #
2467
+ # : Accumulate the lines not covered values for the specified test
2468
+ # reports.
2469
+ # @return [String]
2470
+ #
2471
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetReportGroupTrendInput AWS API Documentation
2472
+ #
2473
+ class GetReportGroupTrendInput < Struct.new(
2474
+ :report_group_arn,
2475
+ :num_of_reports,
2476
+ :trend_field)
2477
+ SENSITIVE = []
2478
+ include Aws::Structure
2479
+ end
2480
+
2481
+ # @!attribute [rw] stats
2482
+ # Contains the accumulated trend data.
2483
+ # @return [Types::ReportGroupTrendStats]
2484
+ #
2485
+ # @!attribute [rw] raw_data
2486
+ # An array that contains the raw data for each report.
2487
+ # @return [Array<Types::ReportWithRawData>]
2488
+ #
2489
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetReportGroupTrendOutput AWS API Documentation
2490
+ #
2491
+ class GetReportGroupTrendOutput < Struct.new(
2492
+ :stats,
2493
+ :raw_data)
2494
+ SENSITIVE = []
2495
+ include Aws::Structure
2496
+ end
2497
+
2387
2498
  # @note When making an API call, you may pass GetResourcePolicyInput
2388
2499
  # data as a hash:
2389
2500
  #
@@ -2688,11 +2799,17 @@ module Aws::CodeBuild
2688
2799
  # @return [String]
2689
2800
  #
2690
2801
  # @!attribute [rw] sort_order
2691
- # The order to list build IDs. Valid values include:
2802
+ # The order to list results in. The results are sorted by build
2803
+ # number, not the build identifier.
2804
+ #
2805
+ # Valid values include:
2692
2806
  #
2693
2807
  # * `ASCENDING`\: List the build IDs in ascending order by build ID.
2694
2808
  #
2695
2809
  # * `DESCENDING`\: List the build IDs in descending order by build ID.
2810
+ #
2811
+ # If the project has more than 100 builds, setting the sort order will
2812
+ # result in an error.
2696
2813
  # @return [String]
2697
2814
  #
2698
2815
  # @!attribute [rw] next_token
@@ -3604,6 +3721,15 @@ module Aws::CodeBuild
3604
3721
  # options for the project.
3605
3722
  # @return [Types::ProjectBuildBatchConfig]
3606
3723
  #
3724
+ # @!attribute [rw] concurrent_build_limit
3725
+ # The maximum number of concurrent builds that are allowed for this
3726
+ # project.
3727
+ #
3728
+ # New builds are only started if the current number of builds is less
3729
+ # than or equal to this limit. If the current build count meets this
3730
+ # limit, new builds are throttled and are not run.
3731
+ # @return [Integer]
3732
+ #
3607
3733
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Project AWS API Documentation
3608
3734
  #
3609
3735
  class Project < Struct.new(
@@ -3630,7 +3756,8 @@ module Aws::CodeBuild
3630
3756
  :badge,
3631
3757
  :logs_config,
3632
3758
  :file_system_locations,
3633
- :build_batch_config)
3759
+ :build_batch_config,
3760
+ :concurrent_build_limit)
3634
3761
  SENSITIVE = []
3635
3762
  include Aws::Structure
3636
3763
  end
@@ -3821,9 +3948,6 @@ module Aws::CodeBuild
3821
3948
  # @!attribute [rw] badge_request_url
3822
3949
  # The publicly-accessible URL through which you can access the build
3823
3950
  # badge for your project.
3824
- #
3825
- # The publicly accessible URL through which you can access the build
3826
- # badge for your project.
3827
3951
  # @return [String]
3828
3952
  #
3829
3953
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectBadge AWS API Documentation
@@ -3911,21 +4035,28 @@ module Aws::CodeBuild
3911
4035
  # @return [String]
3912
4036
  #
3913
4037
  # @!attribute [rw] modes
3914
- # If you use a `LOCAL` cache, the local cache mode. You can use one or
3915
- # more local cache modes at the same time.
3916
- #
3917
- # * `LOCAL_SOURCE_CACHE` mode caches Git metadata for primary and
3918
- # secondary sources. After the cache is created, subsequent builds
3919
- # pull only the change between commits. This mode is a good choice
3920
- # for projects with a clean working directory and a source that is a
3921
- # large Git repository. If you choose this option and your project
3922
- # does not use a Git repository (GitHub, GitHub Enterprise, or
3923
- # Bitbucket), the option is ignored.
3924
- #
3925
- # * `LOCAL_DOCKER_LAYER_CACHE` mode caches existing Docker layers.
3926
- # This mode is a good choice for projects that build or pull large
3927
- # Docker images. It can prevent the performance issues caused by
3928
- # pulling large Docker images down from the network.
4038
+ # An array of strings that specify the local cache modes. You can use
4039
+ # one or more local cache modes at the same time. This is only used
4040
+ # for `LOCAL` cache types.
4041
+ #
4042
+ # Possible values are:
4043
+ #
4044
+ # LOCAL\_SOURCE\_CACHE
4045
+ #
4046
+ # : Caches Git metadata for primary and secondary sources. After the
4047
+ # cache is created, subsequent builds pull only the change between
4048
+ # commits. This mode is a good choice for projects with a clean
4049
+ # working directory and a source that is a large Git repository. If
4050
+ # you choose this option and your project does not use a Git
4051
+ # repository (GitHub, GitHub Enterprise, or Bitbucket), the option
4052
+ # is ignored.
4053
+ #
4054
+ # LOCAL\_DOCKER\_LAYER\_CACHE
4055
+ #
4056
+ # : Caches existing Docker layers. This mode is a good choice for
4057
+ # projects that build or pull large Docker images. It can prevent
4058
+ # the performance issues caused by pulling large Docker images down
4059
+ # from the network.
3929
4060
  #
3930
4061
  # <note markdown="1"> * You can use a Docker layer cache in the Linux environment only.
3931
4062
  #
@@ -3936,12 +4067,12 @@ module Aws::CodeBuild
3936
4067
  # Docker layer cache.
3937
4068
  #
3938
4069
  # </note>
3939
- # ^
3940
4070
  #
3941
- # * `LOCAL_CUSTOM_CACHE` mode caches directories you specify in the
3942
- # buildspec file. This mode is a good choice if your build scenario
3943
- # is not suited to one of the other three local cache modes. If you
3944
- # use a custom cache:
4071
+ # LOCAL\_CUSTOM\_CACHE
4072
+ #
4073
+ # : Caches directories you specify in the buildspec file. This mode is
4074
+ # a good choice if your build scenario is not suited to one of the
4075
+ # other three local cache modes. If you use a custom cache:
3945
4076
  #
3946
4077
  # * Only directories can be specified for caching. You cannot
3947
4078
  # specify individual files.
@@ -4017,9 +4148,7 @@ module Aws::CodeBuild
4017
4148
  #
4018
4149
  # * For an image tag: `<registry>/<repository>:<tag>`. For example, in
4019
4150
  # the Docker repository that CodeBuild uses to manage its Docker
4020
- # images, this would be `aws/codebuild/standard:4.0`. To specify the
4021
- # latest version of this image, this would be
4022
- # `aws/codebuild/standard:latest`.
4151
+ # images, this would be `aws/codebuild/standard:4.0`.
4023
4152
  #
4024
4153
  # * For an image digest: `<registry>/<repository>@<digest>`. For
4025
4154
  # example, to specify an image with the digest
@@ -4097,7 +4226,14 @@ module Aws::CodeBuild
4097
4226
  # @return [Boolean]
4098
4227
  #
4099
4228
  # @!attribute [rw] certificate
4100
- # The certificate to use with this build project.
4229
+ # The ARN of the Amazon Simple Storage Service (Amazon S3) bucket,
4230
+ # path prefix, and object key that contains the PEM-encoded
4231
+ # certificate for the build project. For more information, see
4232
+ # [certificate][1] in the *AWS CodeBuild User Guide*.
4233
+ #
4234
+ #
4235
+ #
4236
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate
4101
4237
  # @return [String]
4102
4238
  #
4103
4239
  # @!attribute [rw] registry_credential
@@ -4181,8 +4317,8 @@ module Aws::CodeBuild
4181
4317
  # The name used to access a file system created by Amazon EFS.
4182
4318
  # CodeBuild creates an environment variable by appending the
4183
4319
  # `identifier` in all capital letters to `CODEBUILD_`. For example, if
4184
- # you specify `my-efs` for `identifier`, a new environment variable is
4185
- # create named `CODEBUILD_MY-EFS`.
4320
+ # you specify `my_efs` for `identifier`, a new environment variable is
4321
+ # create named `CODEBUILD_MY_EFS`.
4186
4322
  #
4187
4323
  # The `identifier` is used to mount your file system.
4188
4324
  # @return [String]
@@ -4350,13 +4486,23 @@ module Aws::CodeBuild
4350
4486
  # Set to true to report the status of a build's start and finish to
4351
4487
  # your source provider. This option is valid only when your source
4352
4488
  # provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set
4353
- # and you use a different source provider, an invalidInputException is
4354
- # thrown.
4489
+ # and you use a different source provider, an `invalidInputException`
4490
+ # is thrown.
4491
+ #
4492
+ # To be able to report the build status to the source provider, the
4493
+ # user associated with the source provider must have write access to
4494
+ # the repo. If the user does not have write access, the build status
4495
+ # cannot be updated. For more information, see [Source provider
4496
+ # access][1] in the *AWS CodeBuild User Guide*.
4355
4497
  #
4356
4498
  # <note markdown="1"> The status of a build triggered by a webhook is always reported to
4357
4499
  # your source provider.
4358
4500
  #
4359
4501
  # </note>
4502
+ #
4503
+ #
4504
+ #
4505
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html
4360
4506
  # @return [Boolean]
4361
4507
  #
4362
4508
  # @!attribute [rw] build_status_config
@@ -4693,15 +4839,24 @@ module Aws::CodeBuild
4693
4839
  # one or more paths to the test case files.
4694
4840
  #
4695
4841
  # @!attribute [rw] arn
4696
- # The ARN of a `ReportGroup`.
4842
+ # The ARN of the `ReportGroup`.
4697
4843
  # @return [String]
4698
4844
  #
4699
4845
  # @!attribute [rw] name
4700
- # The name of a `ReportGroup`.
4846
+ # The name of the `ReportGroup`.
4701
4847
  # @return [String]
4702
4848
  #
4703
4849
  # @!attribute [rw] type
4704
- # The type of the `ReportGroup`. The one valid value is `TEST`.
4850
+ # The type of the `ReportGroup`. This can be one of the following
4851
+ # values:
4852
+ #
4853
+ # CODE\_COVERAGE
4854
+ #
4855
+ # : The report group contains code coverage reports.
4856
+ #
4857
+ # TEST
4858
+ #
4859
+ # : The report group contains test reports.
4705
4860
  # @return [String]
4706
4861
  #
4707
4862
  # @!attribute [rw] export_config
@@ -4724,6 +4879,20 @@ module Aws::CodeBuild
4724
4879
  # CodeBuild report group tags.
4725
4880
  # @return [Array<Types::Tag>]
4726
4881
  #
4882
+ # @!attribute [rw] status
4883
+ # The status of the report group. This property is read-only.
4884
+ #
4885
+ # This can be one of the following values:
4886
+ #
4887
+ # ACTIVE
4888
+ #
4889
+ # : The report group is active.
4890
+ #
4891
+ # DELETING
4892
+ #
4893
+ # : The report group is in the process of being deleted.
4894
+ # @return [String]
4895
+ #
4727
4896
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportGroup AWS API Documentation
4728
4897
  #
4729
4898
  class ReportGroup < Struct.new(
@@ -4733,7 +4902,54 @@ module Aws::CodeBuild
4733
4902
  :export_config,
4734
4903
  :created,
4735
4904
  :last_modified,
4736
- :tags)
4905
+ :tags,
4906
+ :status)
4907
+ SENSITIVE = []
4908
+ include Aws::Structure
4909
+ end
4910
+
4911
+ # Contains trend statistics for a set of reports. The actual values
4912
+ # depend on the type of trend being collected. For more information, see
4913
+ # .
4914
+ #
4915
+ # @!attribute [rw] average
4916
+ # Contains the average of all values analyzed.
4917
+ # @return [String]
4918
+ #
4919
+ # @!attribute [rw] max
4920
+ # Contains the maximum value analyzed.
4921
+ # @return [String]
4922
+ #
4923
+ # @!attribute [rw] min
4924
+ # Contains the minimum value analyzed.
4925
+ # @return [String]
4926
+ #
4927
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportGroupTrendStats AWS API Documentation
4928
+ #
4929
+ class ReportGroupTrendStats < Struct.new(
4930
+ :average,
4931
+ :max,
4932
+ :min)
4933
+ SENSITIVE = []
4934
+ include Aws::Structure
4935
+ end
4936
+
4937
+ # Contains the unmodified data for the report. For more information, see
4938
+ # .
4939
+ #
4940
+ # @!attribute [rw] report_arn
4941
+ # The ARN of the report.
4942
+ # @return [String]
4943
+ #
4944
+ # @!attribute [rw] data
4945
+ # The value of the requested data field from the report.
4946
+ # @return [String]
4947
+ #
4948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportWithRawData AWS API Documentation
4949
+ #
4950
+ class ReportWithRawData < Struct.new(
4951
+ :report_arn,
4952
+ :data)
4737
4953
  SENSITIVE = []
4738
4954
  include Aws::Structure
4739
4955
  end
@@ -5678,12 +5894,22 @@ module Aws::CodeBuild
5678
5894
  # Set to true to report to your source provider the status of a
5679
5895
  # build's start and completion. If you use this option with a source
5680
5896
  # provider other than GitHub, GitHub Enterprise, or Bitbucket, an
5681
- # invalidInputException is thrown.
5897
+ # `invalidInputException` is thrown.
5898
+ #
5899
+ # To be able to report the build status to the source provider, the
5900
+ # user associated with the source provider must have write access to
5901
+ # the repo. If the user does not have write access, the build status
5902
+ # cannot be updated. For more information, see [Source provider
5903
+ # access][1] in the *AWS CodeBuild User Guide*.
5682
5904
  #
5683
5905
  # <note markdown="1"> The status of a build triggered by a webhook is always reported to
5684
5906
  # your source provider.
5685
5907
  #
5686
5908
  # </note>
5909
+ #
5910
+ #
5911
+ #
5912
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html
5687
5913
  # @return [Boolean]
5688
5914
  #
5689
5915
  # @!attribute [rw] build_status_config_override
@@ -6215,6 +6441,7 @@ module Aws::CodeBuild
6215
6441
  # },
6216
6442
  # timeout_in_mins: 1,
6217
6443
  # },
6444
+ # concurrent_build_limit: 1,
6218
6445
  # }
6219
6446
  #
6220
6447
  # @!attribute [rw] name
@@ -6363,6 +6590,17 @@ module Aws::CodeBuild
6363
6590
  # Contains configuration information about a batch build project.
6364
6591
  # @return [Types::ProjectBuildBatchConfig]
6365
6592
  #
6593
+ # @!attribute [rw] concurrent_build_limit
6594
+ # The maximum number of concurrent builds that are allowed for this
6595
+ # project.
6596
+ #
6597
+ # New builds are only started if the current number of builds is less
6598
+ # than or equal to this limit. If the current build count meets this
6599
+ # limit, new builds are throttled and are not run.
6600
+ #
6601
+ # To remove this limit, set this value to -1.
6602
+ # @return [Integer]
6603
+ #
6366
6604
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProjectInput AWS API Documentation
6367
6605
  #
6368
6606
  class UpdateProjectInput < Struct.new(
@@ -6385,7 +6623,8 @@ module Aws::CodeBuild
6385
6623
  :badge_enabled,
6386
6624
  :logs_config,
6387
6625
  :file_system_locations,
6388
- :build_batch_config)
6626
+ :build_batch_config,
6627
+ :concurrent_build_limit)
6389
6628
  SENSITIVE = []
6390
6629
  include Aws::Structure
6391
6630
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codebuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.63.0
4
+ version: 1.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.109.0
22
+ version: 3.112.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.109.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement