aws-sdk-paymentcryptography 1.10.0 → 1.12.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.
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::PaymentCryptography
13
+ module Waiters
14
+ end
15
+ end
@@ -16,6 +16,7 @@ require_relative 'aws-sdk-paymentcryptography/client_api'
16
16
  require_relative 'aws-sdk-paymentcryptography/plugins/endpoints.rb'
17
17
  require_relative 'aws-sdk-paymentcryptography/client'
18
18
  require_relative 'aws-sdk-paymentcryptography/errors'
19
+ require_relative 'aws-sdk-paymentcryptography/waiters'
19
20
  require_relative 'aws-sdk-paymentcryptography/resource'
20
21
  require_relative 'aws-sdk-paymentcryptography/endpoint_parameters'
21
22
  require_relative 'aws-sdk-paymentcryptography/endpoint_provider'
@@ -52,6 +53,6 @@ require_relative 'aws-sdk-paymentcryptography/customizations'
52
53
  # @!group service
53
54
  module Aws::PaymentCryptography
54
55
 
55
- GEM_VERSION = '1.10.0'
56
+ GEM_VERSION = '1.12.0'
56
57
 
57
58
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,465 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module PaymentCryptography
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?simple_json: bool,
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> instance
73
+ | (?Hash[Symbol, untyped]) -> instance
74
+
75
+
76
+ interface _CreateAliasResponseSuccess
77
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateAliasOutput]
78
+ def alias: () -> Types::Alias
79
+ end
80
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#create_alias-instance_method
81
+ def create_alias: (
82
+ alias_name: ::String,
83
+ ?key_arn: ::String
84
+ ) -> _CreateAliasResponseSuccess
85
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAliasResponseSuccess
86
+
87
+ interface _CreateKeyResponseSuccess
88
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateKeyOutput]
89
+ def key: () -> Types::Key
90
+ end
91
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#create_key-instance_method
92
+ def create_key: (
93
+ key_attributes: {
94
+ key_usage: ("TR31_B0_BASE_DERIVATION_KEY" | "TR31_C0_CARD_VERIFICATION_KEY" | "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY" | "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION" | "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS" | "TR31_E1_EMV_MKEY_CONFIDENTIALITY" | "TR31_E2_EMV_MKEY_INTEGRITY" | "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS" | "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION" | "TR31_E6_EMV_MKEY_OTHER" | "TR31_K0_KEY_ENCRYPTION_KEY" | "TR31_K1_KEY_BLOCK_PROTECTION_KEY" | "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT" | "TR31_M3_ISO_9797_3_MAC_KEY" | "TR31_M1_ISO_9797_1_MAC_KEY" | "TR31_M6_ISO_9797_5_CMAC_KEY" | "TR31_M7_HMAC_KEY" | "TR31_P0_PIN_ENCRYPTION_KEY" | "TR31_P1_PIN_GENERATION_KEY" | "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE" | "TR31_V1_IBM3624_PIN_VERIFICATION_KEY" | "TR31_V2_VISA_PIN_VERIFICATION_KEY" | "TR31_K2_TR34_ASYMMETRIC_KEY"),
95
+ key_class: ("SYMMETRIC_KEY" | "ASYMMETRIC_KEY_PAIR" | "PRIVATE_KEY" | "PUBLIC_KEY"),
96
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096"),
97
+ key_modes_of_use: {
98
+ encrypt: bool?,
99
+ decrypt: bool?,
100
+ wrap: bool?,
101
+ unwrap: bool?,
102
+ generate: bool?,
103
+ sign: bool?,
104
+ verify: bool?,
105
+ derive_key: bool?,
106
+ no_restrictions: bool?
107
+ }
108
+ },
109
+ ?key_check_value_algorithm: ("CMAC" | "ANSI_X9_24"),
110
+ exportable: bool,
111
+ ?enabled: bool,
112
+ ?tags: Array[
113
+ {
114
+ key: ::String,
115
+ value: ::String?
116
+ },
117
+ ]
118
+ ) -> _CreateKeyResponseSuccess
119
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateKeyResponseSuccess
120
+
121
+ interface _DeleteAliasResponseSuccess
122
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAliasOutput]
123
+ end
124
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#delete_alias-instance_method
125
+ def delete_alias: (
126
+ alias_name: ::String
127
+ ) -> _DeleteAliasResponseSuccess
128
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAliasResponseSuccess
129
+
130
+ interface _DeleteKeyResponseSuccess
131
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteKeyOutput]
132
+ def key: () -> Types::Key
133
+ end
134
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#delete_key-instance_method
135
+ def delete_key: (
136
+ key_identifier: ::String,
137
+ ?delete_key_in_days: ::Integer
138
+ ) -> _DeleteKeyResponseSuccess
139
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteKeyResponseSuccess
140
+
141
+ interface _ExportKeyResponseSuccess
142
+ include ::Seahorse::Client::_ResponseSuccess[Types::ExportKeyOutput]
143
+ def wrapped_key: () -> Types::WrappedKey
144
+ end
145
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#export_key-instance_method
146
+ def export_key: (
147
+ key_material: {
148
+ tr_31_key_block: {
149
+ wrapping_key_identifier: ::String,
150
+ key_block_headers: {
151
+ key_modes_of_use: {
152
+ encrypt: bool?,
153
+ decrypt: bool?,
154
+ wrap: bool?,
155
+ unwrap: bool?,
156
+ generate: bool?,
157
+ sign: bool?,
158
+ verify: bool?,
159
+ derive_key: bool?,
160
+ no_restrictions: bool?
161
+ }?,
162
+ key_exportability: ("EXPORTABLE" | "NON_EXPORTABLE" | "SENSITIVE")?,
163
+ key_version: ::String?,
164
+ optional_blocks: Hash[::String, ::String]?
165
+ }?
166
+ }?,
167
+ tr_34_key_block: {
168
+ certificate_authority_public_key_identifier: ::String,
169
+ wrapping_key_certificate: ::String,
170
+ export_token: ::String,
171
+ key_block_format: ("X9_TR34_2012"),
172
+ random_nonce: ::String?,
173
+ key_block_headers: {
174
+ key_modes_of_use: {
175
+ encrypt: bool?,
176
+ decrypt: bool?,
177
+ wrap: bool?,
178
+ unwrap: bool?,
179
+ generate: bool?,
180
+ sign: bool?,
181
+ verify: bool?,
182
+ derive_key: bool?,
183
+ no_restrictions: bool?
184
+ }?,
185
+ key_exportability: ("EXPORTABLE" | "NON_EXPORTABLE" | "SENSITIVE")?,
186
+ key_version: ::String?,
187
+ optional_blocks: Hash[::String, ::String]?
188
+ }?
189
+ }?,
190
+ key_cryptogram: {
191
+ certificate_authority_public_key_identifier: ::String,
192
+ wrapping_key_certificate: ::String,
193
+ wrapping_spec: ("RSA_OAEP_SHA_256" | "RSA_OAEP_SHA_512")?
194
+ }?
195
+ },
196
+ export_key_identifier: ::String,
197
+ ?export_attributes: {
198
+ export_dukpt_initial_key: {
199
+ key_serial_number: ::String
200
+ }?,
201
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
202
+ }
203
+ ) -> _ExportKeyResponseSuccess
204
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportKeyResponseSuccess
205
+
206
+ interface _GetAliasResponseSuccess
207
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAliasOutput]
208
+ def alias: () -> Types::Alias
209
+ end
210
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_alias-instance_method
211
+ def get_alias: (
212
+ alias_name: ::String
213
+ ) -> _GetAliasResponseSuccess
214
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAliasResponseSuccess
215
+
216
+ interface _GetKeyResponseSuccess
217
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyOutput]
218
+ def key: () -> Types::Key
219
+ end
220
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_key-instance_method
221
+ def get_key: (
222
+ key_identifier: ::String
223
+ ) -> _GetKeyResponseSuccess
224
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyResponseSuccess
225
+
226
+ interface _GetParametersForExportResponseSuccess
227
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetParametersForExportOutput]
228
+ def signing_key_certificate: () -> ::String
229
+ def signing_key_certificate_chain: () -> ::String
230
+ def signing_key_algorithm: () -> ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096")
231
+ def export_token: () -> ::String
232
+ def parameters_valid_until_timestamp: () -> ::Time
233
+ end
234
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_parameters_for_export-instance_method
235
+ def get_parameters_for_export: (
236
+ key_material_type: ("TR34_KEY_BLOCK" | "TR31_KEY_BLOCK" | "ROOT_PUBLIC_KEY_CERTIFICATE" | "TRUSTED_PUBLIC_KEY_CERTIFICATE" | "KEY_CRYPTOGRAM"),
237
+ signing_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096")
238
+ ) -> _GetParametersForExportResponseSuccess
239
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForExportResponseSuccess
240
+
241
+ interface _GetParametersForImportResponseSuccess
242
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetParametersForImportOutput]
243
+ def wrapping_key_certificate: () -> ::String
244
+ def wrapping_key_certificate_chain: () -> ::String
245
+ def wrapping_key_algorithm: () -> ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096")
246
+ def import_token: () -> ::String
247
+ def parameters_valid_until_timestamp: () -> ::Time
248
+ end
249
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_parameters_for_import-instance_method
250
+ def get_parameters_for_import: (
251
+ key_material_type: ("TR34_KEY_BLOCK" | "TR31_KEY_BLOCK" | "ROOT_PUBLIC_KEY_CERTIFICATE" | "TRUSTED_PUBLIC_KEY_CERTIFICATE" | "KEY_CRYPTOGRAM"),
252
+ wrapping_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096")
253
+ ) -> _GetParametersForImportResponseSuccess
254
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForImportResponseSuccess
255
+
256
+ interface _GetPublicKeyCertificateResponseSuccess
257
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPublicKeyCertificateOutput]
258
+ def key_certificate: () -> ::String
259
+ def key_certificate_chain: () -> ::String
260
+ end
261
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_public_key_certificate-instance_method
262
+ def get_public_key_certificate: (
263
+ key_identifier: ::String
264
+ ) -> _GetPublicKeyCertificateResponseSuccess
265
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicKeyCertificateResponseSuccess
266
+
267
+ interface _ImportKeyResponseSuccess
268
+ include ::Seahorse::Client::_ResponseSuccess[Types::ImportKeyOutput]
269
+ def key: () -> Types::Key
270
+ end
271
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#import_key-instance_method
272
+ def import_key: (
273
+ key_material: {
274
+ root_certificate_public_key: {
275
+ key_attributes: {
276
+ key_usage: ("TR31_B0_BASE_DERIVATION_KEY" | "TR31_C0_CARD_VERIFICATION_KEY" | "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY" | "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION" | "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS" | "TR31_E1_EMV_MKEY_CONFIDENTIALITY" | "TR31_E2_EMV_MKEY_INTEGRITY" | "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS" | "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION" | "TR31_E6_EMV_MKEY_OTHER" | "TR31_K0_KEY_ENCRYPTION_KEY" | "TR31_K1_KEY_BLOCK_PROTECTION_KEY" | "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT" | "TR31_M3_ISO_9797_3_MAC_KEY" | "TR31_M1_ISO_9797_1_MAC_KEY" | "TR31_M6_ISO_9797_5_CMAC_KEY" | "TR31_M7_HMAC_KEY" | "TR31_P0_PIN_ENCRYPTION_KEY" | "TR31_P1_PIN_GENERATION_KEY" | "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE" | "TR31_V1_IBM3624_PIN_VERIFICATION_KEY" | "TR31_V2_VISA_PIN_VERIFICATION_KEY" | "TR31_K2_TR34_ASYMMETRIC_KEY"),
277
+ key_class: ("SYMMETRIC_KEY" | "ASYMMETRIC_KEY_PAIR" | "PRIVATE_KEY" | "PUBLIC_KEY"),
278
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096"),
279
+ key_modes_of_use: {
280
+ encrypt: bool?,
281
+ decrypt: bool?,
282
+ wrap: bool?,
283
+ unwrap: bool?,
284
+ generate: bool?,
285
+ sign: bool?,
286
+ verify: bool?,
287
+ derive_key: bool?,
288
+ no_restrictions: bool?
289
+ }
290
+ },
291
+ public_key_certificate: ::String
292
+ }?,
293
+ trusted_certificate_public_key: {
294
+ key_attributes: {
295
+ key_usage: ("TR31_B0_BASE_DERIVATION_KEY" | "TR31_C0_CARD_VERIFICATION_KEY" | "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY" | "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION" | "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS" | "TR31_E1_EMV_MKEY_CONFIDENTIALITY" | "TR31_E2_EMV_MKEY_INTEGRITY" | "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS" | "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION" | "TR31_E6_EMV_MKEY_OTHER" | "TR31_K0_KEY_ENCRYPTION_KEY" | "TR31_K1_KEY_BLOCK_PROTECTION_KEY" | "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT" | "TR31_M3_ISO_9797_3_MAC_KEY" | "TR31_M1_ISO_9797_1_MAC_KEY" | "TR31_M6_ISO_9797_5_CMAC_KEY" | "TR31_M7_HMAC_KEY" | "TR31_P0_PIN_ENCRYPTION_KEY" | "TR31_P1_PIN_GENERATION_KEY" | "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE" | "TR31_V1_IBM3624_PIN_VERIFICATION_KEY" | "TR31_V2_VISA_PIN_VERIFICATION_KEY" | "TR31_K2_TR34_ASYMMETRIC_KEY"),
296
+ key_class: ("SYMMETRIC_KEY" | "ASYMMETRIC_KEY_PAIR" | "PRIVATE_KEY" | "PUBLIC_KEY"),
297
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096"),
298
+ key_modes_of_use: {
299
+ encrypt: bool?,
300
+ decrypt: bool?,
301
+ wrap: bool?,
302
+ unwrap: bool?,
303
+ generate: bool?,
304
+ sign: bool?,
305
+ verify: bool?,
306
+ derive_key: bool?,
307
+ no_restrictions: bool?
308
+ }
309
+ },
310
+ public_key_certificate: ::String,
311
+ certificate_authority_public_key_identifier: ::String
312
+ }?,
313
+ tr_31_key_block: {
314
+ wrapping_key_identifier: ::String,
315
+ wrapped_key_block: ::String
316
+ }?,
317
+ tr_34_key_block: {
318
+ certificate_authority_public_key_identifier: ::String,
319
+ signing_key_certificate: ::String,
320
+ import_token: ::String,
321
+ wrapped_key_block: ::String,
322
+ key_block_format: ("X9_TR34_2012"),
323
+ random_nonce: ::String?
324
+ }?,
325
+ key_cryptogram: {
326
+ key_attributes: {
327
+ key_usage: ("TR31_B0_BASE_DERIVATION_KEY" | "TR31_C0_CARD_VERIFICATION_KEY" | "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY" | "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION" | "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS" | "TR31_E1_EMV_MKEY_CONFIDENTIALITY" | "TR31_E2_EMV_MKEY_INTEGRITY" | "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS" | "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION" | "TR31_E6_EMV_MKEY_OTHER" | "TR31_K0_KEY_ENCRYPTION_KEY" | "TR31_K1_KEY_BLOCK_PROTECTION_KEY" | "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT" | "TR31_M3_ISO_9797_3_MAC_KEY" | "TR31_M1_ISO_9797_1_MAC_KEY" | "TR31_M6_ISO_9797_5_CMAC_KEY" | "TR31_M7_HMAC_KEY" | "TR31_P0_PIN_ENCRYPTION_KEY" | "TR31_P1_PIN_GENERATION_KEY" | "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE" | "TR31_V1_IBM3624_PIN_VERIFICATION_KEY" | "TR31_V2_VISA_PIN_VERIFICATION_KEY" | "TR31_K2_TR34_ASYMMETRIC_KEY"),
328
+ key_class: ("SYMMETRIC_KEY" | "ASYMMETRIC_KEY_PAIR" | "PRIVATE_KEY" | "PUBLIC_KEY"),
329
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "RSA_2048" | "RSA_3072" | "RSA_4096"),
330
+ key_modes_of_use: {
331
+ encrypt: bool?,
332
+ decrypt: bool?,
333
+ wrap: bool?,
334
+ unwrap: bool?,
335
+ generate: bool?,
336
+ sign: bool?,
337
+ verify: bool?,
338
+ derive_key: bool?,
339
+ no_restrictions: bool?
340
+ }
341
+ },
342
+ exportable: bool,
343
+ wrapped_key_cryptogram: ::String,
344
+ import_token: ::String,
345
+ wrapping_spec: ("RSA_OAEP_SHA_256" | "RSA_OAEP_SHA_512")?
346
+ }?
347
+ },
348
+ ?key_check_value_algorithm: ("CMAC" | "ANSI_X9_24"),
349
+ ?enabled: bool,
350
+ ?tags: Array[
351
+ {
352
+ key: ::String,
353
+ value: ::String?
354
+ },
355
+ ]
356
+ ) -> _ImportKeyResponseSuccess
357
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportKeyResponseSuccess
358
+
359
+ interface _ListAliasesResponseSuccess
360
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAliasesOutput]
361
+ def aliases: () -> ::Array[Types::Alias]
362
+ def next_token: () -> ::String
363
+ end
364
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#list_aliases-instance_method
365
+ def list_aliases: (
366
+ ?next_token: ::String,
367
+ ?max_results: ::Integer
368
+ ) -> _ListAliasesResponseSuccess
369
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAliasesResponseSuccess
370
+
371
+ interface _ListKeysResponseSuccess
372
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeysOutput]
373
+ def keys: () -> ::Array[Types::KeySummary]
374
+ def next_token: () -> ::String
375
+ end
376
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#list_keys-instance_method
377
+ def list_keys: (
378
+ ?key_state: ("CREATE_IN_PROGRESS" | "CREATE_COMPLETE" | "DELETE_PENDING" | "DELETE_COMPLETE"),
379
+ ?next_token: ::String,
380
+ ?max_results: ::Integer
381
+ ) -> _ListKeysResponseSuccess
382
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeysResponseSuccess
383
+
384
+ interface _ListTagsForResourceResponseSuccess
385
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceOutput]
386
+ def tags: () -> ::Array[Types::Tag]
387
+ def next_token: () -> ::String
388
+ end
389
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#list_tags_for_resource-instance_method
390
+ def list_tags_for_resource: (
391
+ resource_arn: ::String,
392
+ ?next_token: ::String,
393
+ ?max_results: ::Integer
394
+ ) -> _ListTagsForResourceResponseSuccess
395
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
396
+
397
+ interface _RestoreKeyResponseSuccess
398
+ include ::Seahorse::Client::_ResponseSuccess[Types::RestoreKeyOutput]
399
+ def key: () -> Types::Key
400
+ end
401
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#restore_key-instance_method
402
+ def restore_key: (
403
+ key_identifier: ::String
404
+ ) -> _RestoreKeyResponseSuccess
405
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreKeyResponseSuccess
406
+
407
+ interface _StartKeyUsageResponseSuccess
408
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartKeyUsageOutput]
409
+ def key: () -> Types::Key
410
+ end
411
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#start_key_usage-instance_method
412
+ def start_key_usage: (
413
+ key_identifier: ::String
414
+ ) -> _StartKeyUsageResponseSuccess
415
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartKeyUsageResponseSuccess
416
+
417
+ interface _StopKeyUsageResponseSuccess
418
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopKeyUsageOutput]
419
+ def key: () -> Types::Key
420
+ end
421
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#stop_key_usage-instance_method
422
+ def stop_key_usage: (
423
+ key_identifier: ::String
424
+ ) -> _StopKeyUsageResponseSuccess
425
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopKeyUsageResponseSuccess
426
+
427
+ interface _TagResourceResponseSuccess
428
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceOutput]
429
+ end
430
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#tag_resource-instance_method
431
+ def tag_resource: (
432
+ resource_arn: ::String,
433
+ tags: Array[
434
+ {
435
+ key: ::String,
436
+ value: ::String?
437
+ },
438
+ ]
439
+ ) -> _TagResourceResponseSuccess
440
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
441
+
442
+ interface _UntagResourceResponseSuccess
443
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceOutput]
444
+ end
445
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#untag_resource-instance_method
446
+ def untag_resource: (
447
+ resource_arn: ::String,
448
+ tag_keys: Array[::String]
449
+ ) -> _UntagResourceResponseSuccess
450
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
451
+
452
+ interface _UpdateAliasResponseSuccess
453
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateAliasOutput]
454
+ def alias: () -> Types::Alias
455
+ end
456
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#update_alias-instance_method
457
+ def update_alias: (
458
+ alias_name: ::String,
459
+ ?key_arn: ::String
460
+ ) -> _UpdateAliasResponseSuccess
461
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAliasResponseSuccess
462
+ end
463
+ end
464
+ end
465
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,40 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module PaymentCryptography
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class InternalServerException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
24
+ def resource_id: () -> ::String
25
+ end
26
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ServiceUnavailableException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ class ThrottlingException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
35
+ class ValidationException < ::Aws::Errors::ServiceError
36
+ def message: () -> ::String
37
+ end
38
+ end
39
+ end
40
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,80 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module PaymentCryptography
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?simple_json: bool,
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> void
73
+ | (?Hash[Symbol, untyped]) -> void
74
+
75
+ def client: () -> Client
76
+
77
+
78
+ end
79
+ end
80
+ end