Skip to content

Commit 6e51152

Browse files
author
awstools
committed
feat(client-payment-cryptography): AWS Payment Cryptography Service now supports Multi-Region key replication. Customers can choose to automatically distribute keys across AWS Regions.
1 parent 0838059 commit 6e51152

32 files changed

+2501
-645
lines changed

clients/client-payment-cryptography/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ see LICENSE for more information.
203203

204204
## Client Commands (Operations List)
205205

206+
<details>
207+
<summary>
208+
AddKeyReplicationRegions
209+
</summary>
210+
211+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/AddKeyReplicationRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/AddKeyReplicationRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/AddKeyReplicationRegionsCommandOutput/)
212+
213+
</details>
206214
<details>
207215
<summary>
208216
CreateAlias
@@ -234,6 +242,22 @@ DeleteKey
234242

235243
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/DeleteKeyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/DeleteKeyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/DeleteKeyCommandOutput/)
236244

245+
</details>
246+
<details>
247+
<summary>
248+
DisableDefaultKeyReplicationRegions
249+
</summary>
250+
251+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/DisableDefaultKeyReplicationRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/DisableDefaultKeyReplicationRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/DisableDefaultKeyReplicationRegionsCommandOutput/)
252+
253+
</details>
254+
<details>
255+
<summary>
256+
EnableDefaultKeyReplicationRegions
257+
</summary>
258+
259+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/EnableDefaultKeyReplicationRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/EnableDefaultKeyReplicationRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/EnableDefaultKeyReplicationRegionsCommandOutput/)
260+
237261
</details>
238262
<details>
239263
<summary>
@@ -250,6 +274,14 @@ GetAlias
250274

251275
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/GetAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/GetAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/GetAliasCommandOutput/)
252276

277+
</details>
278+
<details>
279+
<summary>
280+
GetDefaultKeyReplicationRegions
281+
</summary>
282+
283+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/GetDefaultKeyReplicationRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/GetDefaultKeyReplicationRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/GetDefaultKeyReplicationRegionsCommandOutput/)
284+
253285
</details>
254286
<details>
255287
<summary>
@@ -314,6 +346,14 @@ ListTagsForResource
314346

315347
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/ListTagsForResourceCommandOutput/)
316348

349+
</details>
350+
<details>
351+
<summary>
352+
RemoveKeyReplicationRegions
353+
</summary>
354+
355+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography/command/RemoveKeyReplicationRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/RemoveKeyReplicationRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography/Interface/RemoveKeyReplicationRegionsCommandOutput/)
356+
317357
</details>
318358
<details>
319359
<summary>

