aws-sdk-codebuild 1.45.0 → 1.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3351b9a2a22311291bcca852b48e0b03f8d352fa
4
- data.tar.gz: fc71fe2467afc609098e92897bfe59cc834e5d24
3
+ metadata.gz: 6293564d91a622a3c545ec22da7c6cc41e2b4d46
4
+ data.tar.gz: e2bc7128eb4e5146d8f95500b85c49e9cede14e5
5
5
  SHA512:
6
- metadata.gz: 8da07f7cb2a68e3e1c7e5ec96e7ce763b9d0542318d1f7bb78b30e4fe325eb37e69d8f7bfebc6d77c0d39fabbf7e5f9740eff67f697773e82afc21038ff92610
7
- data.tar.gz: b34c6dde6768e1d10c18973e9b55c199515715c41deff1b40ab91dc7064c2b61fcfe4ef8c9dd2cafbd97f77bc5304a3aae0b2747d51e85316e94c98ee55d23dc
6
+ metadata.gz: 20f6962bc9927838cc7ae709e037254d313ba30e8a4fe6c7c1ab123d08f1794b17b87db10be8728d11def7ae708dc0b8d93965ecbacc4740dd50050521e4781b
7
+ data.tar.gz: aa3a270ecf3e0e4fe757b48847e507c7a771e707189a07637e14893a452eb9d9c05f55c8a82f4910761ac04a4b6e00a2ac8e99a43b274c4ee2ed300762fb115a
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-codebuild/customizations'
42
42
  # @service
43
43
  module Aws::CodeBuild
44
44
 
45
- GEM_VERSION = '1.45.0'
45
+ GEM_VERSION = '1.46.0'
46
46
 
47
47
  end
@@ -686,7 +686,9 @@ module Aws::CodeBuild
686
686
  # Gets information about one or more build projects.
687
687
  #
688
688
  # @option params [required, Array<String>] :names
689
- # The names of the build projects.
689
+ # The names or ARNs of the build projects. To get information about a
690
+ # project shared with your AWS account, its ARN must be specified. You
691
+ # cannot specify a shared project using its name.
690
692
  #
691
693
  # @return [Types::BatchGetProjectsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
692
694
  #
@@ -1463,6 +1465,28 @@ module Aws::CodeBuild
1463
1465
  req.send_request(options)
1464
1466
  end
1465
1467
 
1468
+ # Deletes a resource policy that is identified by its resource ARN.
1469
+ #
1470
+ # @option params [required, String] :resource_arn
1471
+ # The ARN of the resource that is associated with the resource policy.
1472
+ #
1473
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1474
+ #
1475
+ # @example Request syntax with placeholder values
1476
+ #
1477
+ # resp = client.delete_resource_policy({
1478
+ # resource_arn: "NonEmptyString", # required
1479
+ # })
1480
+ #
1481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteResourcePolicy AWS API Documentation
1482
+ #
1483
+ # @overload delete_resource_policy(params = {})
1484
+ # @param [Hash] params ({})
1485
+ def delete_resource_policy(params = {}, options = {})
1486
+ req = build_request(:delete_resource_policy, params)
1487
+ req.send_request(options)
1488
+ end
1489
+
1466
1490
  # Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source
1467
1491
  # credentials.
1468
1492
  #
@@ -1577,6 +1601,34 @@ module Aws::CodeBuild
1577
1601
  req.send_request(options)
1578
1602
  end
1579
1603
 
1604
+ # Gets a resource policy that is identified by its resource ARN.
1605
+ #
1606
+ # @option params [required, String] :resource_arn
1607
+ # The ARN of the resource that is associated with the resource policy.
1608
+ #
1609
+ # @return [Types::GetResourcePolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1610
+ #
1611
+ # * {Types::GetResourcePolicyOutput#policy #policy} => String
1612
+ #
1613
+ # @example Request syntax with placeholder values
1614
+ #
1615
+ # resp = client.get_resource_policy({
1616
+ # resource_arn: "NonEmptyString", # required
1617
+ # })
1618
+ #
1619
+ # @example Response structure
1620
+ #
1621
+ # resp.policy #=> String
1622
+ #
1623
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetResourcePolicy AWS API Documentation
1624
+ #
1625
+ # @overload get_resource_policy(params = {})
1626
+ # @param [Hash] params ({})
1627
+ def get_resource_policy(params = {}, options = {})
1628
+ req = build_request(:get_resource_policy, params)
1629
+ req.send_request(options)
1630
+ end
1631
+
1580
1632
  # Imports the source repository credentials for an AWS CodeBuild project
1581
1633
  # that has its source code stored in a GitHub, GitHub Enterprise, or
1582
1634
  # Bitbucket repository.
