aws-sdk-kms 1.76.0 → 1.78.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: 2ac9b86d5053d0cbd78bec25bd573468bc0d96bee4584e6df3e051f00083af37
4
- data.tar.gz: 90bba8885fec06413692bb1cb1e09bbf30d2ccfc4728b2734db010f32363d199
3
+ metadata.gz: b05591dab1f1f02bba5a98334bf378b959226a3ac1c90e9cf58035224a2111a0
4
+ data.tar.gz: ffc4f9f1d05952fc2cb0728a9ce69da6c9530d28c14982c2327eb62efe347964
5
5
  SHA512:
6
- metadata.gz: f5f442dd253b347e9ee0ee594694ff87d9cdb31425541a7fc6c1799324f3aecbf34934d9c51632f356d1f1026ef173888c27d2c3edd611890c0774fba5dc76e5
7
- data.tar.gz: ce26a9d90b5600a5104e5fc418304fdab1dbce2448bfb22656cee3a47973d7ff2fc52c6cc5710dd9ac4ec0a7b7cb8ab089fb2ae2029ae758ed23bf102726fd3c
6
+ metadata.gz: c5e70d5a23bc7902eef9522451509e2a5574a29cca62c79c8999da1063b1bdb6b5689600c280d1838a9540a0da9a45765d023cfbb1274a553e31f82b4473212f
7
+ data.tar.gz: ec6634ec155cb7d20c65c7a977876eb2d5a376fd0de6a167470d3a632ef0072e9c862fea8ef4ef5d35b7a7cfe28611f80dda6ff03e65ff998af0a3a98d04909d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.78.0 (2024-03-18)
5
+ ------------------
6
+
7
+ * Feature - Adds the ability to use the default policy name by omitting the policyName parameter in calls to PutKeyPolicy and GetKeyPolicy
8
+
9
+ 1.77.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.76.0 (2024-01-05)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.76.0
1
+ 1.78.0
@@ -5583,13 +5583,15 @@ module Aws::KMS
5583
5583
  # To get the key ID and key ARN for a KMS key, use ListKeys or
5584
5584
  # DescribeKey.
5585
5585
  #
5586
- # @option params [required, String] :policy_name
5587
- # Specifies the name of the key policy. The only valid name is
5588
- # `default`. To get the names of key policies, use ListKeyPolicies.
5586
+ # @option params [String] :policy_name
5587
+ # Specifies the name of the key policy. If no policy name is specified,
5588
+ # the default value is `default`. The only valid name is `default`. To
5589
+ # get the names of key policies, use ListKeyPolicies.
5589
5590
  #
5590
5591
  # @return [Types::GetKeyPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5591
5592
  #
5592
5593
  # * {Types::GetKeyPolicyResponse#policy #policy} => String
5594
+ # * {Types::GetKeyPolicyResponse#policy_name #policy_name} => String
5593
5595
  #
5594
5596
  #
5595
5597
  # @example Example: To retrieve a key policy
@@ -5610,12 +5612,13 @@ module Aws::KMS
5610
5612
  #
5611
5613
  # resp = client.get_key_policy({
5612
5614
  # key_id: "KeyIdType", # required
5613
- # policy_name: "PolicyNameType", # required
5615
+ # policy_name: "PolicyNameType",
5614
5616
  # })
5615
5617
  #
5616
5618
  # @example Response structure
5617
5619
  #
5618
5620
  # resp.policy #=> String
5621
+ # resp.policy_name #=> String
5619
5622
  #
5620
5623
  # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy AWS API Documentation
5621
5624
  #
@@ -6196,9 +6199,7 @@ module Aws::KMS
6196
6199
  # import different key material. You might reimport key material to
6197
6200
  # replace key material that expired or key material that you deleted.
6198
6201
  # You might also reimport key material to change the expiration model or
6199
- # expiration date of the key material. Before reimporting key material,
6200
- # if necessary, call DeleteImportedKeyMaterial to delete the current
6201
- # imported key material.
6202
+ # expiration date of the key material.
6202
6203
  #
6203
6204
  # Each time you import key material into KMS, you can determine whether
6204
6205
  # (`ExpirationModel`) and when (`ValidTo`) the key material expires. To
@@ -7333,8 +7334,9 @@ module Aws::KMS
7333
7334
  # To get the key ID and key ARN for a KMS key, use ListKeys or