clients/client-payment-cryptography/src/PaymentCryptography.ts

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,32 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5+
import {
6+
AddKeyReplicationRegionsCommand,
7+
AddKeyReplicationRegionsCommandInput,
8+
AddKeyReplicationRegionsCommandOutput,
9+
} from "./commands/AddKeyReplicationRegionsCommand";
510
import { CreateAliasCommand, CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
611
import { CreateKeyCommand, CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
712
import { DeleteAliasCommand, DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
813
import { DeleteKeyCommand, DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
14+
import {
15+
DisableDefaultKeyReplicationRegionsCommand,
16+
DisableDefaultKeyReplicationRegionsCommandInput,
17+
DisableDefaultKeyReplicationRegionsCommandOutput,
18+
} from "./commands/DisableDefaultKeyReplicationRegionsCommand";
19+
import {
20+
EnableDefaultKeyReplicationRegionsCommand,
21+
EnableDefaultKeyReplicationRegionsCommandInput,
22+
EnableDefaultKeyReplicationRegionsCommandOutput,
23+
} from "./commands/EnableDefaultKeyReplicationRegionsCommand";
924
import { ExportKeyCommand, ExportKeyCommandInput, ExportKeyCommandOutput } from "./commands/ExportKeyCommand";
1025
import { GetAliasCommand, GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
26+
import {
27+
GetDefaultKeyReplicationRegionsCommand,
28+
GetDefaultKeyReplicationRegionsCommandInput,
29+
GetDefaultKeyReplicationRegionsCommandOutput,
30+
} from "./commands/GetDefaultKeyReplicationRegionsCommand";
1131
import { GetKeyCommand, GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
1232
import {
1333
GetParametersForExportCommand,
@@ -32,6 +52,11 @@ import {
3252
ListTagsForResourceCommandInput,
3353
ListTagsForResourceCommandOutput,
3454
} from "./commands/ListTagsForResourceCommand";
55+
import {
56+
RemoveKeyReplicationRegionsCommand,
57+
RemoveKeyReplicationRegionsCommandInput,
58+
RemoveKeyReplicationRegionsCommandOutput,
59+
} from "./commands/RemoveKeyReplicationRegionsCommand";
3560
import { RestoreKeyCommand, RestoreKeyCommandInput, RestoreKeyCommandOutput } from "./commands/RestoreKeyCommand";
3661
import {
3762
StartKeyUsageCommand,
@@ -53,12 +78,16 @@ import { UpdateAliasCommand, UpdateAliasCommandInput, UpdateAliasCommandOutput }
5378
import { PaymentCryptographyClient, PaymentCryptographyClientConfig } from "./PaymentCryptographyClient";
5479

5580
const commands = {
81+
AddKeyReplicationRegionsCommand,
5682
CreateAliasCommand,
5783
CreateKeyCommand,
5884
DeleteAliasCommand,
5985
DeleteKeyCommand,
86+
DisableDefaultKeyReplicationRegionsCommand,
87+
EnableDefaultKeyReplicationRegionsCommand,
6088
ExportKeyCommand,
6189
GetAliasCommand,
90+
GetDefaultKeyReplicationRegionsCommand,
6291
GetKeyCommand,
6392
GetParametersForExportCommand,
6493
GetParametersForImportCommand,
@@ -67,6 +96,7 @@ const commands = {
6796
ListAliasesCommand,
6897
ListKeysCommand,
6998
ListTagsForResourceCommand,
99+
RemoveKeyReplicationRegionsCommand,
70100
RestoreKeyCommand,
71101
StartKeyUsageCommand,
72102
StopKeyUsageCommand,
@@ -76,6 +106,23 @@ const commands = {
76106
};
77107

78108
export interface PaymentCryptography {
109+
/**
110+
* @see {@link AddKeyReplicationRegionsCommand}
111+
*/
112+
addKeyReplicationRegions(
113+
args: AddKeyReplicationRegionsCommandInput,
114+
options?: __HttpHandlerOptions
115+
): Promise<AddKeyReplicationRegionsCommandOutput>;
116+
addKeyReplicationRegions(
117+
args: AddKeyReplicationRegionsCommandInput,
118+
cb: (err: any, data?: AddKeyReplicationRegionsCommandOutput) => void
119+
): void;
120+
addKeyReplicationRegions(
121+
args: AddKeyReplicationRegionsCommandInput,
122+
options: __HttpHandlerOptions,
123+
cb: (err: any, data?: AddKeyReplicationRegionsCommandOutput) => void
124+
): void;
125+
79126
/**
80127
* @see {@link CreateAliasCommand}
81128
*/
@@ -120,6 +167,40 @@ export interface PaymentCryptography {
120167
cb: (err: any, data?: DeleteKeyCommandOutput) => void
121168
): void;
122169

170+
/**
171+
* @see {@link DisableDefaultKeyReplicationRegionsCommand}
172+
*/
173+
disableDefaultKeyReplicationRegions(
174+
args: DisableDefaultKeyReplicationRegionsCommandInput,
175+
options?: __HttpHandlerOptions
176+
): Promise<DisableDefaultKeyReplicationRegionsCommandOutput>;
177+
disableDefaultKeyReplicationRegions(
178+
args: DisableDefaultKeyReplicationRegionsCommandInput,
179+
cb: (err: any, data?: DisableDefaultKeyReplicationRegionsCommandOutput) => void
180+
): void;
181+
disableDefaultKeyReplicationRegions(
182+
args: DisableDefaultKeyReplicationRegionsCommandInput,
183+
options: __HttpHandlerOptions,
184+
cb: (err: any, data?: DisableDefaultKeyReplicationRegionsCommandOutput) => void
185+
): void;
186+
187+
/**
188+
* @see {@link EnableDefaultKeyReplicationRegionsCommand}
189+
*/
190+
enableDefaultKeyReplicationRegions(
191+
args: EnableDefaultKeyReplicationRegionsCommandInput,
192+
options?: __HttpHandlerOptions
193+
): Promise<EnableDefaultKeyReplicationRegionsCommandOutput>;
194+
enableDefaultKeyReplicationRegions(
195+
args: EnableDefaultKeyReplicationRegionsCommandInput,
196+
cb: (err: any, data?: EnableDefaultKeyReplicationRegionsCommandOutput) => void
197+
): void;
198+
enableDefaultKeyReplicationRegions(
199+
args: EnableDefaultKeyReplicationRegionsCommandInput,
200+
options: __HttpHandlerOptions,
201+
cb: (err: any, data?: EnableDefaultKeyReplicationRegionsCommandOutput) => void
202+
): void;
203+
123204
/**
124205
* @see {@link ExportKeyCommand}
125206
*/
@@ -142,6 +223,24 @@ export interface PaymentCryptography {
142223
cb: (err: any, data?: GetAliasCommandOutput) => void
143224
): void;
144225

226+
/**
227+
* @see {@link GetDefaultKeyReplicationRegionsCommand}
228+
*/
229+
getDefaultKeyReplicationRegions(): Promise<GetDefaultKeyReplicationRegionsCommandOutput>;
230+
getDefaultKeyReplicationRegions(
231+
args: GetDefaultKeyReplicationRegionsCommandInput,
232+
options?: __HttpHandlerOptions
233+
): Promise<GetDefaultKeyReplicationRegionsCommandOutput>;
234+
getDefaultKeyReplicationRegions(
235+
args: GetDefaultKeyReplicationRegionsCommandInput,
236+
cb: (err: any, data?: GetDefaultKeyReplicationRegionsCommandOutput) => void
237+
): void;
238+
getDefaultKeyReplicationRegions(
239+
args: GetDefaultKeyReplicationRegionsCommandInput,
240+
options: __HttpHandlerOptions,
241+
cb: (err: any, data?: GetDefaultKeyReplicationRegionsCommandOutput) => void
242+
): void;
243+
145244
/**
146245
* @see {@link GetKeyCommand}
147246
*/
@@ -256,6 +355,23 @@ export interface PaymentCryptography {
256355
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
257356
): void;
258357

358+
/**
359+
* @see {@link RemoveKeyReplicationRegionsCommand}
360+
*/
361+
removeKeyReplicationRegions(
362+
args: RemoveKeyReplicationRegionsCommandInput,
363+
options?: __HttpHandlerOptions
364+
): Promise<RemoveKeyReplicationRegionsCommandOutput>;
365+
removeKeyReplicationRegions(
366+
args: RemoveKeyReplicationRegionsCommandInput,
367+
cb: (err: any, data?: RemoveKeyReplicationRegionsCommandOutput) => void
368+
): void;
369+
removeKeyReplicationRegions(
370+
args: RemoveKeyReplicationRegionsCommandInput,
371+
options: __HttpHandlerOptions,
372+
cb: (err: any, data?: RemoveKeyReplicationRegionsCommandOutput) => void
373+
): void;
374+
259375
/**
260376
* @see {@link RestoreKeyCommand}
261377
*/

clients/client-payment-cryptography/src/PaymentCryptographyClient.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,28 @@ import {
5353
HttpAuthSchemeResolvedConfig,
5454
resolveHttpAuthSchemeConfig,
5555
} from "./auth/httpAuthSchemeProvider";
56+
import {
57+
AddKeyReplicationRegionsCommandInput,
58+
AddKeyReplicationRegionsCommandOutput,
59+
} from "./commands/AddKeyReplicationRegionsCommand";
5660
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
5761
import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
5862
import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
5963
import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
64+
import {
65+
DisableDefaultKeyReplicationRegionsCommandInput,
66+
DisableDefaultKeyReplicationRegionsCommandOutput,
67+
} from "./commands/DisableDefaultKeyReplicationRegionsCommand";
68+
import {
69+
EnableDefaultKeyReplicationRegionsCommandInput,
70+
EnableDefaultKeyReplicationRegionsCommandOutput,
71+
} from "./commands/EnableDefaultKeyReplicationRegionsCommand";
6072
import { ExportKeyCommandInput, ExportKeyCommandOutput } from "./commands/ExportKeyCommand";
6173
import { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
74+
import {
75+
GetDefaultKeyReplicationRegionsCommandInput,
76+
GetDefaultKeyReplicationRegionsCommandOutput,
77+
} from "./commands/GetDefaultKeyReplicationRegionsCommand";
6278
import { GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
6379
import {
6480
GetParametersForExportCommandInput,
@@ -79,6 +95,10 @@ import {
7995
ListTagsForResourceCommandInput,
8096
ListTagsForResourceCommandOutput,
8197
} from "./commands/ListTagsForResourceCommand";
98+
import {
99+
RemoveKeyReplicationRegionsCommandInput,
100+
RemoveKeyReplicationRegionsCommandOutput,
101+
} from "./commands/RemoveKeyReplicationRegionsCommand";
82102
import { RestoreKeyCommandInput, RestoreKeyCommandOutput } from "./commands/RestoreKeyCommand";
83103
import { StartKeyUsageCommandInput, StartKeyUsageCommandOutput } from "./commands/StartKeyUsageCommand";
84104
import { StopKeyUsageCommandInput, StopKeyUsageCommandOutput } from "./commands/StopKeyUsageCommand";
@@ -100,12 +120,16 @@ export { __Client };
100120
* @public
101121
*/
102122
export type ServiceInputTypes =
123+
| AddKeyReplicationRegionsCommandInput
103124
| CreateAliasCommandInput
104125
| CreateKeyCommandInput
105126
| DeleteAliasCommandInput
106127
| DeleteKeyCommandInput
128+
| DisableDefaultKeyReplicationRegionsCommandInput
129+
| EnableDefaultKeyReplicationRegionsCommandInput
107130
| ExportKeyCommandInput
108131
| GetAliasCommandInput
132+
| GetDefaultKeyReplicationRegionsCommandInput
109133
| GetKeyCommandInput
110134
| GetParametersForExportCommandInput
111135
| GetParametersForImportCommandInput
@@ -114,6 +138,7 @@ export type ServiceInputTypes =
114138
| ListAliasesCommandInput
115139
| ListKeysCommandInput
116140
| ListTagsForResourceCommandInput
141+
| RemoveKeyReplicationRegionsCommandInput
117142
| RestoreKeyCommandInput
118143
| StartKeyUsageCommandInput
119144
| StopKeyUsageCommandInput
@@ -125,12 +150,16 @@ export type ServiceInputTypes =
125150
* @public
126151
*/
127152
export type ServiceOutputTypes =
153+
| AddKeyReplicationRegionsCommandOutput
128154
| CreateAliasCommandOutput
129155
| CreateKeyCommandOutput
130156
| DeleteAliasCommandOutput
131157
| DeleteKeyCommandOutput
158+
| DisableDefaultKeyReplicationRegionsCommandOutput
159+
| EnableDefaultKeyReplicationRegionsCommandOutput
132160
| ExportKeyCommandOutput
133161
| GetAliasCommandOutput
162+
| GetDefaultKeyReplicationRegionsCommandOutput
134163
| GetKeyCommandOutput
135164
| GetParametersForExportCommandOutput
136165
| GetParametersForImportCommandOutput
@@ -139,6 +168,7 @@ export type ServiceOutputTypes =
139168
| ListAliasesCommandOutput
140169
| ListKeysCommandOutput
141170
| ListTagsForResourceCommandOutput
171+
| RemoveKeyReplicationRegionsCommandOutput
142172
| RestoreKeyCommandOutput
143173
| StartKeyUsageCommandOutput
144174
| StopKeyUsageCommandOutput

0 commit comments

Comments
 (0)