aws-sdk-kms 1.38.0 → 1.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +294 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-kms.rb +2 -2
- data/lib/aws-sdk-kms/client.rb +969 -230
- data/lib/aws-sdk-kms/client_api.rb +6 -1
- data/lib/aws-sdk-kms/errors.rb +1 -1
- data/lib/aws-sdk-kms/resource.rb +1 -1
- data/lib/aws-sdk-kms/types.rb +137 -59
- metadata +8 -5
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -194,6 +194,8 @@ module Aws::KMS
|
|
194
194
|
AliasListEntry.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, location_name: "AliasName"))
|
195
195
|
AliasListEntry.add_member(:alias_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "AliasArn"))
|
196
196
|
AliasListEntry.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "TargetKeyId"))
|
197
|
+
AliasListEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
|
198
|
+
AliasListEntry.add_member(:last_updated_date, Shapes::ShapeRef.new(shape: DateType, location_name: "LastUpdatedDate"))
|
197
199
|
AliasListEntry.struct_class = Types::AliasListEntry
|
198
200
|
|
199
201
|
AlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
@@ -579,6 +581,8 @@ module Aws::KMS
|
|
579
581
|
ListGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
|
580
582
|
ListGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
|
581
583
|
ListGrantsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
584
|
+
ListGrantsRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
585
|
+
ListGrantsRequest.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "GranteePrincipal"))
|
582
586
|
ListGrantsRequest.struct_class = Types::ListGrantsRequest
|
583
587
|
|
584
588
|
ListGrantsResponse.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "Grants"))
|
@@ -1188,6 +1192,7 @@ module Aws::KMS
|
|
1188
1192
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1189
1193
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1190
1194
|
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
|
1195
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
|
1191
1196
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
|
1192
1197
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1193
1198
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
data/lib/aws-sdk-kms/resource.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
data/lib/aws-sdk-kms/types.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -24,12 +24,20 @@ module Aws::KMS
|
|
24
24
|
# String that contains the key identifier referred to by the alias.
|
25
25
|
# @return [String]
|
26
26
|
#
|
27
|
+
# @!attribute [rw] creation_date
|
28
|
+
# @return [Time]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] last_updated_date
|
31
|
+
# @return [Time]
|
32
|
+
#
|
27
33
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/AliasListEntry AWS API Documentation
|
28
34
|
#
|
29
35
|
class AliasListEntry < Struct.new(
|
30
36
|
:alias_name,
|
31
37
|
:alias_arn,
|
32
|
-
:target_key_id
|
38
|
+
:target_key_id,
|
39
|
+
:creation_date,
|
40
|
+
:last_updated_date)
|
33
41
|
SENSITIVE = []
|
34
42
|
include Aws::Structure
|
35
43
|
end
|
@@ -274,21 +282,45 @@ module Aws::KMS
|
|
274
282
|
#
|
275
283
|
# @!attribute [rw] alias_name
|
276
284
|
# Specifies the alias name. This value must begin with `alias/`
|
277
|
-
# followed by a name, such as `alias/ExampleAlias`.
|
278
|
-
#
|
279
|
-
#
|
285
|
+
# followed by a name, such as `alias/ExampleAlias`.
|
286
|
+
#
|
287
|
+
# The `AliasName` value must be string of 1-256 characters. It can
|
288
|
+
# contain only alphanumeric characters, forward slashes (/),
|
289
|
+
# underscores (\_), and dashes (-). The alias name cannot begin with
|
290
|
+
# `alias/aws/`. The `alias/aws/` prefix is reserved for [AWS managed
|
291
|
+
# CMKs][1].
|
292
|
+
#
|
293
|
+
#
|
294
|
+
#
|
295
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
|
280
296
|
# @return [String]
|
281
297
|
#
|
282
298
|
# @!attribute [rw] target_key_id
|
283
|
-
#
|
284
|
-
#
|
285
|
-
# another alias. For help finding the key ID and ARN, see [Finding the
|
286
|
-
# Key ID and ARN][1] in the *AWS Key Management Service Developer
|
287
|
-
# Guide*.
|
299
|
+
# Associates the alias with the specified [customer managed CMK][1].
|
300
|
+
# The CMK must be in the same AWS Region.
|
288
301
|
#
|
302
|
+
# A valid CMK ID is required. If you supply a null or empty string
|
303
|
+
# value, this operation returns an error.
|
289
304
|
#
|
305
|
+
# For help finding the key ID and ARN, see [Finding the Key ID and
|
306
|
+
# ARN][2] in the *AWS Key Management Service Developer Guide*.
|
307
|
+
#
|
308
|
+
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
|
309
|
+
#
|
310
|
+
# For example:
|
311
|
+
#
|
312
|
+
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
|
290
313
|
#
|
291
|
-
#
|
314
|
+
# * Key ARN:
|
315
|
+
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
|
316
|
+
#
|
317
|
+
# To get the key ID and key ARN for a CMK, use ListKeys or
|
318
|
+
# DescribeKey.
|
319
|
+
#
|
320
|
+
#
|
321
|
+
#
|
322
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk
|
323
|
+
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn
|
292
324
|
# @return [String]
|
293
325
|
#
|
294
326
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAliasRequest AWS API Documentation
|
@@ -458,6 +490,11 @@ module Aws::KMS
|
|
458
490
|
# [Encryption Context][2] in the <i> <i>AWS Key Management Service
|
459
491
|
# Developer Guide</i> </i>.
|
460
492
|
#
|
493
|
+
# Grant constraints are not applied to operations that do not support
|
494
|
+
# an encryption context, such as cryptographic operations with
|
495
|
+
# asymmetric CMKs and management operations, such as DescribeKey or
|
496
|
+
# RetireGrant.
|
497
|
+
#
|
461
498
|
#
|
462
499
|
#
|
463
500
|
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations
|
@@ -476,9 +513,8 @@ module Aws::KMS
|
|
476
513
|
# @return [Array<String>]
|
477
514
|
#
|
478
515
|
# @!attribute [rw] name
|
479
|
-
# A friendly name for
|
480
|
-
#
|
481
|
-
# request.
|
516
|
+
# A friendly name for the grant. Use this value to prevent the
|
517
|
+
# unintended creation of duplicate grants when retrying this request.
|
482
518
|
#
|
483
519
|
# When this value is absent, all `CreateGrant` requests result in a
|
484
520
|
# new grant with a unique `GrantId` even if all the supplied
|
@@ -489,8 +525,8 @@ module Aws::KMS
|
|
489
525
|
# with identical parameters; if the grant already exists, the original
|
490
526
|
# `GrantId` is returned without creating a new grant. Note that the
|
491
527
|
# returned grant token is unique with every `CreateGrant` request,
|
492
|
-
# even when a duplicate `GrantId` is returned. All grant tokens
|
493
|
-
#
|
528
|
+
# even when a duplicate `GrantId` is returned. All grant tokens for
|
529
|
+
# the same grant ID can be used interchangeably.
|
494
530
|
# @return [String]
|
495
531
|
#
|
496
532
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantRequest AWS API Documentation
|
@@ -521,8 +557,8 @@ module Aws::KMS
|
|
521
557
|
# @!attribute [rw] grant_id
|
522
558
|
# The unique identifier for the grant.
|
523
559
|
#
|
524
|
-
# You can use the `GrantId` in a
|
525
|
-
# operation.
|
560
|
+
# You can use the `GrantId` in a ListGrants, RetireGrant, or
|
561
|
+
# RevokeGrant operation.
|
526
562
|
# @return [String]
|
527
563
|
#
|
528
564
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantResponse AWS API Documentation
|
@@ -582,11 +618,15 @@ module Aws::KMS
|
|
582
618
|
#
|
583
619
|
# The key policy size quota is 32 kilobytes (32768 bytes).
|
584
620
|
#
|
621
|
+
# For help writing and formatting a JSON policy document, see the [IAM
|
622
|
+
# JSON Policy Reference][4] in the <i> <i>IAM User Guide</i> </i>.
|
623
|
+
#
|
585
624
|
#
|
586
625
|
#
|
587
626
|
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
|
588
627
|
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
|
589
628
|
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default
|
629
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
|
590
630
|
# @return [String]
|
591
631
|
#
|
592
632
|
# @!attribute [rw] description
|
@@ -765,9 +805,13 @@ module Aws::KMS
|
|
765
805
|
# Use this parameter to tag the CMK when it is created. To add tags to
|
766
806
|
# an existing CMK, use the TagResource operation.
|
767
807
|
#
|
808
|
+
# To use this parameter, you must have [kms:TagResource][2] permission
|
809
|
+
# in an IAM policy.
|
810
|
+
#
|
768
811
|
#
|
769
812
|
#
|
770
813
|
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html
|
814
|
+
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html
|
771
815
|
# @return [Array<Types::Tag>]
|
772
816
|
#
|
773
817
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKeyRequest AWS API Documentation
|
@@ -1059,23 +1103,20 @@ module Aws::KMS
|
|
1059
1103
|
# @return [Array<String>]
|
1060
1104
|
#
|
1061
1105
|
# @!attribute [rw] key_id
|
1062
|
-
# Specifies the customer master key (CMK) that AWS KMS
|
1063
|
-
#
|
1064
|
-
#
|
1065
|
-
#
|
1066
|
-
# If you specify a `KeyId` value, the `Decrypt` operation succeeds
|
1067
|
-
# only if the specified CMK was used to encrypt the ciphertext.
|
1106
|
+
# Specifies the customer master key (CMK) that AWS KMS uses to decrypt
|
1107
|
+
# the ciphertext. Enter a key ID of the CMK that was used to encrypt
|
1108
|
+
# the ciphertext.
|
1068
1109
|
#
|
1069
1110
|
# This parameter is required only when the ciphertext was encrypted
|
1070
|
-
# under an asymmetric CMK.
|
1071
|
-
#
|
1072
|
-
#
|
1073
|
-
#
|
1074
|
-
# ciphertext.
|
1111
|
+
# under an asymmetric CMK. If you used a symmetric CMK, AWS KMS can
|
1112
|
+
# get the CMK from metadata that it adds to the symmetric ciphertext
|
1113
|
+
# blob. However, it is always recommended as a best practice. This
|
1114
|
+
# practice ensures that you use the CMK that you intend.
|
1075
1115
|
#
|
1076
1116
|
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
|
1077
1117
|
# name, or alias ARN. When using an alias name, prefix it with
|
1078
|
-
# `"alias/"`.
|
1118
|
+
# `"alias/"`. To specify a CMK in a different AWS account, you must
|
1119
|
+
# use the key ARN or alias ARN.
|
1079
1120
|
#
|
1080
1121
|
# For example:
|
1081
1122
|
#
|
@@ -1424,8 +1465,8 @@ module Aws::KMS
|
|
1424
1465
|
#
|
1425
1466
|
# @!attribute [rw] key_id
|
1426
1467
|
# Identifies a symmetric customer master key (CMK). You cannot enable
|
1427
|
-
# automatic rotation of [asymmetric CMKs][1], CMKs with
|
1428
|
-
# material][2], or CMKs in a [custom key store][3].
|
1468
|
+
# or disable automatic rotation of [asymmetric CMKs][1], CMKs with
|
1469
|
+
# [imported key material][2], or CMKs in a [custom key store][3].
|
1429
1470
|
#
|
1430
1471
|
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
|
1431
1472
|
#
|
@@ -1869,7 +1910,8 @@ module Aws::KMS
|
|
1869
1910
|
#
|
1870
1911
|
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
|
1871
1912
|
# name, or alias ARN. When using an alias name, prefix it with
|
1872
|
-
# `"alias/"`.
|
1913
|
+
# `"alias/"`. To specify a CMK in a different AWS account, you must
|
1914
|
+
# use the key ARN or alias ARN.
|
1873
1915
|
#
|
1874
1916
|
# For example:
|
1875
1917
|
#
|
@@ -2549,7 +2591,7 @@ module Aws::KMS
|
|
2549
2591
|
# operations with a [symmetric CMK][3]. Grant constraints are not
|
2550
2592
|
# applied to operations that do not support an encryption context, such
|
2551
2593
|
# as cryptographic operations with asymmetric CMKs and management
|
2552
|
-
# operations, such as DescribeKey or
|
2594
|
+
# operations, such as DescribeKey or RetireGrant.
|
2553
2595
|
#
|
2554
2596
|
# In a cryptographic operation, the encryption context in the decryption
|
2555
2597
|
# operation must be an exact, case-sensitive match for the keys and
|
@@ -3221,13 +3263,23 @@ module Aws::KMS
|
|
3221
3263
|
# }
|
3222
3264
|
#
|
3223
3265
|
# @!attribute [rw] key_id
|
3224
|
-
# Lists only aliases that
|
3225
|
-
#
|
3226
|
-
# in the caller's account and region. You cannot use an alias name or
|
3227
|
-
# alias ARN in this value.
|
3266
|
+
# Lists only aliases that are associated with the specified CMK. Enter
|
3267
|
+
# a CMK in your AWS account.
|
3228
3268
|
#
|
3229
3269
|
# This parameter is optional. If you omit it, `ListAliases` returns
|
3230
|
-
# all aliases in the account and
|
3270
|
+
# all aliases in the account and Region.
|
3271
|
+
#
|
3272
|
+
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
|
3273
|
+
#
|
3274
|
+
# For example:
|
3275
|
+
#
|
3276
|
+
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
|
3277
|
+
#
|
3278
|
+
# * Key ARN:
|
3279
|
+
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
|
3280
|
+
#
|
3281
|
+
# To get the key ID and key ARN for a CMK, use ListKeys or
|
3282
|
+
# DescribeKey.
|
3231
3283
|
# @return [String]
|
3232
3284
|
#
|
3233
3285
|
# @!attribute [rw] limit
|
@@ -3289,6 +3341,8 @@ module Aws::KMS
|
|
3289
3341
|
# limit: 1,
|
3290
3342
|
# marker: "MarkerType",
|
3291
3343
|
# key_id: "KeyIdType", # required
|
3344
|
+
# grant_id: "GrantIdType",
|
3345
|
+
# grantee_principal: "PrincipalIdType",
|
3292
3346
|
# }
|
3293
3347
|
#
|
3294
3348
|
# @!attribute [rw] limit
|
@@ -3308,7 +3362,8 @@ module Aws::KMS
|
|
3308
3362
|
# @return [String]
|
3309
3363
|
#
|
3310
3364
|
# @!attribute [rw] key_id
|
3311
|
-
#
|
3365
|
+
# Returns only grants for the specified customer master key (CMK).
|
3366
|
+
# This parameter is required.
|
3312
3367
|
#
|
3313
3368
|
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
|
3314
3369
|
# specify a CMK in a different AWS account, you must use the key ARN.
|
@@ -3324,12 +3379,24 @@ module Aws::KMS
|
|
3324
3379
|
# DescribeKey.
|
3325
3380
|
# @return [String]
|
3326
3381
|
#
|
3382
|
+
# @!attribute [rw] grant_id
|
3383
|
+
# Returns only the grant with the specified grant ID. The grant ID
|
3384
|
+
# uniquely identifies the grant.
|
3385
|
+
# @return [String]
|
3386
|
+
#
|
3387
|
+
# @!attribute [rw] grantee_principal
|
3388
|
+
# Returns only grants where the specified principal is the grantee
|
3389
|
+
# principal for the grant.
|
3390
|
+
# @return [String]
|
3391
|
+
#
|
3327
3392
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrantsRequest AWS API Documentation
|
3328
3393
|
#
|
3329
3394
|
class ListGrantsRequest < Struct.new(
|
3330
3395
|
:limit,
|
3331
3396
|
:marker,
|
3332
|
-
:key_id
|
3397
|
+
:key_id,
|
3398
|
+
:grant_id,
|
3399
|
+
:grantee_principal)
|
3333
3400
|
SENSITIVE = []
|
3334
3401
|
include Aws::Structure
|
3335
3402
|
end
|
@@ -3605,7 +3672,8 @@ module Aws::KMS
|
|
3605
3672
|
# @return [String]
|
3606
3673
|
#
|
3607
3674
|
# @!attribute [rw] retiring_principal
|
3608
|
-
# The retiring principal for which to list grants.
|
3675
|
+
# The retiring principal for which to list grants. Enter a principal
|
3676
|
+
# in your AWS account.
|
3609
3677
|
#
|
3610
3678
|
# To specify the retiring principal, use the [Amazon Resource Name
|
3611
3679
|
# (ARN)][1] of an AWS principal. Valid AWS principals include AWS
|
@@ -3798,23 +3866,20 @@ module Aws::KMS
|
|
3798
3866
|
# @return [Hash<String,String>]
|
3799
3867
|
#
|
3800
3868
|
# @!attribute [rw] source_key_id
|
3801
|
-
#
|
3802
|
-
# ciphertext before it
|
3869
|
+
# Specifies the customer master key (CMK) that AWS KMS will use to
|
3870
|
+
# decrypt the ciphertext before it is re-encrypted. Enter a key ID of
|
3871
|
+
# the CMK that was used to encrypt the ciphertext.
|
3803
3872
|
#
|
3804
3873
|
# This parameter is required only when the ciphertext was encrypted
|
3805
|
-
# under an asymmetric CMK.
|
3806
|
-
#
|
3807
|
-
#
|
3808
|
-
#
|
3809
|
-
# ciphertext before it is reencrypted.
|
3810
|
-
#
|
3811
|
-
# If you specify a `KeyId` value, the decrypt part of the `ReEncrypt`
|
3812
|
-
# operation succeeds only if the specified CMK was used to encrypt the
|
3813
|
-
# ciphertext.
|
3874
|
+
# under an asymmetric CMK. If you used a symmetric CMK, AWS KMS can
|
3875
|
+
# get the CMK from metadata that it adds to the symmetric ciphertext
|
3876
|
+
# blob. However, it is always recommended as a best practice. This
|
3877
|
+
# practice ensures that you use the CMK that you intend.
|
3814
3878
|
#
|
3815
3879
|
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
|
3816
3880
|
# name, or alias ARN. When using an alias name, prefix it with
|
3817
|
-
# `"alias/"`.
|
3881
|
+
# `"alias/"`. To specify a CMK in a different AWS account, you must
|
3882
|
+
# use the key ARN or alias ARN.
|
3818
3883
|
#
|
3819
3884
|
# For example:
|
3820
3885
|
#
|
@@ -4300,7 +4365,7 @@ module Aws::KMS
|
|
4300
4365
|
# }
|
4301
4366
|
#
|
4302
4367
|
# @!attribute [rw] key_id
|
4303
|
-
#
|
4368
|
+
# Identifies a customer managed CMK in the account and Region.
|
4304
4369
|
#
|
4305
4370
|
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
|
4306
4371
|
#
|
@@ -4316,7 +4381,14 @@ module Aws::KMS
|
|
4316
4381
|
# @return [String]
|
4317
4382
|
#
|
4318
4383
|
# @!attribute [rw] tags
|
4319
|
-
# One or more tags.
|
4384
|
+
# One or more tags.
|
4385
|
+
#
|
4386
|
+
# Each tag consists of a tag key and a tag value. The tag value can be
|
4387
|
+
# an empty (null) string.
|
4388
|
+
#
|
4389
|
+
# You cannot have more than one tag on a CMK with the same tag key. If
|
4390
|
+
# you specify an existing tag key with a different tag value, AWS KMS
|
4391
|
+
# replaces the current tag value with the specified one.
|
4320
4392
|
# @return [Array<Types::Tag>]
|
4321
4393
|
#
|
4322
4394
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResourceRequest AWS API Documentation
|
@@ -4351,7 +4423,7 @@ module Aws::KMS
|
|
4351
4423
|
# }
|
4352
4424
|
#
|
4353
4425
|
# @!attribute [rw] key_id
|
4354
|
-
#
|
4426
|
+
# Identifies the CMK from which you are removing tags.
|
4355
4427
|
#
|
4356
4428
|
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
|
4357
4429
|
#
|
@@ -4395,8 +4467,9 @@ module Aws::KMS
|
|
4395
4467
|
# @return [String]
|
4396
4468
|
#
|
4397
4469
|
# @!attribute [rw] target_key_id
|
4398
|
-
# Identifies the CMK to associate with the
|
4399
|
-
#
|
4470
|
+
# Identifies the [customer managed CMK][1] to associate with the
|
4471
|
+
# alias. You don't have permission to associate an alias with an [AWS
|
4472
|
+
# managed CMK][2].
|
4400
4473
|
#
|
4401
4474
|
# The CMK must be in the same AWS account and Region as the alias.
|
4402
4475
|
# Also, the new target CMK must be the same type as the current target
|
@@ -4417,6 +4490,11 @@ module Aws::KMS
|
|
4417
4490
|
#
|
4418
4491
|
# To verify that the alias is mapped to the correct CMK, use
|
4419
4492
|
# ListAliases.
|
4493
|
+
#
|
4494
|
+
#
|
4495
|
+
#
|
4496
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk
|
4497
|
+
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
|
4420
4498
|
# @return [String]
|
4421
4499
|
#
|
4422
4500
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAliasRequest AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.43.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:
|
11
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.112.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,11 +47,14 @@ dependencies:
|
|
47
47
|
description: Official AWS Ruby gem for AWS Key Management Service (KMS). This gem
|
48
48
|
is part of the AWS SDK for Ruby.
|
49
49
|
email:
|
50
|
-
-
|
50
|
+
- aws-dr-rubygems@amazon.com
|
51
51
|
executables: []
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
+
- CHANGELOG.md
|
56
|
+
- LICENSE.txt
|
57
|
+
- VERSION
|
55
58
|
- lib/aws-sdk-kms.rb
|
56
59
|
- lib/aws-sdk-kms/client.rb
|
57
60
|
- lib/aws-sdk-kms/client_api.rb
|