aws-sdk-codeartifact 1.4.0 → 1.5.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
  SHA256:
3
- metadata.gz: 67acc2cb06911ea0aa3effabee528dbb76336974227f6f9bcf2d2b9cf06b4796
4
- data.tar.gz: b851402a569135626fdb79bf3a02e175c7f6dfc1d04d59a5ddf53ea8a7631601
3
+ metadata.gz: df71297753c7c03dd690345dd3969b3bd82fdb4d5a8ae194c7237e1085d661b1
4
+ data.tar.gz: 22fd7076fde08d62a5e10bfd3279de25f986343f3b71d20498ed15f14e0b19b8
5
5
  SHA512:
6
- metadata.gz: 825872f87fddda2965ee3eef2f8ec5091652da24130b2875b66a9a9462e3b07dad52bfb0f8be62616ea46ce9e609cdc4658bb6c88d5ffcc50c36f8612a57c366
7
- data.tar.gz: 1fe9f54064394b5dacce1593b898f006e50ceba699ec352a853c70b48da7f3184abd14cc9ca91b8a545309cf2afc2fa24901e9edfa368b05710e489ac46c8860
6
+ metadata.gz: 14acbb1ea30fae427fca17823a74215ac6913932c703f1f5544b3f50344aa844f46c6a45975bdb7fa16126b74d6f28bae550ee763bc7c3c5cf1bddf0861e7d88
7
+ data.tar.gz: f5371fd202ab5a1f8e3b7f66866f45390df1d8ef6144789c8503c26693fb2b31ff2b332c8b27399c9fbfab55f3fdace13120d76da912a0a080f1cca12c41faa8
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-codeartifact/customizations'
48
48
  # @!group service
49
49
  module Aws::CodeArtifact
50
50
 
51
- GEM_VERSION = '1.4.0'
51
+ GEM_VERSION = '1.5.0'
52
52
 
53
53
  end
@@ -560,6 +560,9 @@ module Aws::CodeArtifact
560
560
  # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html
561
561
  # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html
562
562
  #
563
+ # @option params [Array<Types::Tag>] :tags
564
+ # One or more tag key-value pairs for the domain.
565
+ #
563
566
  # @return [Types::CreateDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
564
567
  #
565
568
  # * {Types::CreateDomainResult#domain #domain} => Types::DomainDescription
@@ -569,6 +572,12 @@ module Aws::CodeArtifact
569
572
  # resp = client.create_domain({
570
573
  # domain: "DomainName", # required
571
574
  # encryption_key: "Arn",
575
+ # tags: [
576
+ # {
577
+ # key: "TagKey", # required
578
+ # value: "TagValue", # required
579
+ # },
580
+ # ],
572
581
  # })
573
582
  #
574
583
  # @example Response structure
@@ -581,6 +590,7 @@ module Aws::CodeArtifact
581
590
  # resp.domain.encryption_key #=> String
582
591
  # resp.domain.repository_count #=> Integer
583
592
  # resp.domain.asset_size_bytes #=> Integer
593
+ # resp.domain.s3_bucket_arn #=> String
584
594
  #
585
595
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomain AWS API Documentation
586
596
  #
@@ -617,6 +627,9 @@ module Aws::CodeArtifact
617
627
  #
618
628
  # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
619
629
  #
630
+ # @option params [Array<Types::Tag>] :tags
631
+ # One or more tag key-value pairs for the repository.
632
+ #
620
633
  # @return [Types::CreateRepositoryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
621
634
  #
622
635
  # * {Types::CreateRepositoryResult#repository #repository} => Types::RepositoryDescription
@@ -633,6 +646,12 @@ module Aws::CodeArtifact
633
646
  # repository_name: "RepositoryName", # required
634
647
  # },
635
648
  # ],
649
+ # tags: [
650
+ # {
651
+ # key: "TagKey", # required
652
+ # value: "TagValue", # required
653
+ # },
654
+ # ],
636
655
  # })
637
656
  #
638
657
  # @example Response structure
@@ -691,6 +710,7 @@ module Aws::CodeArtifact
691
710
  # resp.domain.encryption_key #=> String
692
711
  # resp.domain.repository_count #=> Integer
693
712
  # resp.domain.asset_size_bytes #=> Integer
713
+ # resp.domain.s3_bucket_arn #=> String
694
714
  #
