aws-sdk-paymentcryptography 1.52.0 → 1.53.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf2e9e860f7a57d01637e32fdb56096b347af74193b89d96ca10e47007930058
4
- data.tar.gz: 6fc7d9e24ce508256e49a624565735e84c56012cbf81a7fb8405edf628f3be84
3
+ metadata.gz: d5cffaec408c39db3cd083fa499cf9c4489ed0023b5496a16a86cb5fc09496f5
4
+ data.tar.gz: '069eb1d2f169b434b4d8b2955000b0947f538b6e57fec13a61145342b57cd2d3'
5
5
  SHA512:
6
- metadata.gz: 31cf3bf9ae7dd0dc46edf583685c79512db5f14febc49cd29840de6b206e03f80123106f8bdafb0563c8673cfdad643452d04ea33c7ca1ee579c25ead7d7173e
7
- data.tar.gz: 31eb77d1f6b2a4b8923ac6e6741ef74c398bd1ab9345c3ee4505f405ee5453529f490855a5cffd8cd74a196dd5bcba5b235e8c19b66283260136e2e92aa37366
6
+ metadata.gz: 34a9a733b10090d27031b6dd20da6d96ea466d3c37caef078641bb64577b105dbc6939d04ac98c83d4ac437955bc3aa900385c2122776fc10ca6d94ba7b87814
7
+ data.tar.gz: 888e657a160acf85c545ee56ffe1d9dd0737cf4f3fbb9013377f93c54c0e0cda2a193b079e6848c86278bd8ed74967ca45a343f0c8f5dbbdfd162e55e1c1c45e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2026-04-03)
5
+ ------------------
6
+
7
+ * Feature - Adds optional support to retrieve previously generated import and export tokens to simplify import and export functions
8
+
4
9
  1.52.0 (2026-03-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.52.0
1
+ 1.53.0
@@ -1708,6 +1708,10 @@ module Aws::PaymentCryptography
1708
1708
  # export token expires in 30 days. You can use the same export token to
1709
1709
  # export multiple keys from your service account.
1710
1710
  #
1711
+ # To return a previously generated export token and signing key
1712
+ # certificate instead of generating new ones, set
1713
+ # `ReuseLastGeneratedToken` to `true`.
1714
+ #
1711
1715
  # **Cross-account use:** This operation can't be used across different
1712
1716
  # Amazon Web Services accounts.
1713
1717
  #
@@ -1733,6 +1737,16 @@ module Aws::PaymentCryptography
1733
1737
  # certificate signs the wrapped key under export within the TR-34 key
1734
1738
  # block. `RSA_2048` is the only signing key algorithm allowed.
1735
1739
  #
1740
+ # @option params [Boolean] :reuse_last_generated_token
1741
+ # Specifies whether to reuse the existing export token and signing key
1742
+ # certificate. If set to `true` and a valid export token exists for the
1743
+ # same key material type and signing key algorithm with at least 7 days
1744
+ # of remaining validity, the existing token and signing key certificate
1745
+ # are returned. Otherwise, a new export token and signing key
1746
+ # certificate are generated. The default value is `false`, which
1747
+ # generates a new export token and signing key certificate on every
1748
+ # call.
1749
+ #
1736
1750
  # @return [Types::GetParametersForExportOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1737
1751
  #
1738
1752
  # * {Types::GetParametersForExportOutput#signing_key_certificate #signing_key_certificate} => String
@@ -1746,6 +1760,7 @@ module Aws::PaymentCryptography
1746
1760
  # resp = client.get_parameters_for_export({
1747
1761
  # key_material_type: "TR34_KEY_BLOCK", # required, accepts TR34_KEY_BLOCK, TR31_KEY_BLOCK, ROOT_PUBLIC_KEY_CERTIFICATE, TRUSTED_PUBLIC_KEY_CERTIFICATE, KEY_CRYPTOGRAM
1748
1762
  # signing_key_algorithm: "TDES_2KEY", # required, accepts TDES_2KEY, TDES_3KEY, AES_128, AES_192, AES_256, HMAC_SHA256, HMAC_SHA384, HMAC_SHA512, HMAC_SHA224, RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521
1763
+ # reuse_last_generated_token: false,
1749
1764
  # })
1750
1765
  #
1751
1766
  # @example Response structure
@@ -1776,6 +1791,10 @@ module Aws::PaymentCryptography
1776
1791
  # You can use the same import token to import multiple keys into your
1777
1792
  # service account.
1778
1793
  #
1794
+ # To return a previously generated import token and wrapping key
1795
+ # certificate instead of generating new ones, set
1796
+ # `ReuseLastGeneratedToken` to `true`.
1797
+ #
1779
1798
  # **Cross-account use:** This operation can't be used across different
1780
1799
  # Amazon Web Services accounts.
1781
1800
  #
@@ -1807,6 +1826,16 @@ module Aws::PaymentCryptography
1807
1826
  # `RSA_4096` are the allowed algorithms for RSA WrappedKeyCryptogram
1808
1827
  # import.
1809
1828
  #
1829
+ # @option params [Boolean] :reuse_last_generated_token
1830
+ # Specifies whether to reuse the existing import token and wrapping key
1831
+ # certificate. If set to `true` and a valid import token exists for the
1832
+ # same key material type and wrapping key algorithm with at least 7 days
1833
+ # of remaining validity, the existing token and wrapping key certificate
1834
+ # are returned. Otherwise, a new import token and wrapping key
1835
+ # certificate are generated. The default value is `false`, which
1836
+ # generates a new import token and wrapping key certificate on every
1837
+ # call.
1838
+ #
1810
1839
  # @return [Types::GetParametersForImportOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1811
1840
  #
1812
1841
  # * {Types::GetParametersForImportOutput#wrapping_key_certificate #wrapping_key_certificate} => String
@@ -1820,6 +1849,7 @@ module Aws::PaymentCryptography
1820
1849
  # resp = client.get_parameters_for_import({
1821
1850
  # key_material_type: "TR34_KEY_BLOCK", # required, accepts TR34_KEY_BLOCK, TR31_KEY_BLOCK, ROOT_PUBLIC_KEY_CERTIFICATE, TRUSTED_PUBLIC_KEY_CERTIFICATE, KEY_CRYPTOGRAM
1822
1851
  # wrapping_key_algorithm: "TDES_2KEY", # required, accepts TDES_2KEY, TDES_3KEY, AES_128, AES_192, AES_256, HMAC_SHA256, HMAC_SHA384, HMAC_SHA512, HMAC_SHA224, RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521
1852
+ # reuse_last_generated_token: false,
1823
1853
  # })
1824
1854
  #
1825
1855
  # @example Response structure
@@ -3092,7 +3122,7 @@ module Aws::PaymentCryptography
3092
3122
  tracer: tracer
3093
3123
  )
3094
3124
  context[:gem_name] = 'aws-sdk-paymentcryptography'
3095
- context[:gem_version] = '1.52.0'
3125
+ context[:gem_version] = '1.53.0'
3096
3126
  Seahorse::Client::Request.new(handlers, context)
3097
3127
  end
3098
3128
 
@@ -330,6 +330,7 @@ module Aws::PaymentCryptography
330
330
 
331
331
  GetParametersForExportInput.add_member(:key_material_type, Shapes::ShapeRef.new(shape: KeyMaterialType, required: true, location_name: "KeyMaterialType"))
332
332
  GetParametersForExportInput.add_member(:signing_key_algorithm, Shapes::ShapeRef.new(shape: KeyAlgorithm, required: true, location_name: "SigningKeyAlgorithm"))
333
+ GetParametersForExportInput.add_member(:reuse_last_generated_token, Shapes::ShapeRef.new(shape: Boolean, location_name: "ReuseLastGeneratedToken"))
333
334
  GetParametersForExportInput.struct_class = Types::GetParametersForExportInput
334
335
 
335
336
  GetParametersForExportOutput.add_member(:signing_key_certificate, Shapes::ShapeRef.new(shape: CertificateType, required: true, location_name: "SigningKeyCertificate"))
@@ -341,6 +342,7 @@ module Aws::PaymentCryptography
341
342
 
342
343
  GetParametersForImportInput.add_member(:key_material_type, Shapes::ShapeRef.new(shape: KeyMaterialType, required: true, location_name: "KeyMaterialType"))
343
344
  GetParametersForImportInput.add_member(:wrapping_key_algorithm, Shapes::ShapeRef.new(shape: KeyAlgorithm, required: true, location_name: "WrappingKeyAlgorithm"))
345
+ GetParametersForImportInput.add_member(:reuse_last_generated_token, Shapes::ShapeRef.new(shape: Boolean, location_name: "ReuseLastGeneratedToken"))
344
346
  GetParametersForImportInput.struct_class = Types::GetParametersForImportInput
345
347
 
346
348
  GetParametersForImportOutput.add_member(:wrapping_key_certificate, Shapes::ShapeRef.new(shape: CertificateType, required: true, location_name: "WrappingKeyCertificate"))
@@ -917,11 +917,23 @@ module Aws::PaymentCryptography
917
917
  # key block. `RSA_2048` is the only signing key algorithm allowed.
918
918
  # @return [String]
919
919
  #
920
+ # @!attribute [rw] reuse_last_generated_token
921
+ # Specifies whether to reuse the existing export token and signing key
922
+ # certificate. If set to `true` and a valid export token exists for
923
+ # the same key material type and signing key algorithm with at least 7
924
+ # days of remaining validity, the existing token and signing key
925
+ # certificate are returned. Otherwise, a new export token and signing
926
+ # key certificate are generated. The default value is `false`, which
927
+ # generates a new export token and signing key certificate on every
928
+ # call.
929
+ # @return [Boolean]
930
+ #
920
931
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetParametersForExportInput AWS API Documentation
921
932
  #
922
933
  class GetParametersForExportInput < Struct.new(
923
934
  :key_material_type,
924
- :signing_key_algorithm)
935
+ :signing_key_algorithm,
936
+ :reuse_last_generated_token)
925
937
  SENSITIVE = []
926
938
  include Aws::Structure
