aws-sdk-codeartifact 1.0.1 → 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: 1eb79834f72f19e4e181b7bf7cc9f24d93dbb374c5170f4f7e4b20469b43339a
4
- data.tar.gz: 1eb4c6d869c6cd98e08ec612f59912c9a5b05ff4394521f01afad301ff4c0224
3
+ metadata.gz: df71297753c7c03dd690345dd3969b3bd82fdb4d5a8ae194c7237e1085d661b1
4
+ data.tar.gz: 22fd7076fde08d62a5e10bfd3279de25f986343f3b71d20498ed15f14e0b19b8
5
5
  SHA512:
6
- metadata.gz: f5d722a4a318a061688977ce8c5318b03d464e8459b7997c0435f7db69140599377ebdc771c298d060abc464fb9a3db9c4f4e8d692bf6da79cc6f93ecede5565
7
- data.tar.gz: 290a72e6bd4cffd5e73d5fcc9eda41b2dd4539de799d460a76be2d7270a7a71b23b7817fb3535b3fa65da05a3f0139200989d19f8e915976ac34733e89d97d75
6
+ metadata.gz: 14acbb1ea30fae427fca17823a74215ac6913932c703f1f5544b3f50344aa844f46c6a45975bdb7fa16126b74d6f28bae550ee763bc7c3c5cf1bddf0861e7d88
7
+ data.tar.gz: f5371fd202ab5a1f8e3b7f66866f45390df1d8ef6144789c8503c26693fb2b31ff2b332c8b27399c9fbfab55f3fdace13120d76da912a0a080f1cca12c41faa8
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-codeartifact/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::CodeArtifact
47
50
 
48
- GEM_VERSION = '1.0.1'
51
+ GEM_VERSION = '1.5.0'
49
52
 
50
53
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -83,13 +85,28 @@ module Aws::CodeArtifact
83
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
86
  # credentials.
85
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
86
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
103
  # from an EC2 IMDS on an EC2 instance.
88
104
  #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
91
107
  #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
93
110
  #
94
111
  # When `:credentials` are not configured directly, the following
95
112
  # locations will be searched for credentials:
@@ -99,10 +116,10 @@ module Aws::CodeArtifact
99
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
117
  # * `~/.aws/credentials`
101
118
  # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
106
123
  #
107
124
  # @option options [required, String] :region
108
125
  # The AWS region to connect to. The configured `:region` is
@@ -543,6 +560,9 @@ module Aws::CodeArtifact
543
560
  # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html
544
561
  # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html
545
562
  #
563
+ # @option params [Array<Types::Tag>] :tags
564
+ # One or more tag key-value pairs for the domain.
565
+ #
546
566
  # @return [Types::CreateDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
547
567
  #
548
568
  # * {Types::CreateDomainResult#domain #domain} => Types::DomainDescription
@@ -552,6 +572,12 @@ module Aws::CodeArtifact
552
572
  # resp = client.create_domain({
553
573
  # domain: "DomainName", # required
554
574
  # encryption_key: "Arn",
575
+ # tags: [
576
+ # {
577
+ # key: "TagKey", # required
578
+ # value: "TagValue", # required
579
+ # },
580
+ # ],
555
581
  # })
556
582
  #
557
583
  # @example Response structure
@@ -564,6 +590,7 @@ module Aws::CodeArtifact
564
590
  # resp.domain.encryption_key #=> String
565
591
  # resp.domain.repository_count #=> Integer
566
592
  # resp.domain.asset_size_bytes #=> Integer
593
+ # resp.domain.s3_bucket_arn #=> String
567
594
  #
568
595
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomain AWS API Documentation
569
596
  #
@@ -600,6 +627,9 @@ module Aws::CodeArtifact
600
627
  #
601
628
  # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
602
629
  #
630
+ # @option params [Array<Types::Tag>] :tags
631
+ # One or more tag key-value pairs for the repository.
632
+ #
603
633
  # @return [Types::CreateRepositoryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
604
634
  #
605
635
  # * {Types::CreateRepositoryResult#repository #repository} => Types::RepositoryDescription
@@ -616,6 +646,12 @@ module Aws::CodeArtifact
616
646
  # repository_name: "RepositoryName", # required
617
647
  # },
618
648
  # ],
649
+ # tags: [
650
+ # {
651
+ # key: "TagKey", # required
652
+ # value: "TagValue", # required
653
+ # },
654
+ # ],
619
655
  # })
620
656
  #
621
657
  # @example Response structure
@@ -674,6 +710,7 @@ module Aws::CodeArtifact
674
710
  # resp.domain.encryption_key #=> String
675
711
  # resp.domain.repository_count #=> Integer
676
712
  # resp.domain.asset_size_bytes #=> Integer
713
+ # resp.domain.s3_bucket_arn #=> String
677
714
  #
678
715
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomain AWS API Documentation
679
716
  #
@@ -960,6 +997,7 @@ module Aws::CodeArtifact
960
997
  # resp.domain.encryption_key #=> String
961
998
  # resp.domain.repository_count #=> Integer
962
999
  # resp.domain.asset_size_bytes #=> Integer
1000
+ # resp.domain.s3_bucket_arn #=> String
963
1001
  #
964
1002
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomain AWS API Documentation
965
1003
  #
@@ -1164,11 +1202,18 @@ module Aws::CodeArtifact
1164
1202
  # status to `Disposed`. A disposed package version cannot be restored in
1165
1203
  # your repository because its assets are deleted.
1166
1204
  #
1167
- # To view all disposed package versions in a repository, use `
1168
- # 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`.
1208
+ #
1209
+ # To view information about a disposed package version, use [
1210
+ # `DescribePackageVersion` ][3]..
1211
+ #
1169
1212
  #
1170
- # To view information about a disposed package version, use `
1171
- # ListPackageVersions ` and set the ` status ` parameter to `Disposed`.
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
1172
1217
  #
1173
1218
  # @option params [required, String] :domain
1174
1219
  # The name of the domain that contains the repository you want to
@@ -1265,10 +1310,11 @@ module Aws::CodeArtifact
1265
1310
  req.send_request(options)
1266
1311
  end
1267
1312
 
1268
- # Generates a temporary authentication token for accessing repositories
1313
+ # Generates a temporary authorization token for accessing repositories
1269
1314
  # in the domain. This API requires the
1270
1315
  # `codeartifact:GetAuthorizationToken` and `sts:GetServiceBearerToken`
1271
- # permissions.
1316
+ # permissions. For more information about authorization tokens, see [AWS
1317
+ # CodeArtifact authentication and tokens][1].
1272
1318
  #
1273
1319
  # <note markdown="1"> CodeArtifact authorization tokens are valid for a period of 12 hours
1274
1320
  # when created with the `login` command. You can call `login`
@@ -1286,14 +1332,15 @@ module Aws::CodeArtifact
1286
1332
  # token, the token will be valid for the full authorization period even
1287
1333
  # though this is longer than the 15-minute session duration.
1288
1334
  #
1289
- # See [Using IAM Roles][1] for more information on controlling session
1335
+ # See [Using IAM Roles][2] for more information on controlling session
1290
1336
  # duration.
1291
1337
  #
1292
1338
  # </note>
1293
1339
  #
1294
1340
  #
1295
1341
  #
1296
- # [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
1297
1344
  #
1298
1345
  # @option params [required, String] :domain
1299
1346
  # The name of the domain that is in scope for the generated
@@ -1305,6 +1352,10 @@ module Aws::CodeArtifact
1305
1352
  #
1306
1353
  # @option params [Integer] :duration_seconds
1307
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.
1308
1359
  #
1309
1360
  # @return [Types::GetAuthorizationTokenResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1310
1361
  #
@@ -2230,9 +2281,45 @@ module Aws::CodeArtifact
2230
2281
  req.send_request(options)
2231
2282
  end
2232
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
+
2233
2315
  # Sets a resource policy on a domain that specifies permissions to
2234
2316
  # access it.
2235
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
+ #
2236
2323
  # @option params [required, String] :domain
2237
2324
  # The name of the domain on which to set the resource policy.
2238
2325
  #
@@ -2280,6 +2367,12 @@ module Aws::CodeArtifact
2280
2367
  # Sets the resource policy on a repository that specifies permissions to
2281
2368
  # access it.
2282
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
+ #
2283
2376
  # @option params [required, String] :domain
2284
2377
  # The name of the domain containing the repository to set the resource
2285
2378
  # policy on.
@@ -2330,6 +2423,65 @@ module Aws::CodeArtifact
2330
2423
  req.send_request(options)
2331
2424
  end
2332
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
+
2333
2485
  # Updates the status of one or more versions of a package.
2334
2486
  #
2335
2487
  # @option params [required, String] :domain
@@ -2507,7 +2659,7 @@ module Aws::CodeArtifact
2507
2659
  params: params,
2508
2660
  config: config)
2509
2661
  context[:gem_name] = 'aws-sdk-codeartifact'
2510
- context[:gem_version] = '1.0.1'
2662
+ context[:gem_version] = '1.5.0'
2511
2663
  Seahorse::Client::Request.new(handlers, context)
2512
2664
  end
2513
2665
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -97,6 +99,8 @@ module Aws::CodeArtifact
97
99
  ListRepositoriesMaxResults = Shapes::IntegerShape.new(name: 'ListRepositoriesMaxResults')
98
100
  ListRepositoriesRequest = Shapes::StructureShape.new(name: 'ListRepositoriesRequest')
99
101
  ListRepositoriesResult = Shapes::StructureShape.new(name: 'ListRepositoriesResult')
