aws-sdk-paymentcryptography 1.52.0 → 1.54.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.
@@ -98,6 +98,46 @@ module Aws::PaymentCryptography
98
98
  include Aws::Structure
99
99
  end
100
100
 
101
+ # @!attribute [rw] action
102
+ # The protected operation to associate with the MPA team. Currently,
103
+ # the only supported value is `IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE`.
104
+ # @return [String]
105
+ #
106
+ # @!attribute [rw] mpa_team_arn
107
+ # The ARN of the MPA team to associate with the protected operation.
108
+ # @return [String]
109
+ #
110
+ # @!attribute [rw] requester_comment
111
+ # The comment from the requester explaining the reason for the
112
+ # association.
113
+ #
114
+ # Don't include personal, confidential or sensitive information in
115
+ # this field. This field may be displayed in plaintext in CloudTrail
116
+ # logs and other output.
117
+ # @return [String]
118
+ #
119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/AssociateMpaTeamInput AWS API Documentation
120
+ #
121
+ class AssociateMpaTeamInput < Struct.new(
122
+ :action,
123
+ :mpa_team_arn,
124
+ :requester_comment)
125
+ SENSITIVE = [:requester_comment]
126
+ include Aws::Structure
127
+ end
128
+
129
+ # @!attribute [rw] mpa_team_association
130
+ # The details of the MPA team association.
131
+ # @return [Types::MpaTeamAssociation]
132
+ #
133
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/AssociateMpaTeamOutput AWS API Documentation
134
+ #
135
+ class AssociateMpaTeamOutput < Struct.new(
136
+ :mpa_team_association)
137
+ SENSITIVE = []
138
+ include Aws::Structure
139
+ end
140
+
101
141
  # The metadata used to create the certificate signing request.
102
142
  #
103
143
  # @!attribute [rw] common_name
@@ -345,6 +385,23 @@ module Aws::PaymentCryptography
345
385
  include Aws::Structure
346
386
  end
347
387
 
388
+ # @!attribute [rw] resource_arn
389
+ # The `KeyARN` of the key whose resource-based policy you want to
390
+ # delete.
391
+ # @return [String]
392
+ #
393
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/DeleteResourcePolicyInput AWS API Documentation
394
+ #
395
+ class DeleteResourcePolicyInput < Struct.new(
396
+ :resource_arn)
397
+ SENSITIVE = []
398
+ include Aws::Structure
399
+ end
400
+
401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/DeleteResourcePolicyOutput AWS API Documentation
402
+ #
403
+ class DeleteResourcePolicyOutput < Aws::EmptyStructure; end
404
+
348
405
  # The shared information used when deriving a key using ECDH.
349
406
  #
350
407
  # @note DiffieHellmanDerivationData is a union - when making an API calls you must set exactly one of the members.
@@ -412,6 +469,42 @@ module Aws::PaymentCryptography
412
469
  include Aws::Structure
413
470
  end
414
471
 
472
+ # @!attribute [rw] action
473
+ # The protected operation to disassociate from the MPA team.
474
+ # Currently, the only supported value is
475
+ # `IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE`.
476
+ # @return [String]
477
+ #
478
+ # @!attribute [rw] requester_comment
479
+ # The comment from the requester explaining the reason for the
480
+ # disassociation.
481
+ #
482
+ # Don't include personal, confidential or sensitive information in
483
+ # this field. This field may be displayed in plaintext in CloudTrail
484
+ # logs and other output.
485
+ # @return [String]
486
+ #
487
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/DisassociateMpaTeamInput AWS API Documentation
488
+ #
489
+ class DisassociateMpaTeamInput < Struct.new(
490
+ :action,
491
+ :requester_comment)
492
+ SENSITIVE = [:requester_comment]
493
+ include Aws::Structure
494
+ end
495
+
496
+ # @!attribute [rw] mpa_team_association
497
+ # The details of the MPA team association.
498
+ # @return [Types::MpaTeamAssociation]
499
+ #
500
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/DisassociateMpaTeamOutput AWS API Documentation
501
+ #
502
+ class DisassociateMpaTeamOutput < Struct.new(
503
+ :mpa_team_association)
504
+ SENSITIVE = []
505
+ include Aws::Structure
506
+ end
507
+
415
508
  # Input parameters for enabling default key replication regions for the