927
939
  end
@@ -985,11 +997,23 @@ module Aws::PaymentCryptography
985
997
  # import.
986
998
  # @return [String]
987
999
  #
1000
+ # @!attribute [rw] reuse_last_generated_token
1001
+ # Specifies whether to reuse the existing import token and wrapping
1002
+ # key certificate. If set to `true` and a valid import token exists
1003
+ # for the same key material type and wrapping key algorithm with at
1004
+ # least 7 days of remaining validity, the existing token and wrapping
1005
+ # key certificate are returned. Otherwise, a new import token and
1006
+ # wrapping key certificate are generated. The default value is
1007
+ # `false`, which generates a new import token and wrapping key
1008
+ # certificate on every call.
1009
+ # @return [Boolean]
1010
+ #
988
1011
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetParametersForImportInput AWS API Documentation
989
1012
  #
990
1013
  class GetParametersForImportInput < Struct.new(
991
1014
  :key_material_type,
992
- :wrapping_key_algorithm)
1015
+ :wrapping_key_algorithm,
1016
+ :reuse_last_generated_token)
993
1017
  SENSITIVE = []
994
1018
  include Aws::Structure
995
1019
  end
@@ -1049,7 +1073,10 @@ module Aws::PaymentCryptography
1049
1073
  # @!attribute [rw] key_certificate
1050
1074
  # The public key component of the asymmetric key pair in a certificate
1051
1075
  # PEM format (base64 encoded). It is signed by the root certificate
1052
- # authority (CA). The certificate expires in 90 days.
1076
+ # authority (CA). The certificate is valid for 90 days from the time
1077
+ # it is issued. The service returns a cached certificate if one exists
1078
+ # with at least 30 days of remaining validity. Otherwise, a new 90-day
1079
+ # certificate is issued.
1053
1080
  # @return [String]
1054
1081
  #
1055
1082
  # @!attribute [rw] key_certificate_chain
@@ -55,7 +55,7 @@ module Aws::PaymentCryptography
55
55
  autoload :EndpointProvider, 'aws-sdk-paymentcryptography/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-paymentcryptography/endpoints'
57
57
 
58
- GEM_VERSION = '1.52.0'
58
+ GEM_VERSION = '1.53.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -335,7 +335,8 @@ module Aws
335
335
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_parameters_for_export-instance_method
336
336
  def get_parameters_for_export: (
337
337
  key_material_type: ("TR34_KEY_BLOCK" | "TR31_KEY_BLOCK" | "ROOT_PUBLIC_KEY_CERTIFICATE" | "TRUSTED_PUBLIC_KEY_CERTIFICATE" | "KEY_CRYPTOGRAM"),
338
- signing_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512" | "HMAC_SHA224" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521")
338
+ signing_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512" | "HMAC_SHA224" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521"),
339
+ ?reuse_last_generated_token: bool
339
340
  ) -> _GetParametersForExportResponseSuccess
340
341
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForExportResponseSuccess
341
342
 
@@ -350,7 +351,8 @@ module Aws
350
351
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_parameters_for_import-instance_method
351
352
  def get_parameters_for_import: (
352
353
  key_material_type: ("TR34_KEY_BLOCK" | "TR31_KEY_BLOCK" | "ROOT_PUBLIC_KEY_CERTIFICATE" | "TRUSTED_PUBLIC_KEY_CERTIFICATE" | "KEY_CRYPTOGRAM"),
353
- wrapping_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512" | "HMAC_SHA224" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521")
354
+ wrapping_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512" | "HMAC_SHA224" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521"),
355
+ ?reuse_last_generated_token: bool
354
356
  ) -> _GetParametersForImportResponseSuccess
355
357
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForImportResponseSuccess
356
358
 
data/sig/types.rbs CHANGED
@@ -255,6 +255,7 @@ module Aws::PaymentCryptography
255
255
  class GetParametersForExportInput
256
256
  attr_accessor key_material_type: ("TR34_KEY_BLOCK" | "TR31_KEY_BLOCK" | "ROOT_PUBLIC_KEY_CERTIFICATE" | "TRUSTED_PUBLIC_KEY_CERTIFICATE" | "KEY_CRYPTOGRAM")
257
257
  attr_accessor signing_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512" | "HMAC_SHA224" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521")
258
+ attr_accessor reuse_last_generated_token: bool
258
259
  SENSITIVE: []
259
260
  end
260
261
 
@@ -270,6 +271,7 @@ module Aws::PaymentCryptography
270
271
  class GetParametersForImportInput
271
272
  attr_accessor key_material_type: ("TR34_KEY_BLOCK" | "TR31_KEY_BLOCK" | "ROOT_PUBLIC_KEY_CERTIFICATE" | "TRUSTED_PUBLIC_KEY_CERTIFICATE" | "KEY_CRYPTOGRAM")
272
273
  attr_accessor wrapping_key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512" | "HMAC_SHA224" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521")
274
+ attr_accessor reuse_last_generated_token: bool
273
275
  SENSITIVE: []
274
276
  end
275
277
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-paymentcryptography
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.52.0
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services