695
715
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomain AWS API Documentation
696
716
  #
@@ -977,6 +997,7 @@ module Aws::CodeArtifact
977
997
  # resp.domain.encryption_key #=> String
978
998
  # resp.domain.repository_count #=> Integer
979
999
  # resp.domain.asset_size_bytes #=> Integer
1000
+ # resp.domain.s3_bucket_arn #=> String
980
1001
  #
981
1002
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomain AWS API Documentation
982
1003
  #
@@ -1181,11 +1202,18 @@ module Aws::CodeArtifact
1181
1202
  # status to `Disposed`. A disposed package version cannot be restored in
1182
1203
  # your repository because its assets are deleted.
1183
1204
  #
1184
- # To view all disposed package versions in a repository, use `
1185
- # ListackageVersions ` and set the ` status ` parameter to `Disposed`.
1205
+ # To view all disposed package versions in a repository, use [
1206
+ # `ListPackageVersions` ][1] and set the [ `status` ][2] parameter to
1207
+ # `Disposed`.
1186
1208
  #
1187
- # To view information about a disposed package version, use `
1188
- # ListPackageVersions ` and set the ` status ` parameter to `Disposed`.
1209
+ # To view information about a disposed package version, use [
1210
+ # `DescribePackageVersion` ][3]..
1211
+ #
1212
+ #
1213
+ #
1214
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html
1215
+ # [2]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax
1216
+ # [3]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html
1189
1217
  #
1190
1218
  # @option params [required, String] :domain
1191
1219
  # The name of the domain that contains the repository you want to
@@ -1282,10 +1310,11 @@ module Aws::CodeArtifact
1282
1310
  req.send_request(options)
1283
1311
  end
1284
1312
 
1285
- # Generates a temporary authentication token for accessing repositories
1313
+ # Generates a temporary authorization token for accessing repositories
1286
1314
  # in the domain. This API requires the
1287
1315
  # `codeartifact:GetAuthorizationToken` and `sts:GetServiceBearerToken`
1288
- # permissions.
1316
+ # permissions. For more information about authorization tokens, see [AWS
1317
+ # CodeArtifact authentication and tokens][1].
1289
1318
  #
1290
1319
  # <note markdown="1"> CodeArtifact authorization tokens are valid for a period of 12 hours
1291
1320
  # when created with the `login` command. You can call `login`
@@ -1303,14 +1332,15 @@ module Aws::CodeArtifact
1303
1332
  # token, the token will be valid for the full authorization period even
1304
1333
  # though this is longer than the 15-minute session duration.
1305
1334
  #
1306
- # See [Using IAM Roles][1] for more information on controlling session
1335
+ # See [Using IAM Roles][2] for more information on controlling session
1307
1336
  # duration.
1308
1337
  #
1309
1338
  # </note>
1310
1339
  #
1311
1340
  #
1312
1341
  #
1313
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
1342
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html
1343
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
1314
1344
  #
1315
1345
  # @option params [required, String] :domain
1316
1346
  # The name of the domain that is in scope for the generated
@@ -1322,6 +1352,10 @@ module Aws::CodeArtifact
1322
1352
  #
1323
1353
  # @option params [Integer] :duration_seconds
1324
1354
  # The time, in seconds, that the generated authorization token is valid.
1355
+ # Valid values are `0` and any number between `900` (15 minutes) and
1356
+ # `43200` (12 hours). A value of `0` will set the expiration of the
1357
+ # authorization token to the same expiration of the user's role's
1358
+ # temporary credentials.
1325
1359
  #
1326
1360
  # @return [Types::GetAuthorizationTokenResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1327
1361
  #
@@ -2247,9 +2281,45 @@ module Aws::CodeArtifact
2247
2281
  req.send_request(options)
2248
2282
  end
2249
2283
 