416
509
  # account.
417
510
  #
@@ -904,6 +997,32 @@ module Aws::PaymentCryptography
904
997
  include Aws::Structure
905
998
  end
906
999
 
1000
+ # @!attribute [rw] action
1001
+ # The protected operation whose MPA team association you want to
1002
+ # retrieve. Currently, the only supported value is
1003
+ # `IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE`.
1004
+ # @return [String]
1005
+ #
1006
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetMpaTeamAssociationInput AWS API Documentation
1007
+ #
1008
+ class GetMpaTeamAssociationInput < Struct.new(
1009
+ :action)
1010
+ SENSITIVE = []
1011
+ include Aws::Structure
1012
+ end
1013
+
1014
+ # @!attribute [rw] mpa_team_association
1015
+ # The details of the MPA team association.
1016
+ # @return [Types::MpaTeamAssociation]
1017
+ #
1018
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetMpaTeamAssociationOutput AWS API Documentation
1019
+ #
1020
+ class GetMpaTeamAssociationOutput < Struct.new(
1021
+ :mpa_team_association)
1022
+ SENSITIVE = []
1023
+ include Aws::Structure
1024
+ end
1025
+
907
1026
  # @!attribute [rw] key_material_type
908
1027
  # The key block format type (for example, TR-34 or TR-31) to use
909
1028
  # during key material export. Export token is only required for a
@@ -917,11 +1036,23 @@ module Aws::PaymentCryptography
917
1036
  # key block. `RSA_2048` is the only signing key algorithm allowed.
918
1037
  # @return [String]
919
1038
  #
1039
+ # @!attribute [rw] reuse_last_generated_token
1040
+ # Specifies whether to reuse the existing export token and signing key
1041
+ # certificate. If set to `true` and a valid export token exists for
1042
+ # the same key material type and signing key algorithm with at least 7
1043
+ # days of remaining validity, the existing token and signing key
1044
+ # certificate are returned. Otherwise, a new export token and signing
1045
+ # key certificate are generated. The default value is `false`, which
1046
+ # generates a new export token and signing key certificate on every
1047
+ # call.
1048
+ # @return [Boolean]
1049
+ #
920
1050
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetParametersForExportInput AWS API Documentation
921
1051
  #
922
1052
  class GetParametersForExportInput < Struct.new(
923
1053
  :key_material_type,
924
- :signing_key_algorithm)
1054
+ :signing_key_algorithm,
1055
+ :reuse_last_generated_token)
925
1056
  SENSITIVE = []
926
1057
  include Aws::Structure
927
1058
  end
@@ -985,11 +1116,23 @@ module Aws::PaymentCryptography
985
1116
  # import.
986
1117
  # @return [String]
987
1118
  #
1119
+ # @!attribute [rw] reuse_last_generated_token
1120
+ # Specifies whether to reuse the existing import token and wrapping
1121
+ # key certificate. If set to `true` and a valid import token exists
1122
+ # for the same key material type and wrapping key algorithm with at
1123
+ # least 7 days of remaining validity, the existing token and wrapping
1124
+ # key certificate are returned. Otherwise, a new import token and
1125
+ # wrapping key certificate are generated. The default value is
1126
+ # `false`, which generates a new import token and wrapping key
1127
+ # certificate on every call.
1128
+ # @return [Boolean]
1129
+ #
988
1130
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetParametersForImportInput AWS API Documentation
989
1131
  #
