@aws-sdk/client-payment-cryptography 3.349.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.
Files changed (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +369 -0
  3. package/dist-cjs/PaymentCryptography.js +51 -0
  4. package/dist-cjs/PaymentCryptographyClient.js +41 -0
  5. package/dist-cjs/commands/CreateAliasCommand.js +46 -0
  6. package/dist-cjs/commands/CreateKeyCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteAliasCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteKeyCommand.js +46 -0
  9. package/dist-cjs/commands/ExportKeyCommand.js +47 -0
  10. package/dist-cjs/commands/GetAliasCommand.js +46 -0
  11. package/dist-cjs/commands/GetKeyCommand.js +46 -0
  12. package/dist-cjs/commands/GetParametersForExportCommand.js +47 -0
  13. package/dist-cjs/commands/GetParametersForImportCommand.js +47 -0
  14. package/dist-cjs/commands/GetPublicKeyCertificateCommand.js +47 -0
  15. package/dist-cjs/commands/ImportKeyCommand.js +47 -0
  16. package/dist-cjs/commands/ListAliasesCommand.js +46 -0
  17. package/dist-cjs/commands/ListKeysCommand.js +46 -0
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  19. package/dist-cjs/commands/RestoreKeyCommand.js +46 -0
  20. package/dist-cjs/commands/StartKeyUsageCommand.js +46 -0
  21. package/dist-cjs/commands/StopKeyUsageCommand.js +46 -0
  22. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  23. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  24. package/dist-cjs/commands/UpdateAliasCommand.js +46 -0
  25. package/dist-cjs/commands/index.js +23 -0
  26. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  27. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  28. package/dist-cjs/endpoint/ruleset.js +7 -0
  29. package/dist-cjs/index.js +11 -0
  30. package/dist-cjs/models/PaymentCryptographyServiceException.js +12 -0
  31. package/dist-cjs/models/index.js +4 -0
  32. package/dist-cjs/models/models_0.js +291 -0
  33. package/dist-cjs/pagination/Interfaces.js +2 -0
  34. package/dist-cjs/pagination/ListAliasesPaginator.js +29 -0
  35. package/dist-cjs/pagination/ListKeysPaginator.js +29 -0
  36. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +29 -0
  37. package/dist-cjs/pagination/index.js +7 -0
  38. package/dist-cjs/protocols/Aws_json1_0.js +1396 -0
  39. package/dist-cjs/runtimeConfig.browser.js +39 -0
  40. package/dist-cjs/runtimeConfig.js +48 -0
  41. package/dist-cjs/runtimeConfig.native.js +15 -0
  42. package/dist-cjs/runtimeConfig.shared.js +21 -0
  43. package/dist-es/PaymentCryptography.js +47 -0
  44. package/dist-es/PaymentCryptographyClient.js +37 -0
  45. package/dist-es/commands/CreateAliasCommand.js +42 -0
  46. package/dist-es/commands/CreateKeyCommand.js +42 -0
  47. package/dist-es/commands/DeleteAliasCommand.js +42 -0
  48. package/dist-es/commands/DeleteKeyCommand.js +42 -0
  49. package/dist-es/commands/ExportKeyCommand.js +43 -0
  50. package/dist-es/commands/GetAliasCommand.js +42 -0
  51. package/dist-es/commands/GetKeyCommand.js +42 -0
  52. package/dist-es/commands/GetParametersForExportCommand.js +43 -0
  53. package/dist-es/commands/GetParametersForImportCommand.js +43 -0
  54. package/dist-es/commands/GetPublicKeyCertificateCommand.js +43 -0
  55. package/dist-es/commands/ImportKeyCommand.js +43 -0
  56. package/dist-es/commands/ListAliasesCommand.js +42 -0
  57. package/dist-es/commands/ListKeysCommand.js +42 -0
  58. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  59. package/dist-es/commands/RestoreKeyCommand.js +42 -0
  60. package/dist-es/commands/StartKeyUsageCommand.js +42 -0
  61. package/dist-es/commands/StopKeyUsageCommand.js +42 -0
  62. package/dist-es/commands/TagResourceCommand.js +42 -0
  63. package/dist-es/commands/UntagResourceCommand.js +42 -0
  64. package/dist-es/commands/UpdateAliasCommand.js +42 -0
  65. package/dist-es/commands/index.js +20 -0
  66. package/dist-es/endpoint/EndpointParameters.js +8 -0
  67. package/dist-es/endpoint/endpointResolver.js +8 -0
  68. package/dist-es/endpoint/ruleset.js +4 -0
  69. package/dist-es/index.js +6 -0
  70. package/dist-es/models/PaymentCryptographyServiceException.js +8 -0
  71. package/dist-es/models/index.js +1 -0
  72. package/dist-es/models/models_0.js +267 -0
  73. package/dist-es/pagination/Interfaces.js +1 -0
  74. package/dist-es/pagination/ListAliasesPaginator.js +25 -0
  75. package/dist-es/pagination/ListKeysPaginator.js +25 -0
  76. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -0
  77. package/dist-es/pagination/index.js +4 -0
  78. package/dist-es/protocols/Aws_json1_0.js +1353 -0
  79. package/dist-es/runtimeConfig.browser.js +34 -0
  80. package/dist-es/runtimeConfig.js +43 -0
  81. package/dist-es/runtimeConfig.native.js +11 -0
  82. package/dist-es/runtimeConfig.shared.js +17 -0
  83. package/dist-types/PaymentCryptography.d.ts +154 -0
  84. package/dist-types/PaymentCryptographyClient.d.ts +186 -0
  85. package/dist-types/commands/CreateAliasCommand.d.ts +130 -0
  86. package/dist-types/commands/CreateKeyCommand.d.ts +175 -0
  87. package/dist-types/commands/DeleteAliasCommand.d.ts +120 -0
  88. package/dist-types/commands/DeleteKeyCommand.d.ts +149 -0
  89. package/dist-types/commands/ExportKeyCommand.d.ts +153 -0
  90. package/dist-types/commands/GetAliasCommand.d.ts +121 -0
  91. package/dist-types/commands/GetKeyCommand.d.ts +142 -0
  92. package/dist-types/commands/GetParametersForExportCommand.d.ts +120 -0
  93. package/dist-types/commands/GetParametersForImportCommand.d.ts +120 -0
  94. package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +95 -0
  95. package/dist-types/commands/ImportKeyCommand.d.ts +301 -0
  96. package/dist-types/commands/ListAliasesCommand.d.ts +127 -0
  97. package/dist-types/commands/ListKeysCommand.d.ts +143 -0
  98. package/dist-types/commands/ListTagsForResourceCommand.d.ts +119 -0
  99. package/dist-types/commands/RestoreKeyCommand.d.ts +150 -0
  100. package/dist-types/commands/StartKeyUsageCommand.d.ts +138 -0
  101. package/dist-types/commands/StopKeyUsageCommand.d.ts +144 -0
  102. package/dist-types/commands/TagResourceCommand.d.ts +122 -0
  103. package/dist-types/commands/UntagResourceCommand.d.ts +115 -0
  104. package/dist-types/commands/UpdateAliasCommand.d.ts +125 -0
  105. package/dist-types/commands/index.d.ts +20 -0
  106. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  107. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  108. package/dist-types/endpoint/ruleset.d.ts +2 -0
  109. package/dist-types/index.d.ts +15 -0
  110. package/dist-types/models/PaymentCryptographyServiceException.d.ts +13 -0
  111. package/dist-types/models/index.d.ts +1 -0
  112. package/dist-types/models/models_0.d.ts +1222 -0
  113. package/dist-types/pagination/Interfaces.d.ts +8 -0
  114. package/dist-types/pagination/ListAliasesPaginator.d.ts +7 -0
  115. package/dist-types/pagination/ListKeysPaginator.d.ts +7 -0
  116. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +7 -0
  117. package/dist-types/pagination/index.d.ts +4 -0
  118. package/dist-types/protocols/Aws_json1_0.d.ts +182 -0
  119. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  120. package/dist-types/runtimeConfig.d.ts +42 -0
  121. package/dist-types/runtimeConfig.native.d.ts +41 -0
  122. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  123. package/dist-types/ts3.4/PaymentCryptography.d.ts +347 -0
  124. package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +235 -0
  125. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +35 -0
  126. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +35 -0
  127. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +35 -0
  128. package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +35 -0
  129. package/dist-types/ts3.4/commands/ExportKeyCommand.d.ts +35 -0
  130. package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +35 -0
  131. package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +33 -0
  132. package/dist-types/ts3.4/commands/GetParametersForExportCommand.d.ts +42 -0
  133. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +42 -0
  134. package/dist-types/ts3.4/commands/GetPublicKeyCertificateCommand.d.ts +42 -0
  135. package/dist-types/ts3.4/commands/ImportKeyCommand.d.ts +35 -0
  136. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +35 -0
  137. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +35 -0
  138. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  139. package/dist-types/ts3.4/commands/RestoreKeyCommand.d.ts +35 -0
  140. package/dist-types/ts3.4/commands/StartKeyUsageCommand.d.ts +35 -0
  141. package/dist-types/ts3.4/commands/StopKeyUsageCommand.d.ts +35 -0
  142. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  143. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  144. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +35 -0
  145. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  146. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  147. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  148. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  149. package/dist-types/ts3.4/index.d.ts +6 -0
  150. package/dist-types/ts3.4/models/PaymentCryptographyServiceException.d.ts +8 -0
  151. package/dist-types/ts3.4/models/index.d.ts +1 -0
  152. package/dist-types/ts3.4/models/models_0.d.ts +490 -0
  153. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  154. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
  157. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  158. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +245 -0
  159. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  160. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  161. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  162. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  163. package/package.json +99 -0
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,43 @@
1
+ import packageInfo from "../package.json";
2
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { Hash } from "@aws-sdk/hash-node";
6
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
+ import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
11
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "node",
25
+ defaultsMode,
26
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
27
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
32
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
33
+ retryMode: config?.retryMode ??
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
+ }),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
42
+ };
43
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,17 @@
1
+ import { NoOpLogger } from "@aws-sdk/smithy-client";
2
+ import { parseUrl } from "@aws-sdk/url-parser";
3
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8";
5
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
+ export const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2021-09-14",
8
+ base64Decoder: config?.base64Decoder ?? fromBase64,
9
+ base64Encoder: config?.base64Encoder ?? toBase64,
10
+ disableHostPrefix: config?.disableHostPrefix ?? false,
11
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
12
+ logger: config?.logger ?? new NoOpLogger(),
13
+ serviceId: config?.serviceId ?? "Payment Cryptography",
14
+ urlParser: config?.urlParser ?? parseUrl,
15
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
16
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
17
+ });
@@ -0,0 +1,154 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
3
+ import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
4
+ import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
5
+ import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
6
+ import { ExportKeyCommandInput, ExportKeyCommandOutput } from "./commands/ExportKeyCommand";
7
+ import { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
8
+ import { GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
9
+ import { GetParametersForExportCommandInput, GetParametersForExportCommandOutput } from "./commands/GetParametersForExportCommand";
10
+ import { GetParametersForImportCommandInput, GetParametersForImportCommandOutput } from "./commands/GetParametersForImportCommand";
11
+ import { GetPublicKeyCertificateCommandInput, GetPublicKeyCertificateCommandOutput } from "./commands/GetPublicKeyCertificateCommand";
12
+ import { ImportKeyCommandInput, ImportKeyCommandOutput } from "./commands/ImportKeyCommand";
13
+ import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
14
+ import { ListKeysCommandInput, ListKeysCommandOutput } from "./commands/ListKeysCommand";
15
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
16
+ import { RestoreKeyCommandInput, RestoreKeyCommandOutput } from "./commands/RestoreKeyCommand";
17
+ import { StartKeyUsageCommandInput, StartKeyUsageCommandOutput } from "./commands/StartKeyUsageCommand";
18
+ import { StopKeyUsageCommandInput, StopKeyUsageCommandOutput } from "./commands/StopKeyUsageCommand";
19
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
+ import { UpdateAliasCommandInput, UpdateAliasCommandOutput } from "./commands/UpdateAliasCommand";
22
+ import { PaymentCryptographyClient } from "./PaymentCryptographyClient";
23
+ export interface PaymentCryptography {
24
+ /**
25
+ * @see {@link CreateAliasCommand}
26
+ */
27
+ createAlias(args: CreateAliasCommandInput, options?: __HttpHandlerOptions): Promise<CreateAliasCommandOutput>;
28
+ createAlias(args: CreateAliasCommandInput, cb: (err: any, data?: CreateAliasCommandOutput) => void): void;
29
+ createAlias(args: CreateAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAliasCommandOutput) => void): void;
30
+ /**
31
+ * @see {@link CreateKeyCommand}
32
+ */
33
+ createKey(args: CreateKeyCommandInput, options?: __HttpHandlerOptions): Promise<CreateKeyCommandOutput>;
34
+ createKey(args: CreateKeyCommandInput, cb: (err: any, data?: CreateKeyCommandOutput) => void): void;
35
+ createKey(args: CreateKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKeyCommandOutput) => void): void;
36
+ /**
37
+ * @see {@link DeleteAliasCommand}
38
+ */
39
+ deleteAlias(args: DeleteAliasCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAliasCommandOutput>;
40
+ deleteAlias(args: DeleteAliasCommandInput, cb: (err: any, data?: DeleteAliasCommandOutput) => void): void;
41
+ deleteAlias(args: DeleteAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAliasCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link DeleteKeyCommand}
44
+ */
45
+ deleteKey(args: DeleteKeyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteKeyCommandOutput>;
46
+ deleteKey(args: DeleteKeyCommandInput, cb: (err: any, data?: DeleteKeyCommandOutput) => void): void;
47
+ deleteKey(args: DeleteKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteKeyCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link ExportKeyCommand}
50
+ */
51
+ exportKey(args: ExportKeyCommandInput, options?: __HttpHandlerOptions): Promise<ExportKeyCommandOutput>;
52
+ exportKey(args: ExportKeyCommandInput, cb: (err: any, data?: ExportKeyCommandOutput) => void): void;
53
+ exportKey(args: ExportKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportKeyCommandOutput) => void): void;
54
+ /**
55
+ * @see {@link GetAliasCommand}
56
+ */
57
+ getAlias(args: GetAliasCommandInput, options?: __HttpHandlerOptions): Promise<GetAliasCommandOutput>;
58
+ getAlias(args: GetAliasCommandInput, cb: (err: any, data?: GetAliasCommandOutput) => void): void;
59
+ getAlias(args: GetAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAliasCommandOutput) => void): void;
60
+ /**
61
+ * @see {@link GetKeyCommand}
62
+ */
63
+ getKey(args: GetKeyCommandInput, options?: __HttpHandlerOptions): Promise<GetKeyCommandOutput>;
64
+ getKey(args: GetKeyCommandInput, cb: (err: any, data?: GetKeyCommandOutput) => void): void;
65
+ getKey(args: GetKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetKeyCommandOutput) => void): void;
66
+ /**
67
+ * @see {@link GetParametersForExportCommand}
68
+ */
69
+ getParametersForExport(args: GetParametersForExportCommandInput, options?: __HttpHandlerOptions): Promise<GetParametersForExportCommandOutput>;
70
+ getParametersForExport(args: GetParametersForExportCommandInput, cb: (err: any, data?: GetParametersForExportCommandOutput) => void): void;
71
+ getParametersForExport(args: GetParametersForExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParametersForExportCommandOutput) => void): void;
72
+ /**
73
+ * @see {@link GetParametersForImportCommand}
74
+ */
75
+ getParametersForImport(args: GetParametersForImportCommandInput, options?: __HttpHandlerOptions): Promise<GetParametersForImportCommandOutput>;
76
+ getParametersForImport(args: GetParametersForImportCommandInput, cb: (err: any, data?: GetParametersForImportCommandOutput) => void): void;
77
+ getParametersForImport(args: GetParametersForImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParametersForImportCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link GetPublicKeyCertificateCommand}
80
+ */
81
+ getPublicKeyCertificate(args: GetPublicKeyCertificateCommandInput, options?: __HttpHandlerOptions): Promise<GetPublicKeyCertificateCommandOutput>;
82
+ getPublicKeyCertificate(args: GetPublicKeyCertificateCommandInput, cb: (err: any, data?: GetPublicKeyCertificateCommandOutput) => void): void;
83
+ getPublicKeyCertificate(args: GetPublicKeyCertificateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPublicKeyCertificateCommandOutput) => void): void;
84
+ /**
85
+ * @see {@link ImportKeyCommand}
86
+ */
87
+ importKey(args: ImportKeyCommandInput, options?: __HttpHandlerOptions): Promise<ImportKeyCommandOutput>;
88
+ importKey(args: ImportKeyCommandInput, cb: (err: any, data?: ImportKeyCommandOutput) => void): void;
89
+ importKey(args: ImportKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportKeyCommandOutput) => void): void;
90
+ /**
91
+ * @see {@link ListAliasesCommand}
92
+ */
93
+ listAliases(args: ListAliasesCommandInput, options?: __HttpHandlerOptions): Promise<ListAliasesCommandOutput>;
94
+ listAliases(args: ListAliasesCommandInput, cb: (err: any, data?: ListAliasesCommandOutput) => void): void;
95
+ listAliases(args: ListAliasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAliasesCommandOutput) => void): void;
96
+ /**
97
+ * @see {@link ListKeysCommand}
98
+ */
99
+ listKeys(args: ListKeysCommandInput, options?: __HttpHandlerOptions): Promise<ListKeysCommandOutput>;
100
+ listKeys(args: ListKeysCommandInput, cb: (err: any, data?: ListKeysCommandOutput) => void): void;
101
+ listKeys(args: ListKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListKeysCommandOutput) => void): void;
102
+ /**
103
+ * @see {@link ListTagsForResourceCommand}
104
+ */
105
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
106
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
107
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
108
+ /**
109
+ * @see {@link RestoreKeyCommand}
110
+ */
111
+ restoreKey(args: RestoreKeyCommandInput, options?: __HttpHandlerOptions): Promise<RestoreKeyCommandOutput>;
112
+ restoreKey(args: RestoreKeyCommandInput, cb: (err: any, data?: RestoreKeyCommandOutput) => void): void;
113
+ restoreKey(args: RestoreKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreKeyCommandOutput) => void): void;
114
+ /**
115
+ * @see {@link StartKeyUsageCommand}
116
+ */
117
+ startKeyUsage(args: StartKeyUsageCommandInput, options?: __HttpHandlerOptions): Promise<StartKeyUsageCommandOutput>;
118
+ startKeyUsage(args: StartKeyUsageCommandInput, cb: (err: any, data?: StartKeyUsageCommandOutput) => void): void;
119
+ startKeyUsage(args: StartKeyUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartKeyUsageCommandOutput) => void): void;
120
+ /**
121
+ * @see {@link StopKeyUsageCommand}
122
+ */
123
+ stopKeyUsage(args: StopKeyUsageCommandInput, options?: __HttpHandlerOptions): Promise<StopKeyUsageCommandOutput>;
124
+ stopKeyUsage(args: StopKeyUsageCommandInput, cb: (err: any, data?: StopKeyUsageCommandOutput) => void): void;
125
+ stopKeyUsage(args: StopKeyUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopKeyUsageCommandOutput) => void): void;
126
+ /**
127
+ * @see {@link TagResourceCommand}
128
+ */
129
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
130
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
131
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
132
+ /**
133
+ * @see {@link UntagResourceCommand}
134
+ */
135
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
136
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
137
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
138
+ /**
139
+ * @see {@link UpdateAliasCommand}
140
+ */
141
+ updateAlias(args: UpdateAliasCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAliasCommandOutput>;
142
+ updateAlias(args: UpdateAliasCommandInput, cb: (err: any, data?: UpdateAliasCommandOutput) => void): void;
143
+ updateAlias(args: UpdateAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAliasCommandOutput) => void): void;
144
+ }
145
+ /**
146
+ * @public
147
+ * <p>You use the Amazon Web Services Payment Cryptography Control Plane to manage the encryption keys you use for payment-related cryptographic operations. You can create, import, export, share, manage, and delete keys. You can also manage Identity and Access Management (IAM) policies for keys. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security-iam.html">Identity and access management</a> in the <i>Amazon Web Services Payment Cryptography User Guide.</i>
148
+ * </p>
149
+ * <p>To use encryption keys for payment-related transaction processing and associated cryptographic operations, you use the <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/Welcome.html">Amazon Web Services Payment Cryptography Data Plane</a>. You can encrypt, decrypt, generate, verify, and translate payment-related cryptographic operations. </p>
150
+ * <p>All Amazon Web Services Payment Cryptography API calls must be signed and transmitted using Transport Layer Security (TLS). We recommend you always use the latest supported TLS version for logging API requests. </p>
151
+ * <p>Amazon Web Services Payment Cryptography supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to Amazon Web Services Payment Cryptography, who made the request, when it was made, and so on. If you don't configure a trail, you can still view the most recent events in the CloudTrail console. For more information, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.</p>
152
+ */
153
+ export declare class PaymentCryptography extends PaymentCryptographyClient implements PaymentCryptography {
154
+ }
@@ -0,0 +1,186 @@
1
+ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
3
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
4
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
5
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
10
+ import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
11
+ import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
12
+ import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
13
+ import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
14
+ import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
15
+ import { ExportKeyCommandInput, ExportKeyCommandOutput } from "./commands/ExportKeyCommand";
16
+ import { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
17
+ import { GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
18
+ import { GetParametersForExportCommandInput, GetParametersForExportCommandOutput } from "./commands/GetParametersForExportCommand";
19
+ import { GetParametersForImportCommandInput, GetParametersForImportCommandOutput } from "./commands/GetParametersForImportCommand";
20
+ import { GetPublicKeyCertificateCommandInput, GetPublicKeyCertificateCommandOutput } from "./commands/GetPublicKeyCertificateCommand";
21
+ import { ImportKeyCommandInput, ImportKeyCommandOutput } from "./commands/ImportKeyCommand";
22
+ import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
23
+ import { ListKeysCommandInput, ListKeysCommandOutput } from "./commands/ListKeysCommand";
24
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
+ import { RestoreKeyCommandInput, RestoreKeyCommandOutput } from "./commands/RestoreKeyCommand";
26
+ import { StartKeyUsageCommandInput, StartKeyUsageCommandOutput } from "./commands/StartKeyUsageCommand";
27
+ import { StopKeyUsageCommandInput, StopKeyUsageCommandOutput } from "./commands/StopKeyUsageCommand";
28
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
+ import { UpdateAliasCommandInput, UpdateAliasCommandOutput } from "./commands/UpdateAliasCommand";
31
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
32
+ export { __Client };
33
+ /**
34
+ * @public
35
+ */
36
+ export type ServiceInputTypes = CreateAliasCommandInput | CreateKeyCommandInput | DeleteAliasCommandInput | DeleteKeyCommandInput | ExportKeyCommandInput | GetAliasCommandInput | GetKeyCommandInput | GetParametersForExportCommandInput | GetParametersForImportCommandInput | GetPublicKeyCertificateCommandInput | ImportKeyCommandInput | ListAliasesCommandInput | ListKeysCommandInput | ListTagsForResourceCommandInput | RestoreKeyCommandInput | StartKeyUsageCommandInput | StopKeyUsageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput;
37
+ /**
38
+ * @public
39
+ */
40
+ export type ServiceOutputTypes = CreateAliasCommandOutput | CreateKeyCommandOutput | DeleteAliasCommandOutput | DeleteKeyCommandOutput | ExportKeyCommandOutput | GetAliasCommandOutput | GetKeyCommandOutput | GetParametersForExportCommandOutput | GetParametersForImportCommandOutput | GetPublicKeyCertificateCommandOutput | ImportKeyCommandOutput | ListAliasesCommandOutput | ListKeysCommandOutput | ListTagsForResourceCommandOutput | RestoreKeyCommandOutput | StartKeyUsageCommandOutput | StopKeyUsageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput;
41
+ /**
42
+ * @public
43
+ */
44
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
45
+ /**
46
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
47
+ */
48
+ requestHandler?: __HttpHandler;
49
+ /**
50
+ * A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
51
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
52
+ * @internal
53
+ */
54
+ sha256?: __ChecksumConstructor | __HashConstructor;
55
+ /**
56
+ * The function that will be used to convert strings into HTTP endpoints.
57
+ * @internal
58
+ */
59
+ urlParser?: __UrlParser;
60
+ /**
61
+ * A function that can calculate the length of a request body.
62
+ * @internal
63
+ */
64
+ bodyLengthChecker?: __BodyLengthCalculator;
65
+ /**
66
+ * A function that converts a stream into an array of bytes.
67
+ * @internal
68
+ */
69
+ streamCollector?: __StreamCollector;
70
+ /**
71
+ * The function that will be used to convert a base64-encoded string to a byte array.
72
+ * @internal
73
+ */
74
+ base64Decoder?: __Decoder;
75
+ /**
76
+ * The function that will be used to convert binary data to a base64-encoded string.
77
+ * @internal
78
+ */
79
+ base64Encoder?: __Encoder;
80
+ /**
81
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
82
+ * @internal
83
+ */
84
+ utf8Decoder?: __Decoder;
85
+ /**
86
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
87
+ * @internal
88
+ */
89
+ utf8Encoder?: __Encoder;
90
+ /**
91
+ * The runtime environment.
92
+ * @internal
93
+ */
94
+ runtime?: string;
95
+ /**
96
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
97
+ * trait of an operation.
98
+ */
99
+ disableHostPrefix?: boolean;
100
+ /**
101
+ * Unique service identifier.
102
+ * @internal
103
+ */
104
+ serviceId?: string;
105
+ /**
106
+ * Enables IPv6/IPv4 dualstack endpoint.
107
+ */
108
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
109
+ /**
110
+ * Enables FIPS compatible endpoints.
111
+ */
112
+ useFipsEndpoint?: boolean | __Provider<boolean>;
113
+ /**
114
+ * The AWS region to which this client will send requests
115
+ */
116
+ region?: string | __Provider<string>;
117
+ /**
118
+ * Default credentials provider; Not available in browser runtime.
119
+ * @internal
120
+ */
121
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
122
+ /**
123
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
124
+ * @internal
125
+ */
126
+ defaultUserAgentProvider?: Provider<__UserAgent>;
127
+ /**
128
+ * Value for how many times a request will be made at most in case of retry.
129
+ */
130
+ maxAttempts?: number | __Provider<number>;
131
+ /**
132
+ * Specifies which retry algorithm to use.
133
+ */
134
+ retryMode?: string | __Provider<string>;
135
+ /**
136
+ * Optional logger for logging debug/info/warn/error.
137
+ */
138
+ logger?: __Logger;
139
+ /**
140
+ * The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
141
+ */
142
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
143
+ }
144
+ /**
145
+ * @public
146
+ */
147
+ export type PaymentCryptographyClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
148
+ /**
149
+ * @public
150
+ *
151
+ * The configuration interface of PaymentCryptographyClient class constructor that set the region, credentials and other options.
152
+ */
153
+ export interface PaymentCryptographyClientConfig extends PaymentCryptographyClientConfigType {
154
+ }
155
+ /**
156
+ * @public
157
+ */
158
+ export type PaymentCryptographyClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
159
+ /**
160
+ * @public
161
+ *
162
+ * The resolved configuration interface of PaymentCryptographyClient class. This is resolved and normalized from the {@link PaymentCryptographyClientConfig | constructor configuration interface}.
163
+ */
164
+ export interface PaymentCryptographyClientResolvedConfig extends PaymentCryptographyClientResolvedConfigType {
165
+ }
166
+ /**
167
+ * @public
168
+ * <p>You use the Amazon Web Services Payment Cryptography Control Plane to manage the encryption keys you use for payment-related cryptographic operations. You can create, import, export, share, manage, and delete keys. You can also manage Identity and Access Management (IAM) policies for keys. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security-iam.html">Identity and access management</a> in the <i>Amazon Web Services Payment Cryptography User Guide.</i>
169
+ * </p>
170
+ * <p>To use encryption keys for payment-related transaction processing and associated cryptographic operations, you use the <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/Welcome.html">Amazon Web Services Payment Cryptography Data Plane</a>. You can encrypt, decrypt, generate, verify, and translate payment-related cryptographic operations. </p>
171
+ * <p>All Amazon Web Services Payment Cryptography API calls must be signed and transmitted using Transport Layer Security (TLS). We recommend you always use the latest supported TLS version for logging API requests. </p>
172
+ * <p>Amazon Web Services Payment Cryptography supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to Amazon Web Services Payment Cryptography, who made the request, when it was made, and so on. If you don't configure a trail, you can still view the most recent events in the CloudTrail console. For more information, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.</p>
173
+ */
174
+ export declare class PaymentCryptographyClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PaymentCryptographyClientResolvedConfig> {
175
+ /**
176
+ * The resolved configuration of PaymentCryptographyClient class. This is resolved and normalized from the {@link PaymentCryptographyClientConfig | constructor configuration interface}.
177
+ */
178
+ readonly config: PaymentCryptographyClientResolvedConfig;
179
+ constructor(configuration: PaymentCryptographyClientConfig);
180
+ /**
181
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
182
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
183
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
184
+ */
185
+ destroy(): void;
186
+ }
@@ -0,0 +1,130 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CreateAliasInput, CreateAliasOutput } from "../models/models_0";
5
+ import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAliasCommand}.
14
+ */
15
+ export interface CreateAliasCommandInput extends CreateAliasInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAliasCommand}.
21
+ */
22
+ export interface CreateAliasCommandOutput extends CreateAliasOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates an <i>alias</i>, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_EncryptData.html">EncryptData</a> or <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_DecryptData.html">DecryptData</a>.</p>
27
+ * <p>You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region.</p>
28
+ * <p>To change the key that's associated with the alias, call <a>UpdateAlias</a>. To delete the alias, call <a>DeleteAlias</a>. These operations don't affect the underlying key. To get the alias that you created, call <a>ListAliases</a>.</p>
29
+ * <p>
30
+ * <b>Cross-account use</b>: This operation can't be used across different Amazon Web Services accounts.</p>
31
+ * <p>
32
+ * <b>Related operations:</b>
33
+ * </p>
34
+ * <ul>
35
+ * <li>
36
+ * <p>
37
+ * <a>DeleteAlias</a>
38
+ * </p>
39
+ * </li>
40
+ * <li>
41
+ * <p>
42
+ * <a>GetAlias</a>
43
+ * </p>
44
+ * </li>
45
+ * <li>
46
+ * <p>
47
+ * <a>ListAliases</a>
48
+ * </p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <a>UpdateAlias</a>
53
+ * </p>
54
+ * </li>
55
+ * </ul>
56
+ * @example
57
+ * Use a bare-bones client and the command you need to make an API call.
58
+ * ```javascript
59
+ * import { PaymentCryptographyClient, CreateAliasCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
60
+ * // const { PaymentCryptographyClient, CreateAliasCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
61
+ * const client = new PaymentCryptographyClient(config);
62
+ * const input = { // CreateAliasInput
63
+ * AliasName: "STRING_VALUE", // required
64
+ * KeyArn: "STRING_VALUE",
65
+ * };
66
+ * const command = new CreateAliasCommand(input);
67
+ * const response = await client.send(command);
68
+ * // { // CreateAliasOutput
69
+ * // Alias: { // Alias
70
+ * // AliasName: "STRING_VALUE", // required
71
+ * // KeyArn: "STRING_VALUE",
72
+ * // },
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param CreateAliasCommandInput - {@link CreateAliasCommandInput}
78
+ * @returns {@link CreateAliasCommandOutput}
79
+ * @see {@link CreateAliasCommandInput} for command's `input` shape.
80
+ * @see {@link CreateAliasCommandOutput} for command's `response` shape.
81
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
82
+ *
83
+ * @throws {@link AccessDeniedException} (client fault)
84
+ * <p>You do not have sufficient access to perform this action.</p>
85
+ *
86
+ * @throws {@link ConflictException} (client fault)
87
+ * <p>This request can cause an inconsistent state for the resource.</p>
88
+ *
89
+ * @throws {@link InternalServerException} (server fault)
90
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
91
+ *
92
+ * @throws {@link ResourceNotFoundException} (client fault)
93
+ * <p>The request was denied due to an invalid resource error.</p>
94
+ *
95
+ * @throws {@link ServiceQuotaExceededException} (client fault)
96
+ * <p>This request would cause a service quota to be exceeded.</p>
97
+ *
98
+ * @throws {@link ServiceUnavailableException} (server fault)
99
+ * <p>The service cannot complete the request.</p>
100
+ *
101
+ * @throws {@link ThrottlingException} (client fault)
102
+ * <p>The request was denied due to request throttling.</p>
103
+ *
104
+ * @throws {@link ValidationException} (client fault)
105
+ * <p>The request was denied due to an invalid request error.</p>
106
+ *
107
+ * @throws {@link PaymentCryptographyServiceException}
108
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
109
+ *
110
+ */
111
+ export declare class CreateAliasCommand extends $Command<CreateAliasCommandInput, CreateAliasCommandOutput, PaymentCryptographyClientResolvedConfig> {
112
+ readonly input: CreateAliasCommandInput;
113
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
114
+ /**
115
+ * @public
116
+ */
117
+ constructor(input: CreateAliasCommandInput);
118
+ /**
119
+ * @internal
120
+ */
121
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAliasCommandInput, CreateAliasCommandOutput>;
122
+ /**
123
+ * @internal
124
+ */
125
+ private serialize;
126
+ /**
127
+ * @internal
128
+ */
129
+ private deserialize;
130
+ }