2284
+ # Gets information about AWS tags for a specified Amazon Resource Name
2285
+ # (ARN) in AWS CodeArtifact.
2286
+ #
2287
+ # @option params [required, String] :resource_arn
2288
+ # The Amazon Resource Name (ARN) of the resource to get tags for.
2289
+ #
2290
+ # @return [Types::ListTagsForResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2291
+ #
2292
+ # * {Types::ListTagsForResourceResult#tags #tags} => Array&lt;Types::Tag&gt;
2293
+ #
2294
+ # @example Request syntax with placeholder values
2295
+ #
2296
+ # resp = client.list_tags_for_resource({
2297
+ # resource_arn: "Arn", # required
2298
+ # })
2299
+ #
2300
+ # @example Response structure
2301
+ #
2302
+ # resp.tags #=> Array
2303
+ # resp.tags[0].key #=> String
2304
+ # resp.tags[0].value #=> String
2305
+ #
2306
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListTagsForResource AWS API Documentation
2307
+ #
2308
+ # @overload list_tags_for_resource(params = {})
2309
+ # @param [Hash] params ({})
2310
+ def list_tags_for_resource(params = {}, options = {})
2311
+ req = build_request(:list_tags_for_resource, params)
2312
+ req.send_request(options)
2313
+ end
2314
+
2250
2315
  # Sets a resource policy on a domain that specifies permissions to
2251
2316
  # access it.
2252
2317
  #
2318
+ # When you call `PutDomainPermissionsPolicy`, the resource policy on the
2319
+ # domain is ignored when evaluting permissions. This ensures that the
2320
+ # owner of a domain cannot lock themselves out of the domain, which
2321
+ # would prevent them from being able to update the resource policy.
2322
+ #
2253
2323
  # @option params [required, String] :domain
2254
2324
  # The name of the domain on which to set the resource policy.
2255
2325
  #
@@ -2297,6 +2367,12 @@ module Aws::CodeArtifact
2297
2367
  # Sets the resource policy on a repository that specifies permissions to
2298
2368
  # access it.
2299
2369
  #
2370
+ # When you call `PutRepositoryPermissionsPolicy`, the resource policy on
2371
+ # the repository is ignored when evaluting permissions. This ensures
2372
+ # that the owner of a repository cannot lock themselves out of the
2373
+ # repository, which would prevent them from being able to update the
2374
+ # resource policy.
2375
+ #
2300
2376
  # @option params [required, String] :domain
2301
2377
  # The name of the domain containing the repository to set the resource
2302
2378
  # policy on.
@@ -2347,6 +2423,65 @@ module Aws::CodeArtifact
2347
2423
  req.send_request(options)
2348
2424
  end
2349
2425
 
2426
+ # Adds or updates tags for a resource in AWS CodeArtifact.
2427
+ #
2428
+ # @option params [required, String] :resource_arn
2429
+ # The Amazon Resource Name (ARN) of the resource to which you want to
2430
+ # add or update tags.
2431
+ #
2432
+ # @option params [required, Array<Types::Tag>] :tags
2433
+ # The tags you want to modify or add to the resource.
2434
+ #
2435
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2436
+ #
2437
+ # @example Request syntax with placeholder values
2438
+ #
2439
+ # resp = client.tag_resource({
2440
+ # resource_arn: "Arn", # required
2441
+ # tags: [ # required
2442
+ # {
2443
+ # key: "TagKey", # required
2444
+ # value: "TagValue", # required
2445
+ # },
2446
+ # ],
2447
+ # })
2448
+ #
2449
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/TagResource AWS API Documentation
2450
+ #
2451
+ # @overload tag_resource(params = {})
2452
+ # @param [Hash] params ({})
2453
+ def tag_resource(params = {}, options = {})
2454
+ req = build_request(:tag_resource, params)
2455
+ req.send_request(options)
2456
+ end
2457
+
2458
+ # Removes tags from a resource in AWS CodeArtifact.
2459
+ #
2460
+ # @option params [required, String] :resource_arn
2461
+ # The Amazon Resource Name (ARN) of the resource to which you want to
2462
+ # remove tags.
2463
+ #
2464
+ # @option params [required, Array<String>] :tag_keys
2465
+ # The tag key for each tag that you want to remove from the resource.
2466
+ #
2467
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2468
+ #
2469
+ # @example Request syntax with placeholder values
2470
+ #
2471
+ # resp = client.untag_resource({
2472
+ # resource_arn: "Arn", # required
2473
+ # tag_keys: ["TagKey"], # required
2474
+ # })
2475
+ #
2476
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UntagResource AWS API Documentation
2477
+ #
2478
+ # @overload untag_resource(params = {})
2479
+ # @param [Hash] params ({})
2480
+ def untag_resource(params = {}, options = {})
2481
+ req = build_request(:untag_resource, params)
2482
+ req.send_request(options)
2483
+ end
2484
+
2350
2485
  # Updates the status of one or more versions of a package.
2351
2486
  #
2352
2487
  # @option params [required, String] :domain
@@ -2524,7 +2659,7 @@ module Aws::CodeArtifact
2524
2659
  params: params,
2525
2660
  config: config)
2526
2661
  context[:gem_name] = 'aws-sdk-codeartifact'
2527
- context[:gem_version] = '1.4.0'
2662
+ context[:gem_version] = '1.5.0'
2528
2663
  Seahorse::Client::Request.new(handlers, context)
2529
2664
  end
2530
2665
 
@@ -99,6 +99,8 @@ module Aws::CodeArtifact
99
99
  ListRepositoriesMaxResults = Shapes::IntegerShape.new(name: 'ListRepositoriesMaxResults')
100
100
  ListRepositoriesRequest = Shapes::StructureShape.new(name: 'ListRepositoriesRequest')
101
101
  ListRepositoriesResult = Shapes::StructureShape.new(name: 'ListRepositoriesResult')
102
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
103
+ ListTagsForResourceResult = Shapes::StructureShape.new(name: 'ListTagsForResourceResult')
102
104
  Long = Shapes::IntegerShape.new(name: 'Long')
103
105
  LongOptional = Shapes::IntegerShape.new(name: 'LongOptional')
104
106
  PackageDependency = Shapes::StructureShape.new(name: 'PackageDependency')
@@ -142,8 +144,17 @@ module Aws::CodeArtifact
142
144
  String255 = Shapes::StringShape.new(name: 'String255')
143
145
  SuccessfulPackageVersionInfo = Shapes::StructureShape.new(name: 'SuccessfulPackageVersionInfo')
144
146
  SuccessfulPackageVersionInfoMap = Shapes::MapShape.new(name: 'SuccessfulPackageVersionInfoMap')
147
+ Tag = Shapes::StructureShape.new(name: 'Tag')
148
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
149
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
150
+ TagList = Shapes::ListShape.new(name: 'TagList')
151
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
152
+ TagResourceResult = Shapes::StructureShape.new(name: 'TagResourceResult')
153
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
145
154
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
146
155
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
156
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
157
+ UntagResourceResult = Shapes::StructureShape.new(name: 'UntagResourceResult')
147
158
  UpdatePackageVersionsStatusRequest = Shapes::StructureShape.new(name: 'UpdatePackageVersionsStatusRequest')
148
159
  UpdatePackageVersionsStatusResult = Shapes::StructureShape.new(name: 'UpdatePackageVersionsStatusResult')
149
160
  UpdateRepositoryRequest = Shapes::StructureShape.new(name: 'UpdateRepositoryRequest')
@@ -201,6 +212,7 @@ module Aws::CodeArtifact
201
212
 
202
213
  CreateDomainRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
203
214
  CreateDomainRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: Arn, location_name: "encryptionKey"))
215
+ CreateDomainRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
204
216
  CreateDomainRequest.struct_class = Types::CreateDomainRequest
205
217
 
206
218
  CreateDomainResult.add_member(:domain, Shapes::ShapeRef.new(shape: DomainDescription, location_name: "domain"))
@@ -211,6 +223,7 @@ module Aws::CodeArtifact
211
223
  CreateRepositoryRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
212
224
  CreateRepositoryRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
213
225
  CreateRepositoryRequest.add_member(:upstreams, Shapes::ShapeRef.new(shape: UpstreamRepositoryList, location_name: "upstreams"))
226
+ CreateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
214
227
  CreateRepositoryRequest.struct_class = Types::CreateRepositoryRequest
215
228
 
216
229
  CreateRepositoryResult.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryDescription, location_name: "repository"))
@@ -321,6 +334,7 @@ module Aws::CodeArtifact
321
334
  DomainDescription.add_member(:encryption_key, Shapes::ShapeRef.new(shape: Arn, location_name: "encryptionKey"))
322
335
  DomainDescription.add_member(:repository_count, Shapes::ShapeRef.new(shape: Integer, location_name: "repositoryCount"))
323
336
  DomainDescription.add_member(:asset_size_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "assetSizeBytes"))
337
+ DomainDescription.add_member(:s3_bucket_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "s3BucketArn"))
324
338
  DomainDescription.struct_class = Types::DomainDescription
325
339
 
