aws-sdk-kms 1.40.0 → 1.42.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: 6bf5d7d6190e97a932c923b974e00336bd9f011ce2a0f109a44897f6a19fc876
4
- data.tar.gz: 62336c63a81cc1542c704405bc28156b43e90475444d12b97f647a2a98d56c33
3
+ metadata.gz: 0c8b9f8170f77f790ba8c085a1fbbc7376d634806d1a11f86e6ec61a67b315f1
4
+ data.tar.gz: f609988b4f8c98e07a0939ed4cbe5ce0605269d4e4ff626554b77a1621ad59f4
5
5
  SHA512:
6
- metadata.gz: 5e1e0ff07094584becfe74a24f482fa936b9819d5c2dca733a50c171254fffab3978d0828149a8ce85a0eab03e1b7b3969c0342253b42d8333ad213e7ce33da0
7
- data.tar.gz: ad825d989dd35a99d9f7663e62591c7d926b4bd8ff583d4d8e750ccb9e3cd3009f80046a000239f238bd0faf19e3a386f84fb20b02b8e87c3c85d7a73345946a
6
+ metadata.gz: 40fe60004351b58f77b7ff67880f3106a7c7a2cf3dba8a5cb1aca7e35924661784d67c36e519a96af0abf30485b9c2ec4cf3bca9f7b00eea1b0055d51dd28da9
7
+ data.tar.gz: a485130ec88777e4acb57816180c61bccfa88b7c4dce666730457437c1933e8a344012cdf6bef68c3cdae887e39fb7004e489cc9afb8220a1c64d658c3b7477c
data/lib/aws-sdk-kms.rb CHANGED
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-kms/customizations'
48
48
  # @!group service
49
49
  module Aws::KMS
50
50
 
51
- GEM_VERSION = '1.40.0'
51
+ GEM_VERSION = '1.42.0'
52
52
 
53
53
  end
@@ -4131,6 +4131,9 @@ module Aws::KMS
4131
4131
 
4132
4132
  # Gets a list of all grants for the specified customer master key (CMK).
4133
4133
  #
4134
+ # You must specify the CMK in all requests. You can filter the grant
4135
+ # list by grant ID or grantee principal.
4136
+ #
4134
4137
  # <note markdown="1"> The `GranteePrincipal` field in the `ListGrants` response usually
4135
4138
  # contains the user or role designated as the grantee principal in the
4136
4139
  # grant. However, when the grantee principal in the grant is an AWS
@@ -4175,7 +4178,8 @@ module Aws::KMS
4175
4178
  # from the truncated response you just received.
4176
4179
  #
4177
4180
  # @option params [required, String] :key_id
4178
- # A unique identifier for the customer master key (CMK).
4181
+ # Returns only grants for the specified customer master key (CMK). This
4182
+ # parameter is required.
4179
4183
  #
4180
4184
  # Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
4181
4185
  # specify a CMK in a different AWS account, you must use the key ARN.
@@ -4189,6 +4193,14 @@ module Aws::KMS
4189
4193
  #
4190
4194
  # To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
4191
4195
  #
4196
+ # @option params [String] :grant_id
4197
+ # Returns only the grant with the specified grant ID. The grant ID
4198
+ # uniquely identifies the grant.
4199
+ #
4200
+ # @option params [String] :grantee_principal
4201
+ # Returns only grants where the specified principal is the grantee
4202
+ # principal for the grant.
4203
+ #
4192
4204
  # @return [Types::ListGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4193
4205
  #
4194
4206
  # * {Types::ListGrantsResponse#grants #grants} => Array&lt;Types::GrantListEntry&gt;
@@ -4270,6 +4282,8 @@ module Aws::KMS
4270
4282
  # limit: 1,
4271
4283
  # marker: "MarkerType",
4272
4284
  # key_id: "KeyIdType", # required
4285
+ # grant_id: "GrantIdType",
4286
+ # grantee_principal: "PrincipalIdType",
4273
4287
  # })