@@ -2020,6 +2072,131 @@ module Aws::CodeBuild
2020
2072
  req.send_request(options)
2021
2073
  end
2022
2074
 
2075
+ # Gets a list of projects that are shared with other AWS accounts or
2076
+ # users.
2077
+ #
2078
+ # @option params [String] :sort_by
2079
+ # The criterion to be used to list build projects shared with the
2080
+ # current AWS account or user. Valid values include:
2081
+ #
2082
+ # * `ARN`\: List based on the ARN.
2083
+ #
2084
+ # * `MODIFIED_TIME`\: List based on when information about the shared
2085
+ # project was last changed.
2086
+ #
2087
+ # @option params [String] :sort_order
2088
+ # The order in which to list shared build projects. Valid values
2089
+ # include:
2090
+ #
2091
+ # * `ASCENDING`\: List in ascending order.
2092
+ #
2093
+ # * `DESCENDING`\: List in descending order.
2094
+ #
2095
+ # @option params [Integer] :max_results
2096
+ # The maximum number of paginated shared build projects returned per
2097
+ # response. Use `nextToken` to iterate pages in the list of returned
2098
+ # `Project` objects. The default value is 100.
2099
+ #
2100
+ # @option params [String] :next_token
2101
+ # During a previous call, the maximum number of items that can be
2102
+ # returned is the value specified in `maxResults`. If there more items
2103
+ # in the list, then a unique string called a *nextToken* is returned. To
2104
+ # get the next batch of items in the list, call this operation again,
2105
+ # adding the next token to the call. To get all of the items in the
2106
+ # list, keep calling this operation with each subsequent next token that
2107
+ # is returned, until no more next tokens are returned.
2108
+ #
2109
+ # @return [Types::ListSharedProjectsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2110
+ #
2111
+ # * {Types::ListSharedProjectsOutput#next_token #next_token} => String
2112
+ # * {Types::ListSharedProjectsOutput#projects #projects} => Array&lt;String&gt;
2113
+ #
2114
+ # @example Request syntax with placeholder values
2115
+ #
2116
+ # resp = client.list_shared_projects({
2117
+ # sort_by: "ARN", # accepts ARN, MODIFIED_TIME
2118
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2119
+ # max_results: 1,
2120
+ # next_token: "NonEmptyString",
2121
+ # })
2122
+ #
2123
+ # @example Response structure
2124
+ #
2125
+ # resp.next_token #=> String
2126
+ # resp.projects #=> Array
2127
+ # resp.projects[0] #=> String
2128
+ #
2129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedProjects AWS API Documentation
2130
+ #
2131
+ # @overload list_shared_projects(params = {})
2132
+ # @param [Hash] params ({})
2133
+ def list_shared_projects(params = {}, options = {})
2134
+ req = build_request(:list_shared_projects, params)
2135
+ req.send_request(options)
2136
+ end
2137
+
2138
+ # Gets a list of report groups that are shared with other AWS accounts
2139
+ # or users.
2140
+ #
2141
+ # @option params [String] :sort_order
2142
+ # The order in which to list shared report groups. Valid values include:
2143
+ #
2144
+ # * `ASCENDING`\: List in ascending order.
2145
+ #
2146
+ # * `DESCENDING`\: List in descending order.
2147
+ #
2148
+ # @option params [String] :sort_by
2149
+ # The criterion to be used to list report groups shared with the current
2150
+ # AWS account or user. Valid values include:
2151
+ #
2152
+ # * `ARN`\: List based on the ARN.
2153
+ #
2154
+ # * `MODIFIED_TIME`\: List based on when information about the shared
2155
+ # report group was last changed.
2156
+ #
2157
+ # @option params [String] :next_token
2158
+ # During a previous call, the maximum number of items that can be
2159
+ # returned is the value specified in `maxResults`. If there more items
2160
+ # in the list, then a unique string called a *nextToken* is returned. To
2161
+ # get the next batch of items in the list, call this operation again,
2162
+ # adding the next token to the call. To get all of the items in the
2163
+ # list, keep calling this operation with each subsequent next token that
2164
+ # is returned, until no more next tokens are returned.
2165
+ #
2166
+ # @option params [Integer] :max_results
2167
+ # The maximum number of paginated shared report groups per response. Use
2168
+ # `nextToken` to iterate pages in the list of returned `ReportGroup`
2169
+ # objects. The default value is 100.
2170
+ #
2171
+ # @return [Types::ListSharedReportGroupsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2172
+ #
2173
+ # * {Types::ListSharedReportGroupsOutput#next_token #next_token} => String
2174
+ # * {Types::ListSharedReportGroupsOutput#report_groups #report_groups} => Array&lt;String&gt;
2175
+ #
2176
+ # @example Request syntax with placeholder values
2177
+ #
2178
+ # resp = client.list_shared_report_groups({
2179
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2180
+ # sort_by: "ARN", # accepts ARN, MODIFIED_TIME
2181
+ # next_token: "String",
2182
+ # max_results: 1,
2183
+ # })
2184
+ #
2185
+ # @example Response structure
2186
+ #
2187
+ # resp.next_token #=> String
2188
+ # resp.report_groups #=> Array
2189
+ # resp.report_groups[0] #=> String
2190
+ #
2191
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedReportGroups AWS API Documentation
2192
+ #
2193
+ # @overload list_shared_report_groups(params = {})
2194
+ # @param [Hash] params ({})
2195
+ def list_shared_report_groups(params = {}, options = {})
2196
+ req = build_request(:list_shared_report_groups, params)
2197
+ req.send_request(options)
2198
+ end
2199
+
2023
2200
  # Returns a list of `SourceCredentialsInfo` objects.