326
340
  DomainSummary.add_member(:name, Shapes::ShapeRef.new(shape: DomainName, location_name: "name"))
@@ -513,6 +527,12 @@ module Aws::CodeArtifact
513
527
  ListRepositoriesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
514
528
  ListRepositoriesResult.struct_class = Types::ListRepositoriesResult
515
529
 
530
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "querystring", location_name: "resourceArn"))
531
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
532
+
533
+ ListTagsForResourceResult.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
534
+ ListTagsForResourceResult.struct_class = Types::ListTagsForResourceResult
535
+
516
536
  PackageDependency.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
517
537
  PackageDependency.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, location_name: "package"))
518
538
  PackageDependency.add_member(:dependency_type, Shapes::ShapeRef.new(shape: String, location_name: "dependencyType"))
@@ -629,10 +649,30 @@ module Aws::CodeArtifact
629
649
  SuccessfulPackageVersionInfoMap.key = Shapes::ShapeRef.new(shape: PackageVersion)
630
650
  SuccessfulPackageVersionInfoMap.value = Shapes::ShapeRef.new(shape: SuccessfulPackageVersionInfo)
631
651
 
652
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
653
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
654
+ Tag.struct_class = Types::Tag
655
+
656
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
657
+
658
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
659
+
660
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "querystring", location_name: "resourceArn"))
661
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
662
+ TagResourceRequest.struct_class = Types::TagResourceRequest
663
+
664
+ TagResourceResult.struct_class = Types::TagResourceResult
665
+
632
666
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
633
667
  ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location: "header", location_name: "Retry-After"))
634
668
  ThrottlingException.struct_class = Types::ThrottlingException
635
669
 
670
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "querystring", location_name: "resourceArn"))
671
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
672
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
673
+
674
+ UntagResourceResult.struct_class = Types::UntagResourceResult
675
+
636
676
  UpdatePackageVersionsStatusRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
637
677
  UpdatePackageVersionsStatusRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
638
678
  UpdatePackageVersionsStatusRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
@@ -760,7 +800,6 @@ module Aws::CodeArtifact
760
800
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
761
801
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
762
802
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
763
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
764
803
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
765
804
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
766
805
  end)
@@ -927,6 +966,7 @@ module Aws::CodeArtifact
927
966
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
928
967
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
929
968
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
969
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
930
970
  end)
931
971
 
932
972
  api.add_operation(:get_package_version_readme, Seahorse::Model::Operation.new.tap do |o|
@@ -1093,6 +1133,18 @@ module Aws::CodeArtifact
1093
1133
  )
1094
1134
  end)
1095
1135
 
1136
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1137
+ o.name = "ListTagsForResource"
1138
+ o.http_method = "POST"
1139
+ o.http_request_uri = "/v1/tags"
1140
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1141
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResult)
1142
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1143
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1144
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1145
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1146
+ end)
1147
+
1096
1148
  api.add_operation(:put_domain_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
1097
1149
  o.name = "PutDomainPermissionsPolicy"
1098
1150
  o.http_method = "PUT"
@@ -1123,6 +1175,31 @@ module Aws::CodeArtifact
1123
1175
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1124
1176
  end)
1125
1177
 
1178
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1179
+ o.name = "TagResource"
1180
+ o.http_method = "POST"
1181
+ o.http_request_uri = "/v1/tag"
1182
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1183
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResult)
1184
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1185
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1186
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1187
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1188
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1189
+ end)
1190
+
1191
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1192
+ o.name = "UntagResource"
1193
+ o.http_method = "POST"
1194
+ o.http_request_uri = "/v1/untag"
1195
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1196
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResult)
1197
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1198
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1199
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1200
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1201
+ end)
1202
+
1126
1203
  api.add_operation(:update_package_versions_status, Seahorse::Model::Operation.new.tap do |o|
1127
1204
  o.name = "UpdatePackageVersionsStatus"
1128
1205
  o.http_method = "POST"
@@ -299,6 +299,12 @@ module Aws::CodeArtifact
299
299
  # {
300
300
  # domain: "DomainName", # required
301
301
  # encryption_key: "Arn",
302
+ # tags: [
303
+ # {
304
+ # key: "TagKey", # required
305
+ # value: "TagValue", # required
306
+ # },
307
+ # ],
302
308
  # }
303
309
  #
304
310
  # @!attribute [rw] domain
@@ -330,11 +336,16 @@ module Aws::CodeArtifact
330
336
  # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html
331
337
  # @return [String]
332
338
  #
339
+ # @!attribute [rw] tags
340
+ # One or more tag key-value pairs for the domain.
341
+ # @return [Array<Types::Tag>]
342
+ #
333
343
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomainRequest AWS API Documentation
334
344
  #
335
345
  class CreateDomainRequest < Struct.new(
336
346
  :domain,
337
- :encryption_key)
347
+ :encryption_key,
348
+ :tags)
338
349
  SENSITIVE = []
339
350
  include Aws::Structure
340
351
  end
@@ -365,6 +376,12 @@ module Aws::CodeArtifact
365
376
  # repository_name: "RepositoryName", # required
366
377
  # },
367
378
  # ],
379
+ # tags: [
380
+ # {
381
+ # key: "TagKey", # required
382
+ # value: "TagValue", # required
383
+ # },
384
+ # ],
368
385
  # }
369
386
  #
370
387
  # @!attribute [rw] domain
@@ -396,6 +413,10 @@ module Aws::CodeArtifact
396
413
  # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
397
414
  # @return [Array<Types::UpstreamRepository>]
398
415
  #
416
+ # @!attribute [rw] tags
417
+ # One or more tag key-value pairs for the repository.
418
+ # @return [Array<Types::Tag>]
419
+ #
399
420
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepositoryRequest AWS API Documentation
400
421
  #
401
422
  class CreateRepositoryRequest < Struct.new(
@@ -403,7 +424,8 @@ module Aws::CodeArtifact
403
424
  :domain_owner,
404
425
  :repository,
405
426
  :description,
406
- :upstreams)
427
+ :upstreams,
428
+ :tags)
407
429
  SENSITIVE = []
408
430
  include Aws::Structure
409
431
  end
@@ -1121,6 +1143,11 @@ module Aws::CodeArtifact
1121
1143
  # The total size of all assets in the domain.
1122
1144
  # @return [Integer]
1123
1145
  #
1146
+ # @!attribute [rw] s3_bucket_arn
1147
+ # The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used
1148
+ # to store package assets in the domain.
1149
+ # @return [String]
1150
+ #
1124
1151
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DomainDescription AWS API Documentation
1125
1152
  #
1126
1153
  class DomainDescription < Struct.new(
@@ -1131,7 +1158,8 @@ module Aws::CodeArtifact
1131
1158
  :created_time,
1132
1159
  :encryption_key,
1133
1160
  :repository_count,
1134
- :asset_size_bytes)
1161
+ :asset_size_bytes,
1162
+ :s3_bucket_arn)
1135
1163
  SENSITIVE = []
1136
1164
  include Aws::Structure
1137
1165
  end
@@ -1208,7 +1236,10 @@ module Aws::CodeArtifact
1208
1236
  #
1209
1237
  # @!attribute [rw] duration_seconds
1210
1238
  # The time, in seconds, that the generated authorization token is
1211
- # valid.
1239
+ # valid. Valid values are `0` and any number between `900` (15
1240
+ # minutes) and `43200` (12 hours). A value of `0` will set the
1241
+ # expiration of the authorization token to the same expiration of the
1242
+ # user's role's temporary credentials.
1212
1243
  # @return [Integer]
1213
1244
  #
1214
1245
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetAuthorizationTokenRequest AWS API Documentation
@@ -2391,6 +2422,38 @@ module Aws::CodeArtifact
2391
2422
  include Aws::Structure
2392
2423
  end
2393
2424
 
2425
+ # @note When making an API call, you may pass ListTagsForResourceRequest
2426
+ # data as a hash:
2427
+ #
2428
+ # {
2429
+ # resource_arn: "Arn", # required
2430
+ # }
2431
+ #
2432
+ # @!attribute [rw] resource_arn
2433
+ # The Amazon Resource Name (ARN) of the resource to get tags for.
2434
+ # @return [String]
2435
+ #
2436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListTagsForResourceRequest AWS API Documentation
2437
+ #
2438
+ class ListTagsForResourceRequest < Struct.new(
2439
+ :resource_arn)
2440
+ SENSITIVE = []
2441
+ include Aws::Structure
2442
+ end
2443
+
2444
+ # @!attribute [rw] tags
2445
+ # A list of tag key and value pairs associated with the specified
2446
+ # resource.
2447
+ # @return [Array<Types::Tag>]
2448
+ #
2449
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListTagsForResourceResult AWS API Documentation
2450
+ #
2451
+ class ListTagsForResourceResult < Struct.new(
2452
+ :tags)
2453
+ SENSITIVE = []
2454
+ include Aws::Structure
2455
+ end
2456
+
2394
2457
  # Details about a package dependency.