7334
7335
  # DescribeKey.
7335
7336
  #
7336
- # @option params [required, String] :policy_name
7337
- # The name of the key policy. The only valid value is `default`.
7337
+ # @option params [String] :policy_name
7338
+ # The name of the key policy. If no policy name is specified, the
7339
+ # default value is `default`. The only valid value is `default`.
7338
7340
  #
7339
7341
  # @option params [required, String] :policy
7340
7342
  # The key policy to attach to the KMS key.
@@ -7416,7 +7418,7 @@ module Aws::KMS
7416
7418
  #
7417
7419
  # resp = client.put_key_policy({
7418
7420
  # key_id: "KeyIdType", # required
7419
- # policy_name: "PolicyNameType", # required
7421
+ # policy_name: "PolicyNameType",
7420
7422
  # policy: "PolicyType", # required
7421
7423
  # bypass_policy_lockout_safety_check: false,
7422
7424
  # })
@@ -8302,7 +8304,7 @@ module Aws::KMS
8302
8304
  #
8303
8305
  #
8304
8306
  #
8305
- # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete
8307
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete
8306
8308
  # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency
8307
8309
  # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html
8308
8310
  # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html
@@ -10103,7 +10105,7 @@ module Aws::KMS
10103
10105
  params: params,
10104
10106
  config: config)
10105
10107
  context[:gem_name] = 'aws-sdk-kms'
10106
- context[:gem_version] = '1.76.0'
10108
+ context[:gem_version] = '1.78.0'
10107
10109
  Seahorse::Client::Request.new(handlers, context)
10108
10110
  end
10109
10111
 
@@ -514,10 +514,11 @@ module Aws::KMS
514
514
  GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
515
515
 
516
516
  GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
517
- GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
517
+ GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
518
518
  GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
519
519
 
520
520
  GetKeyPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
521
+ GetKeyPolicyResponse.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
521
522
  GetKeyPolicyResponse.struct_class = Types::GetKeyPolicyResponse
522
523
 
523
524
  GetKeyRotationStatusRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
@@ -741,7 +742,7 @@ module Aws::KMS
741
742
  PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
742
743
 
743
744
  PutKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
744
- PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
745
+ PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
745
746
  PutKeyPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "Policy"))
746
747
  PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
747
748
  PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
@@ -14,6 +14,7 @@ module Aws::KMS
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::KMS::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -3048,7 +3048,8 @@ module Aws::KMS
3048
3048
  # @return [String]
3049
3049
  #
3050
3050
  # @!attribute [rw] policy_name
3051
- # Specifies the name of the key policy. The only valid name is
3051
+ # Specifies the name of the key policy. If no policy name is
3052
+ # specified, the default value is `default`. The only valid name is
3052
3053
  # `default`. To get the names of key policies, use ListKeyPolicies.
3053
3054
  # @return [String]
3054
3055
  #
@@ -3065,10 +3066,15 @@ module Aws::KMS
3065
3066
  # A key policy document in JSON format.
3066
3067
  # @return [String]
3067
3068
  #
3069
+ # @!attribute [rw] policy_name
3070
+ # The name of the key policy. The only valid value is `default`.
3071
+ # @return [String]
3072
+ #
3068
3073
  # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicyResponse AWS API Documentation
3069
3074
  #
3070
3075
  class GetKeyPolicyResponse < Struct.new(
3071
- :policy)
3076
+ :policy,
3077
+ :policy_name)
3072
3078
  SENSITIVE = []
3073
3079
  include Aws::Structure
3074
3080
  end
@@ -4650,7 +4656,8 @@ module Aws::KMS
4650
4656
  # @return [String]
4651
4657
  #
4652
4658
  # @!attribute [rw] policy_name
4653
- # The name of the key policy. The only valid value is `default`.
4659
+ # The name of the key policy. If no policy name is specified, the
4660
+ # default value is `default`. The only valid value is `default`.
4654
4661
  # @return [String]
4655
4662
  #
4656
4663
  # @!attribute [rw] policy
data/lib/aws-sdk-kms.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-kms/customizations'
52
52
  # @!group service
53
53
  module Aws::KMS
54
54
 
55
- GEM_VERSION = '1.76.0'
55
+ GEM_VERSION = '1.78.0'
56
56
 
57
57
  end