2024
2201
  #
2025
2202
  # @return [Types::ListSourceCredentialsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2042,6 +2219,47 @@ module Aws::CodeBuild
2042
2219
  req.send_request(options)
2043
2220
  end
2044
2221
 
2222
+ # Stores a resource policy for the ARN of a `Project` or `ReportGroup`
2223
+ # object.
2224
+ #
2225
+ # @option params [required, String] :policy
2226
+ # A JSON-formatted resource policy. For more information, see [Sharing a
2227
+ # Project][1] and [Sharing a Report Group][2] in the *AWS CodeBuild User
2228
+ # Guide*.
2229
+ #
2230
+ #
2231
+ #
2232
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share
2233
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share
2234
+ #
2235
+ # @option params [required, String] :resource_arn
2236
+ # The ARN of the `Project` or `ReportGroup` resource you want to
2237
+ # associate with a resource policy.
2238
+ #
2239
+ # @return [Types::PutResourcePolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2240
+ #
2241
+ # * {Types::PutResourcePolicyOutput#resource_arn #resource_arn} => String
2242
+ #
2243
+ # @example Request syntax with placeholder values
2244
+ #
2245
+ # resp = client.put_resource_policy({
2246
+ # policy: "NonEmptyString", # required
2247
+ # resource_arn: "NonEmptyString", # required
2248
+ # })
2249
+ #
2250
+ # @example Response structure
2251
+ #
2252
+ # resp.resource_arn #=> String
2253
+ #
2254
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/PutResourcePolicy AWS API Documentation
2255
+ #
2256
+ # @overload put_resource_policy(params = {})
2257
+ # @param [Hash] params ({})
2258
+ def put_resource_policy(params = {}, options = {})
2259
+ req = build_request(:put_resource_policy, params)
2260
+ req.send_request(options)
2261
+ end
2262
+
2045
2263
  # Starts running a build.
2046
2264
  #
2047
2265
  # @option params [required, String] :project_name
@@ -3049,7 +3267,7 @@ module Aws::CodeBuild
3049
3267
  params: params,
3050
3268
  config: config)
3051
3269
  context[:gem_name] = 'aws-sdk-codebuild'
3052
- context[:gem_version] = '1.45.0'
3270
+ context[:gem_version] = '1.46.0'
3053
3271
  Seahorse::Client::Request.new(handlers, context)
3054
3272
  end
3055
3273
 
@@ -55,6 +55,8 @@ module Aws::CodeBuild
55
55
  DeleteReportGroupOutput = Shapes::StructureShape.new(name: 'DeleteReportGroupOutput')
56
56
  DeleteReportInput = Shapes::StructureShape.new(name: 'DeleteReportInput')
57
57
  DeleteReportOutput = Shapes::StructureShape.new(name: 'DeleteReportOutput')
58
+ DeleteResourcePolicyInput = Shapes::StructureShape.new(name: 'DeleteResourcePolicyInput')
59
+ DeleteResourcePolicyOutput = Shapes::StructureShape.new(name: 'DeleteResourcePolicyOutput')
58
60
  DeleteSourceCredentialsInput = Shapes::StructureShape.new(name: 'DeleteSourceCredentialsInput')
59
61
  DeleteSourceCredentialsOutput = Shapes::StructureShape.new(name: 'DeleteSourceCredentialsOutput')
60
62
  DeleteWebhookInput = Shapes::StructureShape.new(name: 'DeleteWebhookInput')
@@ -75,6 +77,8 @@ module Aws::CodeBuild
75
77
  ExportedEnvironmentVariables = Shapes::ListShape.new(name: 'ExportedEnvironmentVariables')
76
78
  FilterGroup = Shapes::ListShape.new(name: 'FilterGroup')
77
79
  FilterGroups = Shapes::ListShape.new(name: 'FilterGroups')
80
+ GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
81
+ GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
78
82
  GitCloneDepth = Shapes::IntegerShape.new(name: 'GitCloneDepth')
79
83
  GitSubmodulesConfig = Shapes::StructureShape.new(name: 'GitSubmodulesConfig')
80
84
  ImagePullCredentialsType = Shapes::StringShape.new(name: 'ImagePullCredentialsType')
@@ -100,6 +104,10 @@ module Aws::CodeBuild
100
104
  ListReportsForReportGroupOutput = Shapes::StructureShape.new(name: 'ListReportsForReportGroupOutput')
101
105
  ListReportsInput = Shapes::StructureShape.new(name: 'ListReportsInput')
102
106
  ListReportsOutput = Shapes::StructureShape.new(name: 'ListReportsOutput')
107
+ ListSharedProjectsInput = Shapes::StructureShape.new(name: 'ListSharedProjectsInput')
108
+ ListSharedProjectsOutput = Shapes::StructureShape.new(name: 'ListSharedProjectsOutput')
109
+ ListSharedReportGroupsInput = Shapes::StructureShape.new(name: 'ListSharedReportGroupsInput')
110
+ ListSharedReportGroupsOutput = Shapes::StructureShape.new(name: 'ListSharedReportGroupsOutput')
103
111
  ListSourceCredentialsInput = Shapes::StructureShape.new(name: 'ListSourceCredentialsInput')
104
112
  ListSourceCredentialsOutput = Shapes::StructureShape.new(name: 'ListSourceCredentialsOutput')
105
113
  LogsConfig = Shapes::StructureShape.new(name: 'LogsConfig')
@@ -113,6 +121,7 @@ module Aws::CodeBuild
113
121
  PhaseContexts = Shapes::ListShape.new(name: 'PhaseContexts')
114
122
  PlatformType = Shapes::StringShape.new(name: 'PlatformType')
115
123
  Project = Shapes::StructureShape.new(name: 'Project')
124
+ ProjectArns = Shapes::ListShape.new(name: 'ProjectArns')
116
125
  ProjectArtifacts = Shapes::StructureShape.new(name: 'ProjectArtifacts')
117
126
  ProjectArtifactsList = Shapes::ListShape.new(name: 'ProjectArtifactsList')
118
127
  ProjectBadge = Shapes::StructureShape.new(name: 'ProjectBadge')
@@ -128,6 +137,8 @@ module Aws::CodeBuild
128
137
  ProjectSourceVersion = Shapes::StructureShape.new(name: 'ProjectSourceVersion')
129
138
  ProjectSources = Shapes::ListShape.new(name: 'ProjectSources')
130
139
  Projects = Shapes::ListShape.new(name: 'Projects')
140
+ PutResourcePolicyInput = Shapes::StructureShape.new(name: 'PutResourcePolicyInput')
141
+ PutResourcePolicyOutput = Shapes::StructureShape.new(name: 'PutResourcePolicyOutput')
131
142
  RegistryCredential = Shapes::StructureShape.new(name: 'RegistryCredential')
132
143
  Report = Shapes::StructureShape.new(name: 'Report')
133
144
  ReportArns = Shapes::ListShape.new(name: 'ReportArns')
@@ -151,6 +162,7 @@ module Aws::CodeBuild
151
162
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
152
163
  SensitiveNonEmptyString = Shapes::StringShape.new(name: 'SensitiveNonEmptyString')
153
164
  ServerType = Shapes::StringShape.new(name: 'ServerType')
165
+ SharedResourceSortByType = Shapes::StringShape.new(name: 'SharedResourceSortByType')
154
166
  SortOrderType = Shapes::StringShape.new(name: 'SortOrderType')
155
167
  SourceAuth = Shapes::StructureShape.new(name: 'SourceAuth')
156
168
  SourceAuthType = Shapes::StringShape.new(name: 'SourceAuthType')
@@ -344,6 +356,11 @@ module Aws::CodeBuild
344
356
 
345
357
  DeleteReportOutput.struct_class = Types::DeleteReportOutput
346
358
 
359
+ DeleteResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "resourceArn"))
360
+ DeleteResourcePolicyInput.struct_class = Types::DeleteResourcePolicyInput
361
+
362
+ DeleteResourcePolicyOutput.struct_class = Types::DeleteResourcePolicyOutput
363
+
347
364
  DeleteSourceCredentialsInput.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "arn"))
348
365
  DeleteSourceCredentialsInput.struct_class = Types::DeleteSourceCredentialsInput
349
366
 
@@ -401,6 +418,12 @@ module Aws::CodeBuild
401
418
 
402
419
  FilterGroups.member = Shapes::ShapeRef.new(shape: FilterGroup)
403
420
 