2395
2458
  #
2396
2459
  # @!attribute [rw] namespace
@@ -3011,6 +3074,69 @@ module Aws::CodeArtifact
3011
3074
  include Aws::Structure
3012
3075
  end
3013
3076
 
3077
+ # A tag is a key-value pair that can be used to manage, search for, or
3078
+ # filter resources in AWS CodeArtifact.
3079
+ #
3080
+ # @note When making an API call, you may pass Tag
3081
+ # data as a hash:
3082
+ #
3083
+ # {
3084
+ # key: "TagKey", # required
3085
+ # value: "TagValue", # required
3086
+ # }
3087
+ #
3088
+ # @!attribute [rw] key
3089
+ # The tag's key.
3090
+ # @return [String]
3091
+ #
3092
+ # @!attribute [rw] value
3093
+ # The tag's value.
3094
+ # @return [String]
3095
+ #
3096
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/Tag AWS API Documentation
3097
+ #
3098
+ class Tag < Struct.new(
3099
+ :key,
3100
+ :value)
3101
+ SENSITIVE = []
3102
+ include Aws::Structure
3103
+ end
3104
+
3105
+ # @note When making an API call, you may pass TagResourceRequest
3106
+ # data as a hash:
3107
+ #
3108
+ # {
3109
+ # resource_arn: "Arn", # required
3110
+ # tags: [ # required
3111
+ # {
3112
+ # key: "TagKey", # required
3113
+ # value: "TagValue", # required
3114
+ # },
3115
+ # ],
3116
+ # }
3117
+ #
3118
+ # @!attribute [rw] resource_arn
3119
+ # The Amazon Resource Name (ARN) of the resource to which you want to
3120
+ # add or update tags.
3121
+ # @return [String]
3122
+ #
3123
+ # @!attribute [rw] tags
3124
+ # The tags you want to modify or add to the resource.
3125
+ # @return [Array<Types::Tag>]
3126
+ #
3127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/TagResourceRequest AWS API Documentation
3128
+ #
3129
+ class TagResourceRequest < Struct.new(
3130
+ :resource_arn,
3131
+ :tags)
3132
+ SENSITIVE = []
3133
+ include Aws::Structure
3134
+ end
3135
+
3136
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/TagResourceResult AWS API Documentation
3137
+ #
3138
+ class TagResourceResult < Aws::EmptyStructure; end
3139
+
3014
3140
  # The operation did not succeed because too many requests are sent to
3015
3141
  # the service.
3016
3142
  #
@@ -3030,6 +3156,36 @@ module Aws::CodeArtifact
3030
3156
  include Aws::Structure
3031
3157
  end
3032
3158
 
3159
+ # @note When making an API call, you may pass UntagResourceRequest
3160
+ # data as a hash:
3161
+ #
3162
+ # {
3163
+ # resource_arn: "Arn", # required
3164
+ # tag_keys: ["TagKey"], # required
3165
+ # }
3166
+ #
3167
+ # @!attribute [rw] resource_arn
3168
+ # The Amazon Resource Name (ARN) of the resource to which you want to
3169
+ # remove tags.
3170
+ # @return [String]
3171
+ #
3172
+ # @!attribute [rw] tag_keys
3173
+ # The tag key for each tag that you want to remove from the resource.
3174
+ # @return [Array<String>]
3175
+ #
3176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UntagResourceRequest AWS API Documentation
3177
+ #
3178
+ class UntagResourceRequest < Struct.new(
3179
+ :resource_arn,
3180
+ :tag_keys)
3181
+ SENSITIVE = []
3182
+ include Aws::Structure
3183
+ end
3184
+
3185
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UntagResourceResult AWS API Documentation
3186
+ #
3187
+ class UntagResourceResult < Aws::EmptyStructure; end
3188
+
3033
3189
  # @note When making an API call, you may pass UpdatePackageVersionsStatusRequest
3034
3190
  # data as a hash:
3035
3191
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codeartifact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.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: 2020-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core