4274
4288
  #
4275
4289
  # @example Response structure
@@ -6219,7 +6233,7 @@ module Aws::KMS
6219
6233
  params: params,
6220
6234
  config: config)
6221
6235
  context[:gem_name] = 'aws-sdk-kms'
6222
- context[:gem_version] = '1.40.0'
6236
+ context[:gem_version] = '1.42.0'
6223
6237
  Seahorse::Client::Request.new(handlers, context)
6224
6238
  end
6225
6239
 
@@ -581,6 +581,8 @@ module Aws::KMS
581
581
  ListGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
582
582
  ListGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
583
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"))
584
586
  ListGrantsRequest.struct_class = Types::ListGrantsRequest
585
587
 
586
588
  ListGrantsResponse.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "Grants"))
@@ -1190,6 +1192,7 @@ module Aws::KMS
1190
1192
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1191
1193
  o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
1192
1194
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1195
+ o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
1193
1196
  o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1194
1197
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1195
1198
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
@@ -21,18 +21,13 @@ module Aws::KMS
21
21
  # @return [String]
22
22
  #
23
23
  # @!attribute [rw] target_key_id
24
- # String that contains the key identifier of the CMK associated with
25
- # the alias.
24
+ # String that contains the key identifier referred to by the alias.
26
25
  # @return [String]
27
26
  #
28
27
  # @!attribute [rw] creation_date
29
- # Date and time that the alias was most recently created in the
30
- # account and Region. Formatted as Unix time.
31
28
  # @return [Time]
32
29
  #
33
30
  # @!attribute [rw] last_updated_date
34
- # Date and time that the alias was most recently associated with a CMK
35
- # in the account and Region. Formatted as Unix time.
36
31
  # @return [Time]
37
32
  #
38
33
  # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/AliasListEntry AWS API Documentation
@@ -562,8 +557,8 @@ module Aws::KMS
562
557
  # @!attribute [rw] grant_id
563
558
  # The unique identifier for the grant.
564
559
  #
565
- # You can use the `GrantId` in a subsequent RetireGrant or RevokeGrant
566
- # operation.
560
+ # You can use the `GrantId` in a ListGrants, RetireGrant, or
561
+ # RevokeGrant operation.
567
562
  # @return [String]
568
563
  #
569
564
  # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantResponse AWS API Documentation
@@ -3346,6 +3341,8 @@ module Aws::KMS
3346
3341
  # limit: 1,
3347
3342
  # marker: "MarkerType",
3348
3343
  # key_id: "KeyIdType", # required
3344
+ # grant_id: "GrantIdType",
3345
+ # grantee_principal: "PrincipalIdType",
3349
3346
  # }
3350
3347
  #
3351
3348
  # @!attribute [rw] limit
@@ -3365,7 +3362,8 @@ module Aws::KMS
3365
3362
  # @return [String]
3366
3363
  #
3367
3364
  # @!attribute [rw] key_id
3368
- # A unique identifier for the customer master key (CMK).
3365
+ # Returns only grants for the specified customer master key (CMK).
3366
+ # This parameter is required.
3369
3367
  #
3370
3368
  # Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
3371
3369
  # specify a CMK in a different AWS account, you must use the key ARN.
@@ -3381,12 +3379,24 @@ module Aws::KMS
3381
3379
  # DescribeKey.
3382
3380
  # @return [String]
3383
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
+ #
3384
3392
  # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrantsRequest AWS API Documentation
3385
3393
  #
3386
3394
  class ListGrantsRequest < Struct.new(
3387
3395
  :limit,
3388
3396
  :marker,
3389
- :key_id)
3397
+ :key_id,
3398
+ :grant_id,
3399
+ :grantee_principal)
3390
3400
  SENSITIVE = []
3391
3401
  include Aws::Structure
3392
3402
  end
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.40.0
4
+ version: 1.42.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-12-17 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.109.0
22
+ version: 3.112.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.109.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement