aws-sdk-kms 1.76.0 → 1.91.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 +75 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +793 -118
- data/lib/aws-sdk-kms/client_api.rb +130 -2
- data/lib/aws-sdk-kms/endpoints.rb +83 -200
- data/lib/aws-sdk-kms/errors.rb +16 -0
- data/lib/aws-sdk-kms/plugins/endpoints.rb +17 -1
- data/lib/aws-sdk-kms/types.rb +472 -36
- data/lib/aws-sdk-kms.rb +1 -1
- data/sig/client.rbs +803 -0
- data/sig/errors.rbs +160 -0
- data/sig/resource.rbs +82 -0
- data/sig/types.rbs +1036 -0
- data/sig/waiters.rbs +13 -0
- metadata +15 -10
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -33,6 +33,7 @@ module Aws::KMS
|
|
33
33
|
# * {CloudHsmClusterNotActiveException}
|
34
34
|
# * {CloudHsmClusterNotFoundException}
|
35
35
|
# * {CloudHsmClusterNotRelatedException}
|
36
|
+
# * {ConflictException}
|
36
37
|
# * {CustomKeyStoreHasCMKsException}
|
37
38
|
# * {CustomKeyStoreInvalidStateException}
|
38
39
|
# * {CustomKeyStoreNameInUseException}
|
@@ -171,6 +172,21 @@ module Aws::KMS
|
|
171
172
|
end
|
172
173
|
end
|
173
174
|
|
175
|
+
class ConflictException < ServiceError
|
176
|
+
|
177
|
+
# @param [Seahorse::Client::RequestContext] context
|
178
|
+
# @param [String] message
|
179
|
+
# @param [Aws::KMS::Types::ConflictException] data
|
180
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
181
|
+
super(context, message, data)
|
182
|
+
end
|
183
|
+
|
184
|
+
# @return [String]
|
185
|
+
def message
|
186
|
+
@message || @data[:message]
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
174
190
|
class CustomKeyStoreHasCMKsException < ServiceError
|
175
191
|
|
176
192
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -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 '\
|
@@ -39,11 +40,20 @@ module Aws::KMS
|
|
39
40
|
context[:auth_scheme] =
|
40
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
41
42
|
|
42
|
-
@handler.call(context)
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
43
44
|
end
|
44
45
|
|
45
46
|
private
|
46
47
|
|
48
|
+
def with_metrics(context, &block)
|
49
|
+
metrics = []
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
53
|
+
end
|
54
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
55
|
+
end
|
56
|
+
|
47
57
|
def apply_endpoint_headers(context, headers)
|
48
58
|
headers.each do |key, values|
|
49
59
|
value = values
|
@@ -77,6 +87,8 @@ module Aws::KMS
|
|
77
87
|
Aws::KMS::Endpoints::DeleteCustomKeyStore.build(context)
|
78
88
|
when :delete_imported_key_material
|
79
89
|
Aws::KMS::Endpoints::DeleteImportedKeyMaterial.build(context)
|
90
|
+
when :derive_shared_secret
|
91
|
+
Aws::KMS::Endpoints::DeriveSharedSecret.build(context)
|
80
92
|
when :describe_custom_key_stores
|
81
93
|
Aws::KMS::Endpoints::DescribeCustomKeyStores.build(context)
|
82
94
|
when :describe_key
|
@@ -121,6 +133,8 @@ module Aws::KMS
|
|
121
133
|
Aws::KMS::Endpoints::ListGrants.build(context)
|
122
134
|
when :list_key_policies
|
123
135
|
Aws::KMS::Endpoints::ListKeyPolicies.build(context)
|
136
|
+
when :list_key_rotations
|
137
|
+
Aws::KMS::Endpoints::ListKeyRotations.build(context)
|
124
138
|
when :list_keys
|
125
139
|
Aws::KMS::Endpoints::ListKeys.build(context)
|
126
140
|
when :list_resource_tags
|
@@ -137,6 +151,8 @@ module Aws::KMS
|
|
137
151
|
Aws::KMS::Endpoints::RetireGrant.build(context)
|
138
152
|
when :revoke_grant
|
139
153
|
Aws::KMS::Endpoints::RevokeGrant.build(context)
|
154
|
+
when :rotate_key_on_demand
|
155
|
+
Aws::KMS::Endpoints::RotateKeyOnDemand.build(context)
|
140
156
|
when :schedule_key_deletion
|
141
157
|
Aws::KMS::Endpoints::ScheduleKeyDeletion.build(context)
|
142
158
|
when :sign
|