990
1132
  class GetParametersForImportInput < Struct.new(
991
1133
  :key_material_type,
992
- :wrapping_key_algorithm)
1134
+ :wrapping_key_algorithm,
1135
+ :reuse_last_generated_token)
993
1136
  SENSITIVE = []
994
1137
  include Aws::Structure
995
1138
  end
@@ -1049,7 +1192,10 @@ module Aws::PaymentCryptography
1049
1192
  # @!attribute [rw] key_certificate
1050
1193
  # The public key component of the asymmetric key pair in a certificate
1051
1194
  # PEM format (base64 encoded). It is signed by the root certificate
1052
- # authority (CA). The certificate expires in 90 days.
1195
+ # authority (CA). The certificate is valid for 90 days from the time
1196
+ # it is issued. The service returns a cached certificate if one exists
1197
+ # with at least 30 days of remaining validity. Otherwise, a new 90-day
1198
+ # certificate is issued.
1053
1199
  # @return [String]
1054
1200
  #
1055
1201
  # @!attribute [rw] key_certificate_chain
@@ -1067,6 +1213,36 @@ module Aws::PaymentCryptography
1067
1213
  include Aws::Structure
1068
1214
  end
1069
1215
 
1216
+ # @!attribute [rw] resource_arn
1217
+ # The `KeyARN` of the key whose resource-based policy you want to
1218
+ # retrieve.
1219
+ # @return [String]
1220
+ #
1221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetResourcePolicyInput AWS API Documentation
1222
+ #
1223
+ class GetResourcePolicyInput < Struct.new(
1224
+ :resource_arn)
1225
+ SENSITIVE = []
1226
+ include Aws::Structure
1227
+ end
1228
+
1229
+ # @!attribute [rw] resource_arn
1230
+ # The `KeyARN` of the key.
1231
+ # @return [String]
1232
+ #
1233
+ # @!attribute [rw] policy
1234
+ # The resource-based policy attached to the key, in JSON format.
1235
+ # @return [String]
1236
+ #
1237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetResourcePolicyOutput AWS API Documentation
1238
+ #
1239
+ class GetResourcePolicyOutput < Struct.new(
1240
+ :resource_arn,
1241
+ :policy)
1242
+ SENSITIVE = []
1243
+ include Aws::Structure
1244
+ end
1245
+
1070
1246
  # Parameter information for key material import using AS2805 key
1071
1247
  # cryptogram format.
1072
1248
  #
@@ -1273,6 +1449,14 @@ module Aws::PaymentCryptography
1273
1449
  # added to or removed from a key's replication configuration.
1274
1450
  # @return [Array<String>]
1275
1451
  #
1452
+ # @!attribute [rw] requester_comment
1453
+ # The comment from the requester explaining the reason for the import.
1454
+ #
1455
+ # Don't include personal, confidential or sensitive information in
1456
+ # this field. This field may be displayed in plaintext in CloudTrail
1457
+ # logs and other output.
1458
+ # @return [String]
1459
+ #
1276
1460
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/ImportKeyInput AWS API Documentation
1277
1461
  #
1278
1462
  class ImportKeyInput < Struct.new(
@@ -1280,8 +1464,9 @@ module Aws::PaymentCryptography
1280
1464
  :key_check_value_algorithm,
1281
1465
  :enabled,
1282
1466
  :tags,
1283
- :replication_regions)
1284
- SENSITIVE = []
1467
+ :replication_regions,
1468
+ :requester_comment)
1469
+ SENSITIVE = [:requester_comment]
1285
1470
  include Aws::Structure
1286
1471
  end
1287
1472
 
@@ -1594,6 +1779,10 @@ module Aws::PaymentCryptography
1594
1779
  # [1]: https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-multi-region-replication.html
1595
1780
  # @return [Boolean]
1596
1781
  #
