aws-sdk-kms 1.77.0 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +14 -12
- data/lib/aws-sdk-kms/client_api.rb +3 -2
- data/lib/aws-sdk-kms/types.rb +10 -3
- data/lib/aws-sdk-kms.rb +1 -1
- data/sig/client.rbs +3 -2
- data/sig/types.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b05591dab1f1f02bba5a98334bf378b959226a3ac1c90e9cf58035224a2111a0
|
4
|
+
data.tar.gz: ffc4f9f1d05952fc2cb0728a9ce69da6c9530d28c14982c2327eb62efe347964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e70d5a23bc7902eef9522451509e2a5574a29cca62c79c8999da1063b1bdb6b5689600c280d1838a9540a0da9a45765d023cfbb1274a553e31f82b4473212f
|
7
|
+
data.tar.gz: ec6634ec155cb7d20c65c7a977876eb2d5a376fd0de6a167470d3a632ef0072e9c862fea8ef4ef5d35b7a7cfe28611f80dda6ff03e65ff998af0a3a98d04909d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
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
|
+
|
4
9
|
1.77.0 (2024-01-26)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.78.0
|
data/lib/aws-sdk-kms/client.rb
CHANGED
@@ -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 [
|
5587
|
-
# Specifies the name of the key policy.
|
5588
|
-
# `default`.
|
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",
|
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.
|
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 [
|
7337
|
-
# The name of the key policy.
|
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",
|
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/
|
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.
|
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,
|
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,
|
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
|
data/lib/aws-sdk-kms/types.rb
CHANGED
@@ -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.
|
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.
|
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
data/sig/client.rbs
CHANGED
@@ -399,11 +399,12 @@ module Aws
|
|
399
399
|
interface _GetKeyPolicyResponseSuccess
|
400
400
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyPolicyResponse]
|
401
401
|
def policy: () -> ::String
|
402
|
+
def policy_name: () -> ::String
|
402
403
|
end
|
403
404
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_policy-instance_method
|
404
405
|
def get_key_policy: (
|
405
406
|
key_id: ::String,
|
406
|
-
policy_name: ::String
|
407
|
+
?policy_name: ::String
|
407
408
|
) -> _GetKeyPolicyResponseSuccess
|
408
409
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyPolicyResponseSuccess
|
409
410
|
|
@@ -550,7 +551,7 @@ module Aws
|
|
550
551
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#put_key_policy-instance_method
|
551
552
|
def put_key_policy: (
|
552
553
|
key_id: ::String,
|
553
|
-
policy_name: ::String,
|
554
|
+
?policy_name: ::String,
|
554
555
|
policy: ::String,
|
555
556
|
?bypass_policy_lockout_safety_check: bool
|
556
557
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
data/sig/types.rbs
CHANGED
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.78.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: 2024-
|
11
|
+
date: 2024-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|