421
+ GetResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "resourceArn"))
422
+ GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
423
+
424
+ GetResourcePolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "policy"))
425
+ GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
426
+
404
427
  GitSubmodulesConfig.add_member(:fetch_submodules, Shapes::ShapeRef.new(shape: WrapperBoolean, required: true, location_name: "fetchSubmodules"))
405
428
  GitSubmodulesConfig.struct_class = Types::GitSubmodulesConfig
406
429
 
@@ -483,6 +506,26 @@ module Aws::CodeBuild
483
506
  ListReportsOutput.add_member(:reports, Shapes::ShapeRef.new(shape: ReportArns, location_name: "reports"))
484
507
  ListReportsOutput.struct_class = Types::ListReportsOutput
485
508
 
509
+ ListSharedProjectsInput.add_member(:sort_by, Shapes::ShapeRef.new(shape: SharedResourceSortByType, location_name: "sortBy"))
510
+ ListSharedProjectsInput.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrderType, location_name: "sortOrder"))
511
+ ListSharedProjectsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "maxResults"))
512
+ ListSharedProjectsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "nextToken"))
513
+ ListSharedProjectsInput.struct_class = Types::ListSharedProjectsInput
514
+
515
+ ListSharedProjectsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
516
+ ListSharedProjectsOutput.add_member(:projects, Shapes::ShapeRef.new(shape: ProjectArns, location_name: "projects"))
517
+ ListSharedProjectsOutput.struct_class = Types::ListSharedProjectsOutput
518
+
519
+ ListSharedReportGroupsInput.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrderType, location_name: "sortOrder"))
520
+ ListSharedReportGroupsInput.add_member(:sort_by, Shapes::ShapeRef.new(shape: SharedResourceSortByType, location_name: "sortBy"))
521
+ ListSharedReportGroupsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
522
+ ListSharedReportGroupsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "maxResults"))
523
+ ListSharedReportGroupsInput.struct_class = Types::ListSharedReportGroupsInput
524
+
525
+ ListSharedReportGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
526
+ ListSharedReportGroupsOutput.add_member(:report_groups, Shapes::ShapeRef.new(shape: ReportGroupArns, location_name: "reportGroups"))
527
+ ListSharedReportGroupsOutput.struct_class = Types::ListSharedReportGroupsOutput
528
+
486
529
  ListSourceCredentialsInput.struct_class = Types::ListSourceCredentialsInput
487
530
 
488
531
  ListSourceCredentialsOutput.add_member(:source_credentials_infos, Shapes::ShapeRef.new(shape: SourceCredentialsInfos, location_name: "sourceCredentialsInfos"))
@@ -536,6 +579,8 @@ module Aws::CodeBuild
536
579
  Project.add_member(:logs_config, Shapes::ShapeRef.new(shape: LogsConfig, location_name: "logsConfig"))
537
580
  Project.struct_class = Types::Project
538
581
 
582
+ ProjectArns.member = Shapes::ShapeRef.new(shape: NonEmptyString)
583
+
539
584
  ProjectArtifacts.add_member(:type, Shapes::ShapeRef.new(shape: ArtifactsType, required: true, location_name: "type"))
540
585
  ProjectArtifacts.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "location"))
541
586
  ProjectArtifacts.add_member(:path, Shapes::ShapeRef.new(shape: String, location_name: "path"))
@@ -593,6 +638,13 @@ module Aws::CodeBuild
593
638
 
594
639
  Projects.member = Shapes::ShapeRef.new(shape: Project)
595
640
 
641
+ PutResourcePolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "policy"))
642
+ PutResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "resourceArn"))
643
+ PutResourcePolicyInput.struct_class = Types::PutResourcePolicyInput
644
+
645
+ PutResourcePolicyOutput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "resourceArn"))
646
+ PutResourcePolicyOutput.struct_class = Types::PutResourcePolicyOutput
647
+
596
648
  RegistryCredential.add_member(:credential, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "credential"))
597
649
  RegistryCredential.add_member(:credential_provider, Shapes::ShapeRef.new(shape: CredentialProviderType, required: true, location_name: "credentialProvider"))
598
650
  RegistryCredential.struct_class = Types::RegistryCredential
@@ -909,6 +961,15 @@ module Aws::CodeBuild
909
961
  o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
910
962
  end)
911
963
 
964
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
965
+ o.name = "DeleteResourcePolicy"
966
+ o.http_method = "POST"
967
+ o.http_request_uri = "/"
968
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyInput)
969
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyOutput)
970
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
971
+ end)
972
+
912
973
  api.add_operation(:delete_source_credentials, Seahorse::Model::Operation.new.tap do |o|
913
974
  o.name = "DeleteSourceCredentials"
914
975
  o.http_method = "POST"
@@ -940,6 +1001,16 @@ module Aws::CodeBuild
940
1001
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
941
1002
  end)
942
1003
 
1004
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1005
+ o.name = "GetResourcePolicy"
1006
+ o.http_method = "POST"
1007
+ o.http_request_uri = "/"
1008
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyInput)
1009
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyOutput)
1010
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1011
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1012
+ end)
1013
+
943
1014
  api.add_operation(:import_source_credentials, Seahorse::Model::Operation.new.tap do |o|
944
1015
  o.name = "ImportSourceCredentials"
945
1016
  o.http_method = "POST"
@@ -1025,6 +1096,24 @@ module Aws::CodeBuild
1025
1096
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1026
1097
  end)
1027
1098
 
1099
+ api.add_operation(:list_shared_projects, Seahorse::Model::Operation.new.tap do |o|
1100
+ o.name = "ListSharedProjects"
1101
+ o.http_method = "POST"
1102
+ o.http_request_uri = "/"
1103
+ o.input = Shapes::ShapeRef.new(shape: ListSharedProjectsInput)
1104
+ o.output = Shapes::ShapeRef.new(shape: ListSharedProjectsOutput)
1105
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1106
+ end)
1107
+
1108
+ api.add_operation(:list_shared_report_groups, Seahorse::Model::Operation.new.tap do |o|
1109
+ o.name = "ListSharedReportGroups"
1110
+ o.http_method = "POST"
1111
+ o.http_request_uri = "/"
1112
+ o.input = Shapes::ShapeRef.new(shape: ListSharedReportGroupsInput)
1113
+ o.output = Shapes::ShapeRef.new(shape: ListSharedReportGroupsOutput)
1114
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1115
+ end)
1116
+
1028
1117
  api.add_operation(:list_source_credentials, Seahorse::Model::Operation.new.tap do |o|
1029
1118
  o.name = "ListSourceCredentials"
1030
1119
  o.http_method = "POST"
@@ -1033,6 +1122,16 @@ module Aws::CodeBuild
1033
1122
  o.output = Shapes::ShapeRef.new(shape: ListSourceCredentialsOutput)
1034
1123
  end)
1035
1124
 
1125
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1126
+ o.name = "PutResourcePolicy"
1127
+ o.http_method = "POST"
1128
+ o.http_request_uri = "/"
1129
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyInput)
1130
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyOutput)
1131
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1132
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1133
+ end)
1134
+
1036
1135
  api.add_operation(:start_build, Seahorse::Model::Operation.new.tap do |o|
1037
1136
  o.name = "StartBuild"
1038
1137
  o.http_method = "POST"
@@ -84,7 +84,9 @@ module Aws::CodeBuild
84
84
  # }
85
85
  #
86
86
  # @!attribute [rw] names
87
- # The names of the build projects.
87
+ # The names or ARNs of the build projects. To get information about a
88
+ # project shared with your AWS account, its ARN must be specified. You
89
+ # cannot specify a shared project using its name.
88
90
  # @return [Array<String>]
89
91
  #
90
92
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetProjectsInput AWS API Documentation
@@ -1095,6 +1097,28 @@ module Aws::CodeBuild
1095
1097
  #
1096
1098
  class DeleteReportOutput < Aws::EmptyStructure; end
1097
1099
 
1100
+ # @note When making an API call, you may pass DeleteResourcePolicyInput
1101
+ # data as a hash:
1102
+ #
1103
+ # {
1104
+ # resource_arn: "NonEmptyString", # required
1105
+ # }
1106
+ #
1107
+ # @!attribute [rw] resource_arn
1108
+ # The ARN of the resource that is associated with the resource policy.
1109
+ # @return [String]
1110
+ #
1111
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteResourcePolicyInput AWS API Documentation
1112
+ #
1113
+ class DeleteResourcePolicyInput < Struct.new(
1114
+ :resource_arn)
1115
+ include Aws::Structure
1116
+ end
1117
+
1118
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteResourcePolicyOutput AWS API Documentation
1119
+ #
1120
+ class DeleteResourcePolicyOutput < Aws::EmptyStructure; end
1121
+
1098
1122
  # @note When making an API call, you may pass DeleteSourceCredentialsInput
1099
1123
  # data as a hash:
1100
1124
  #
@@ -1349,6 +1373,36 @@ module Aws::CodeBuild
1349
1373
  include Aws::Structure
1350
1374
  end
1351
1375
 
1376
+ # @note When making an API call, you may pass GetResourcePolicyInput
1377
+ # data as a hash:
1378
+ #
1379
+ # {
1380
+ # resource_arn: "NonEmptyString", # required
1381
+ # }
1382
+ #
1383
+ # @!attribute [rw] resource_arn
1384
+ # The ARN of the resource that is associated with the resource policy.
1385
+ # @return [String]
1386
+ #
1387
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetResourcePolicyInput AWS API Documentation
1388
+ #
1389
+ class GetResourcePolicyInput < Struct.new(
1390
+ :resource_arn)
1391
+ include Aws::Structure
1392
+ end
1393
+
1394
+ # @!attribute [rw] policy
1395
+ # The resource policy for the resource identified by the input ARN
1396
+ # parameter.
1397
+ # @return [String]
1398
+ #
1399
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetResourcePolicyOutput AWS API Documentation
1400
+ #
1401
+ class GetResourcePolicyOutput < Struct.new(
1402
+ :policy)
1403
+ include Aws::Structure
1404
+ end
1405
+
1352
1406
  # Information about the Git submodules configuration for an AWS
1353
1407
  # CodeBuild build project.
1354
1408
  #
@@ -1888,6 +1942,162 @@ module Aws::CodeBuild
1888
1942
  include Aws::Structure
1889
1943
  end
1890
1944
 
1945
+ # @note When making an API call, you may pass ListSharedProjectsInput
1946
+ # data as a hash:
1947
+ #
1948
+ # {
1949
+ # sort_by: "ARN", # accepts ARN, MODIFIED_TIME
1950
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
1951
+ # max_results: 1,
1952
+ # next_token: "NonEmptyString",
1953
+ # }
1954
+ #
1955
+ # @!attribute [rw] sort_by
1956
+ # The criterion to be used to list build projects shared with the
1957
+ # current AWS account or user. Valid values include:
1958
+ #
1959
+ # * `ARN`\: List based on the ARN.
1960
+ #
1961
+ # * `MODIFIED_TIME`\: List based on when information about the shared
1962
+ # project was last changed.
1963
+ # @return [String]
1964
+ #
1965
+ # @!attribute [rw] sort_order
1966
+ # The order in which to list shared build projects. Valid values
1967
+ # include:
1968
+ #
1969
+ # * `ASCENDING`\: List in ascending order.
1970
+ #
1971
+ # * `DESCENDING`\: List in descending order.
1972
+ # @return [String]
1973
+ #
1974
+ # @!attribute [rw] max_results
1975
+ # The maximum number of paginated shared build projects returned per
1976
+ # response. Use `nextToken` to iterate pages in the list of returned
1977
+ # `Project` objects. The default value is 100.
1978
+ # @return [Integer]
1979
+ #
1980
+ # @!attribute [rw] next_token
1981
+ # During a previous call, the maximum number of items that can be
1982
+ # returned is the value specified in `maxResults`. If there more items
1983
+ # in the list, then a unique string called a *nextToken* is returned.
1984
+ # To get the next batch of items in the list, call this operation
1985
+ # again, adding the next token to the call. To get all of the items in
1986
+ # the list, keep calling this operation with each subsequent next
1987
+ # token that is returned, until no more next tokens are returned.
1988
+ # @return [String]
1989
+ #
1990
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedProjectsInput AWS API Documentation
1991
+ #
1992
+ class ListSharedProjectsInput < Struct.new(
1993
+ :sort_by,
1994
+ :sort_order,
1995
+ :max_results,
1996
+ :next_token)
1997
+ include Aws::Structure
1998
+ end
1999
+
2000
+ # @!attribute [rw] next_token
2001
+ # During a previous call, the maximum number of items that can be
2002
+ # returned is the value specified in `maxResults`. If there more items
2003
+ # in the list, then a unique string called a *nextToken* is returned.
2004
+ # To get the next batch of items in the list, call this operation
2005
+ # again, adding the next token to the call. To get all of the items in
2006
+ # the list, keep calling this operation with each subsequent next
2007
+ # token that is returned, until no more next tokens are returned.
2008
+ # @return [String]
2009
+ #
2010
+ # @!attribute [rw] projects
2011
+ # The list of ARNs for the build projects shared with the current AWS
2012
+ # account or user.
2013
+ # @return [Array<String>]
2014
+ #
2015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedProjectsOutput AWS API Documentation
2016
+ #
2017
+ class ListSharedProjectsOutput < Struct.new(
2018
+ :next_token,
2019
+ :projects)
2020
+ include Aws::Structure
2021
+ end
2022
+
2023
+ # @note When making an API call, you may pass ListSharedReportGroupsInput
2024
+ # data as a hash:
2025
+ #
2026
+ # {
2027
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2028
+ # sort_by: "ARN", # accepts ARN, MODIFIED_TIME
2029
+ # next_token: "String",
2030
+ # max_results: 1,
2031
+ # }
2032
+ #
2033
+ # @!attribute [rw] sort_order
2034
+ # The order in which to list shared report groups. Valid values
2035
+ # include:
2036
+ #
2037
+ # * `ASCENDING`\: List in ascending order.
2038
+ #
2039
+ # * `DESCENDING`\: List in descending order.
2040
+ # @return [String]
2041
+ #
2042
+ # @!attribute [rw] sort_by
2043
+ # The criterion to be used to list report groups shared with the
2044
+ # current AWS account or user. Valid values include:
2045
+ #
2046
+ # * `ARN`\: List based on the ARN.
2047
+ #
2048
+ # * `MODIFIED_TIME`\: List based on when information about the shared
2049
+ # report group was last changed.
2050
+ # @return [String]
2051
+ #
2052
+ # @!attribute [rw] next_token
2053
+ # During a previous call, the maximum number of items that can be
2054
+ # returned is the value specified in `maxResults`. If there more items
2055
+ # in the list, then a unique string called a *nextToken* is returned.
2056
+ # To get the next batch of items in the list, call this operation
2057
+ # again, adding the next token to the call. To get all of the items in
2058
+ # the list, keep calling this operation with each subsequent next
2059
+ # token that is returned, until no more next tokens are returned.
2060
+ # @return [String]
2061
+ #
2062
+ # @!attribute [rw] max_results
2063
+ # The maximum number of paginated shared report groups per response.
2064
+ # Use `nextToken` to iterate pages in the list of returned
2065
+ # `ReportGroup` objects. The default value is 100.
2066
+ # @return [Integer]
2067
+ #
2068
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedReportGroupsInput AWS API Documentation
2069
+ #
2070
+ class ListSharedReportGroupsInput < Struct.new(
2071
+ :sort_order,
2072
+ :sort_by,
2073
+ :next_token,
2074
+ :max_results)
2075
+ include Aws::Structure
2076
+ end
2077
+
2078
+ # @!attribute [rw] next_token
2079
+ # During a previous call, the maximum number of items that can be
2080
+ # returned is the value specified in `maxResults`. If there more items
2081
+ # in the list, then a unique string called a *nextToken* is returned.
2082
+ # To get the next batch of items in the list, call this operation
2083
+ # again, adding the next token to the call. To get all of the items in
2084
+ # the list, keep calling this operation with each subsequent next
2085
+ # token that is returned, until no more next tokens are returned.
2086
+ # @return [String]
2087
+ #
2088
+ # @!attribute [rw] report_groups
2089
+ # The list of ARNs for the report groups shared with the current AWS
2090
+ # account or user.
2091
+ # @return [Array<String>]
2092
+ #
2093
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedReportGroupsOutput AWS API Documentation
2094
+ #
2095
+ class ListSharedReportGroupsOutput < Struct.new(
2096
+ :next_token,
2097
+ :report_groups)
2098
+ include Aws::Structure
2099
+ end
2100
+
1891
2101
  # @api private
1892
2102
  #
1893
2103
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSourceCredentialsInput AWS API Documentation
@@ -2876,6 +3086,50 @@ module Aws::CodeBuild
2876
3086
  include Aws::Structure
2877
3087
  end
2878
3088
 
3089
+ # @note When making an API call, you may pass PutResourcePolicyInput
3090
+ # data as a hash:
3091
+ #
3092
+ # {
3093
+ # policy: "NonEmptyString", # required
3094
+ # resource_arn: "NonEmptyString", # required
3095
+ # }
3096
+ #
3097
+ # @!attribute [rw] policy
3098
+ # A JSON-formatted resource policy. For more information, see [Sharing
3099
+ # a Project][1] and [Sharing a Report Group][2] in the *AWS CodeBuild
3100
+ # User Guide*.
3101
+ #
3102
+ #
3103
+ #
3104
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share
3105
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share
3106
+ # @return [String]
3107
+ #
3108
+ # @!attribute [rw] resource_arn
3109
+ # The ARN of the `Project` or `ReportGroup` resource you want to
3110
+ # associate with a resource policy.
3111
+ # @return [String]
3112
+ #
3113
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/PutResourcePolicyInput AWS API Documentation
3114
+ #
3115
+ class PutResourcePolicyInput < Struct.new(
3116
+ :policy,
3117
+ :resource_arn)
3118
+ include Aws::Structure
3119
+ end
3120
+
3121
+ # @!attribute [rw] resource_arn
3122
+ # The ARN of the `Project` or `ReportGroup` resource that is
3123
+ # associated with a resource policy.
3124
+ # @return [String]
3125
+ #
3126
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/PutResourcePolicyOutput AWS API Documentation
3127
+ #
3128
+ class PutResourcePolicyOutput < Struct.new(
3129
+ :resource_arn)
3130
+ include Aws::Structure
3131
+ end
3132
+
2879
3133
  # Information about credentials that provide access to a private Docker
2880
3134
  # registry. When this is set:
2881
3135
  #
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.45.0
4
+ version: 1.46.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: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core