1782
+ # @!attribute [rw] mpa_status
1783
+ # The Multi-Party Approval (MPA) status for the key, if applicable.
1784
+ # @return [Types::MpaStatus]
1785
+ #
1597
1786
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/Key AWS API Documentation
1598
1787
  #
1599
1788
  class Key < Struct.new(
@@ -1614,7 +1803,8 @@ module Aws::PaymentCryptography
1614
1803
  :multi_region_key_type,
1615
1804
  :primary_region,
1616
1805
  :replication_status,
1617
- :using_default_replication_regions)
1806
+ :using_default_replication_regions,
1807
+ :mpa_status)
1618
1808
  SENSITIVE = []
1619
1809
  include Aws::Structure
1620
1810
  end
@@ -2007,6 +2197,116 @@ module Aws::PaymentCryptography
2007
2197
  include Aws::Structure
2008
2198
  end
2009
2199
 
2200
+ # The status of an MPA session.
2201
+ #
2202
+ # @!attribute [rw] mpa_session_arn
2203
+ # The ARN of the MPA session.
2204
+ # @return [String]
2205
+ #
2206
+ # @!attribute [rw] status
2207
+ # The current status of the MPA session.
2208
+ # @return [String]
2209
+ #
2210
+ # @!attribute [rw] initiation_date
2211
+ # The date and time when the MPA session was initiated.
2212
+ # @return [Time]
2213
+ #
2214
+ # @!attribute [rw] status_message
2215
+ # The message providing additional information about the MPA session
2216
+ # status.
2217
+ # @return [String]
2218
+ #
2219
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/MpaStatus AWS API Documentation
2220
+ #
2221
+ class MpaStatus < Struct.new(
2222
+ :mpa_session_arn,
2223
+ :status,
2224
+ :initiation_date,
2225
+ :status_message)
2226
+ SENSITIVE = []
2227
+ include Aws::Structure
2228
+ end
2229
+
2230
+ # The details of an MPA team association with a protected operation.
2231
+ #
2232
+ # @!attribute [rw] action
2233
+ # The protected operation associated with the MPA team.
2234
+ # @return [String]
2235
+ #
2236
+ # @!attribute [rw] mpa_team_arn
2237
+ # The ARN of the MPA team.
2238
+ # @return [String]
2239
+ #
2240
+ # @!attribute [rw] association_state
2241
+ # The state of the MPA team association.
2242
+ # @return [String]
2243
+ #
2244
+ # @!attribute [rw] mpa_status
2245
+ # The MPA session status for the association, if applicable.
2246
+ # @return [Types::MpaStatus]
2247
+ #
2248
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/MpaTeamAssociation AWS API Documentation
2249
+ #
2250
+ class MpaTeamAssociation < Struct.new(
2251
+ :action,
2252
+ :mpa_team_arn,
2253
+ :association_state,
2254
+ :mpa_status)
2255
+ SENSITIVE = []
2256
+ include Aws::Structure
2257
+ end
2258
+
2259
+ # The resource-based policy would grant public access to the key.
2260
+ #
2261
+ # Modify the policy to restrict access to specific principals and
2262
+ # resubmit the request.
2263
+ #
2264
+ # @!attribute [rw] message
2265
+ # @return [String]
2266
+ #
2267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/PublicPolicyException AWS API Documentation
2268
+ #
2269
+ class PublicPolicyException < Struct.new(
2270
+ :message)
2271
+ SENSITIVE = []
2272
+ include Aws::Structure
2273
+ end
2274
+
2275
+ # @!attribute [rw] resource_arn
2276
+ # The `KeyARN` of the key to attach the resource-based policy to.
2277
+ # @return [String]
2278
+ #
2279
+ # @!attribute [rw] policy
2280
+ # The resource-based policy to attach to the key, in JSON format.
2281
+ # @return [String]
2282
+ #
2283
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/PutResourcePolicyInput AWS API Documentation
2284
+ #
2285
+ class PutResourcePolicyInput < Struct.new(
2286
+ :resource_arn,
2287
+ :policy)
2288
+ SENSITIVE = []
2289
+ include Aws::Structure
2290
+ end
2291
+
2292
+ # @!attribute [rw] resource_arn
2293
+ # The `KeyARN` of the key that the resource-based policy was attached
2294
+ # to.
2295
+ # @return [String]
2296
+ #
2297
+ # @!attribute [rw] policy
2298
+ # The resource-based policy that was attached to the key.
2299
+ # @return [String]
2300
+ #
2301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/PutResourcePolicyOutput AWS API Documentation
2302
+ #
2303
+ class PutResourcePolicyOutput < Struct.new(
2304
+ :resource_arn,
2305
+ :policy)
2306
+ SENSITIVE = []
2307
+ include Aws::Structure
2308
+ end
2309
+
2010
2310
  # Input parameters for removing replication regions from a specific key.