102
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
103
+ ListTagsForResourceResult = Shapes::StructureShape.new(name: 'ListTagsForResourceResult')
100
104
  Long = Shapes::IntegerShape.new(name: 'Long')
101
105
  LongOptional = Shapes::IntegerShape.new(name: 'LongOptional')
102
106
  PackageDependency = Shapes::StructureShape.new(name: 'PackageDependency')
@@ -140,8 +144,17 @@ module Aws::CodeArtifact
140
144
  String255 = Shapes::StringShape.new(name: 'String255')
141
145
  SuccessfulPackageVersionInfo = Shapes::StructureShape.new(name: 'SuccessfulPackageVersionInfo')
142
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')
143
154
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
144
155
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
156
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
157
+ UntagResourceResult = Shapes::StructureShape.new(name: 'UntagResourceResult')
145
158
  UpdatePackageVersionsStatusRequest = Shapes::StructureShape.new(name: 'UpdatePackageVersionsStatusRequest')
146
159
  UpdatePackageVersionsStatusResult = Shapes::StructureShape.new(name: 'UpdatePackageVersionsStatusResult')
147
160
  UpdateRepositoryRequest = Shapes::StructureShape.new(name: 'UpdateRepositoryRequest')
@@ -199,6 +212,7 @@ module Aws::CodeArtifact
199
212
 
200
213
  CreateDomainRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
201
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"))
202
216
  CreateDomainRequest.struct_class = Types::CreateDomainRequest
203
217
 
204
218
  CreateDomainResult.add_member(:domain, Shapes::ShapeRef.new(shape: DomainDescription, location_name: "domain"))
@@ -209,6 +223,7 @@ module Aws::CodeArtifact
209
223
  CreateRepositoryRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
210
224
  CreateRepositoryRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
211
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"))
212
227
  CreateRepositoryRequest.struct_class = Types::CreateRepositoryRequest
213
228
 
214
229
  CreateRepositoryResult.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryDescription, location_name: "repository"))
@@ -319,6 +334,7 @@ module Aws::CodeArtifact
319
334
  DomainDescription.add_member(:encryption_key, Shapes::ShapeRef.new(shape: Arn, location_name: "encryptionKey"))
320
335
  DomainDescription.add_member(:repository_count, Shapes::ShapeRef.new(shape: Integer, location_name: "repositoryCount"))
321
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"))
322
338
  DomainDescription.struct_class = Types::DomainDescription
323
339
 
324
340
  DomainSummary.add_member(:name, Shapes::ShapeRef.new(shape: DomainName, location_name: "name"))
@@ -511,6 +527,12 @@ module Aws::CodeArtifact
511
527
  ListRepositoriesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
512
528
  ListRepositoriesResult.struct_class = Types::ListRepositoriesResult
513
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
+
514
536
  PackageDependency.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
515
537
  PackageDependency.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, location_name: "package"))
516
538
  PackageDependency.add_member(:dependency_type, Shapes::ShapeRef.new(shape: String, location_name: "dependencyType"))
@@ -627,10 +649,30 @@ module Aws::CodeArtifact
627
649
  SuccessfulPackageVersionInfoMap.key = Shapes::ShapeRef.new(shape: PackageVersion)
628
650
  SuccessfulPackageVersionInfoMap.value = Shapes::ShapeRef.new(shape: SuccessfulPackageVersionInfo)
629
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
+
630
666
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
631
667
  ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location: "header", location_name: "Retry-After"))
632
668
  ThrottlingException.struct_class = Types::ThrottlingException
633
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
+
634
676
  UpdatePackageVersionsStatusRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
635
677
  UpdatePackageVersionsStatusRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
636
678
  UpdatePackageVersionsStatusRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
@@ -758,7 +800,6 @@ module Aws::CodeArtifact
758
800
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
759
801
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
760
802
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
761
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
762
803
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
763
804
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
764
805
  end)
@@ -925,6 +966,7 @@ module Aws::CodeArtifact
925
966
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
926
967
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
927
968
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
969
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
928
970
  end)
929
971
 
930
972
  api.add_operation(:get_package_version_readme, Seahorse::Model::Operation.new.tap do |o|
@@ -1091,6 +1133,18 @@ module Aws::CodeArtifact
1091
1133
  )
1092
1134
  end)
1093
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
+
1094
1148
  api.add_operation(:put_domain_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
1095
1149
  o.name = "PutDomainPermissionsPolicy"
1096
1150
  o.http_method = "PUT"
@@ -1121,6 +1175,31 @@ module Aws::CodeArtifact
1121
1175
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1122
1176
  end)
1123
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
+
1124
1203
  api.add_operation(:update_package_versions_status, Seahorse::Model::Operation.new.tap do |o|
1125
1204
  o.name = "UpdatePackageVersionsStatus"
1126
1205
  o.http_method = "POST"