2011
2311
  #
2012
2312
  # @!attribute [rw] key_identifier
@@ -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.54.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -90,6 +90,18 @@ module Aws
90
90
  ) -> _AddKeyReplicationRegionsResponseSuccess
91
91
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AddKeyReplicationRegionsResponseSuccess
92
92
 
93
+ interface _AssociateMpaTeamResponseSuccess
94
+ include ::Seahorse::Client::_ResponseSuccess[Types::AssociateMpaTeamOutput]
95
+ def mpa_team_association: () -> Types::MpaTeamAssociation
96
+ end
97
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#associate_mpa_team-instance_method
98
+ def associate_mpa_team: (
99
+ action: ("IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE"),
100
+ mpa_team_arn: ::String,
101
+ ?requester_comment: ::String
102
+ ) -> _AssociateMpaTeamResponseSuccess
103
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateMpaTeamResponseSuccess
104
+
93
105
  interface _CreateAliasResponseSuccess
94
106
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateAliasOutput]
95
107
  def alias: () -> Types::Alias
@@ -157,6 +169,15 @@ module Aws
157
169
  ) -> _DeleteKeyResponseSuccess
158
170
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteKeyResponseSuccess
159
171
 
172
+ interface _DeleteResourcePolicyResponseSuccess
173
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteResourcePolicyOutput]
174
+ end
175
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#delete_resource_policy-instance_method
176
+ def delete_resource_policy: (
177
+ resource_arn: ::String
178
+ ) -> _DeleteResourcePolicyResponseSuccess
179
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteResourcePolicyResponseSuccess
180
+
160
181
  interface _DisableDefaultKeyReplicationRegionsResponseSuccess
161
182
  include ::Seahorse::Client::_ResponseSuccess[Types::DisableDefaultKeyReplicationRegionsOutput]
162
183
  def enabled_replication_regions: () -> ::Array[::String]
@@ -167,6 +188,17 @@ module Aws
167
188
  ) -> _DisableDefaultKeyReplicationRegionsResponseSuccess
168
189
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisableDefaultKeyReplicationRegionsResponseSuccess
169
190
 
191
+ interface _DisassociateMpaTeamResponseSuccess
192
+ include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateMpaTeamOutput]
193
+ def mpa_team_association: () -> Types::MpaTeamAssociation
194
+ end
195
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#disassociate_mpa_team-instance_method
196
+ def disassociate_mpa_team: (
197
+ action: ("IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE"),
198
+ ?requester_comment: ::String
199
+ ) -> _DisassociateMpaTeamResponseSuccess
200
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisassociateMpaTeamResponseSuccess
201
+
170
202
  interface _EnableDefaultKeyReplicationRegionsResponseSuccess
171
203
  include ::Seahorse::Client::_ResponseSuccess[Types::EnableDefaultKeyReplicationRegionsOutput]
172
204
  def enabled_replication_regions: () -> ::Array[::String]
@@ -324,6 +356,16 @@ module Aws
324
356
  ) -> _GetKeyResponseSuccess
325
357
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyResponseSuccess
326
358
 
359
+ interface _GetMpaTeamAssociationResponseSuccess
360
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMpaTeamAssociationOutput]
361
+ def mpa_team_association: () -> Types::MpaTeamAssociation
362
+ end
363
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_mpa_team_association-instance_method
364
+ def get_mpa_team_association: (
365
+ action: ("IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE")
366
+ ) -> _GetMpaTeamAssociationResponseSuccess
367
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMpaTeamAssociationResponseSuccess
368
+
327
369
  interface _GetParametersForExportResponseSuccess
328
370
  include ::Seahorse::Client::_ResponseSuccess[Types::GetParametersForExportOutput]
329
371
  def signing_key_certificate: () -> ::String
@@ -335,7 +377,8 @@ module Aws
335
377
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_parameters_for_export-instance_method
336
378
  def get_parameters_for_export: (
337
379
  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")
380
+ 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"),
381
+ ?reuse_last_generated_token: bool
339
382
  ) -> _GetParametersForExportResponseSuccess
340
383
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForExportResponseSuccess
341
384
 
@@ -350,7 +393,8 @@ module Aws
350
393
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_parameters_for_import-instance_method
351
394
  def get_parameters_for_import: (
352
395
  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")
396
+ 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"),
397
+ ?reuse_last_generated_token: bool
354
398
  ) -> _GetParametersForImportResponseSuccess
355
399
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForImportResponseSuccess
356
400
 
@@ -365,6 +409,17 @@ module Aws
365
409
  ) -> _GetPublicKeyCertificateResponseSuccess
366
410
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicKeyCertificateResponseSuccess
367
411
 
412
+ interface _GetResourcePolicyResponseSuccess
413
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyOutput]
414
+ def resource_arn: () -> ::String
415
+ def policy: () -> ::String
416
+ end
417
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#get_resource_policy-instance_method
418
+ def get_resource_policy: (
419
+ resource_arn: ::String
420
+ ) -> _GetResourcePolicyResponseSuccess
421
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
422
+
368
423
  interface _ImportKeyResponseSuccess
369
424
  include ::Seahorse::Client::_ResponseSuccess[Types::ImportKeyOutput]
370
425
  def key: () -> Types::Key
@@ -486,7 +541,8 @@ module Aws
486
541
  value: ::String
487
542
  },
488
543
  ],
489
- ?replication_regions: Array[::String]
544
+ ?replication_regions: Array[::String],
545
+ ?requester_comment: ::String
490
546
  ) -> _ImportKeyResponseSuccess
491
547
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportKeyResponseSuccess
492
548
 
@@ -529,6 +585,18 @@ module Aws
529
585
  ) -> _ListTagsForResourceResponseSuccess
530
586
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
531
587
 
588
+ interface _PutResourcePolicyResponseSuccess
589
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyOutput]
590
+ def resource_arn: () -> ::String
591
+ def policy: () -> ::String
592
+ end
593
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptography/Client.html#put_resource_policy-instance_method
594
+ def put_resource_policy: (
595
+ resource_arn: ::String,
596
+ policy: ::String
597
+ ) -> _PutResourcePolicyResponseSuccess
598
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
599
+
532
600
  interface _RemoveKeyReplicationRegionsResponseSuccess
533
601
  include ::Seahorse::Client::_ResponseSuccess[Types::RemoveKeyReplicationRegionsOutput]
534
602
  def key: () -> Types::Key
data/sig/errors.rbs CHANGED
@@ -20,6 +20,9 @@ module Aws
20
20
  class InternalServerException < ::Aws::Errors::ServiceError
21
21
  def message: () -> ::String
22
22
  end
23
+ class PublicPolicyException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
23
26
  class ResourceNotFoundException < ::Aws::Errors::ServiceError
24
27
  def resource_id: () -> ::String
25
28
  end