@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.
- package/LICENSE +201 -0
- package/README.md +369 -0
- package/dist-cjs/PaymentCryptography.js +51 -0
- package/dist-cjs/PaymentCryptographyClient.js +41 -0
- package/dist-cjs/commands/CreateAliasCommand.js +46 -0
- package/dist-cjs/commands/CreateKeyCommand.js +46 -0
- package/dist-cjs/commands/DeleteAliasCommand.js +46 -0
- package/dist-cjs/commands/DeleteKeyCommand.js +46 -0
- package/dist-cjs/commands/ExportKeyCommand.js +47 -0
- package/dist-cjs/commands/GetAliasCommand.js +46 -0
- package/dist-cjs/commands/GetKeyCommand.js +46 -0
- package/dist-cjs/commands/GetParametersForExportCommand.js +47 -0
- package/dist-cjs/commands/GetParametersForImportCommand.js +47 -0
- package/dist-cjs/commands/GetPublicKeyCertificateCommand.js +47 -0
- package/dist-cjs/commands/ImportKeyCommand.js +47 -0
- package/dist-cjs/commands/ListAliasesCommand.js +46 -0
- package/dist-cjs/commands/ListKeysCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/RestoreKeyCommand.js +46 -0
- package/dist-cjs/commands/StartKeyUsageCommand.js +46 -0
- package/dist-cjs/commands/StopKeyUsageCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateAliasCommand.js +46 -0
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/PaymentCryptographyServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +291 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAliasesPaginator.js +29 -0
- package/dist-cjs/pagination/ListKeysPaginator.js +29 -0
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1396 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/PaymentCryptography.js +47 -0
- package/dist-es/PaymentCryptographyClient.js +37 -0
- package/dist-es/commands/CreateAliasCommand.js +42 -0
- package/dist-es/commands/CreateKeyCommand.js +42 -0
- package/dist-es/commands/DeleteAliasCommand.js +42 -0
- package/dist-es/commands/DeleteKeyCommand.js +42 -0
- package/dist-es/commands/ExportKeyCommand.js +43 -0
- package/dist-es/commands/GetAliasCommand.js +42 -0
- package/dist-es/commands/GetKeyCommand.js +42 -0
- package/dist-es/commands/GetParametersForExportCommand.js +43 -0
- package/dist-es/commands/GetParametersForImportCommand.js +43 -0
- package/dist-es/commands/GetPublicKeyCertificateCommand.js +43 -0
- package/dist-es/commands/ImportKeyCommand.js +43 -0
- package/dist-es/commands/ListAliasesCommand.js +42 -0
- package/dist-es/commands/ListKeysCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/RestoreKeyCommand.js +42 -0
- package/dist-es/commands/StartKeyUsageCommand.js +42 -0
- package/dist-es/commands/StopKeyUsageCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateAliasCommand.js +42 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/PaymentCryptographyServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +267 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAliasesPaginator.js +25 -0
- package/dist-es/pagination/ListKeysPaginator.js +25 -0
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +1353 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/PaymentCryptography.d.ts +154 -0
- package/dist-types/PaymentCryptographyClient.d.ts +186 -0
- package/dist-types/commands/CreateAliasCommand.d.ts +130 -0
- package/dist-types/commands/CreateKeyCommand.d.ts +175 -0
- package/dist-types/commands/DeleteAliasCommand.d.ts +120 -0
- package/dist-types/commands/DeleteKeyCommand.d.ts +149 -0
- package/dist-types/commands/ExportKeyCommand.d.ts +153 -0
- package/dist-types/commands/GetAliasCommand.d.ts +121 -0
- package/dist-types/commands/GetKeyCommand.d.ts +142 -0
- package/dist-types/commands/GetParametersForExportCommand.d.ts +120 -0
- package/dist-types/commands/GetParametersForImportCommand.d.ts +120 -0
- package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +95 -0
- package/dist-types/commands/ImportKeyCommand.d.ts +301 -0
- package/dist-types/commands/ListAliasesCommand.d.ts +127 -0
- package/dist-types/commands/ListKeysCommand.d.ts +143 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +119 -0
- package/dist-types/commands/RestoreKeyCommand.d.ts +150 -0
- package/dist-types/commands/StartKeyUsageCommand.d.ts +138 -0
- package/dist-types/commands/StopKeyUsageCommand.d.ts +144 -0
- package/dist-types/commands/TagResourceCommand.d.ts +122 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +115 -0
- package/dist-types/commands/UpdateAliasCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/PaymentCryptographyServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1222 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAliasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListKeysPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +182 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/PaymentCryptography.d.ts +347 -0
- package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +235 -0
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ExportKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/GetParametersForExportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPublicKeyCertificateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ImportKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/RestoreKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartKeyUsageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StopKeyUsageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/PaymentCryptographyServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +490 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +245 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +99 -0
|
@@ -0,0 +1,119 @@
|
|
|
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 { ListTagsForResourceInput, ListTagsForResourceOutput } 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 ListTagsForResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Lists the tags for an Amazon Web Services resource.</p>
|
|
27
|
+
* <p>This is a paginated operation, which means that each response might contain only a subset of all the tags.
|
|
28
|
+
* When the response contains only a subset of tags, it includes a <code>NextToken</code> value. Use this value in a subsequent <code>ListTagsForResource</code> request to get more tags.
|
|
29
|
+
* When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.</p>
|
|
30
|
+
* <p>
|
|
31
|
+
* <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
|
|
32
|
+
* <p>
|
|
33
|
+
* <b>Related operations:</b>
|
|
34
|
+
* </p>
|
|
35
|
+
* <ul>
|
|
36
|
+
* <li>
|
|
37
|
+
* <p>
|
|
38
|
+
* <a>TagResource</a>
|
|
39
|
+
* </p>
|
|
40
|
+
* </li>
|
|
41
|
+
* <li>
|
|
42
|
+
* <p>
|
|
43
|
+
* <a>UntagResource</a>
|
|
44
|
+
* </p>
|
|
45
|
+
* </li>
|
|
46
|
+
* </ul>
|
|
47
|
+
* @example
|
|
48
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
49
|
+
* ```javascript
|
|
50
|
+
* import { PaymentCryptographyClient, ListTagsForResourceCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
|
|
51
|
+
* // const { PaymentCryptographyClient, ListTagsForResourceCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
|
|
52
|
+
* const client = new PaymentCryptographyClient(config);
|
|
53
|
+
* const input = { // ListTagsForResourceInput
|
|
54
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
55
|
+
* NextToken: "STRING_VALUE",
|
|
56
|
+
* MaxResults: Number("int"),
|
|
57
|
+
* };
|
|
58
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // ListTagsForResourceOutput
|
|
61
|
+
* // Tags: [ // Tags // required
|
|
62
|
+
* // { // Tag
|
|
63
|
+
* // Key: "STRING_VALUE", // required
|
|
64
|
+
* // Value: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // NextToken: "STRING_VALUE",
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
73
|
+
* @returns {@link ListTagsForResourceCommandOutput}
|
|
74
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
79
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The request was denied due to an invalid resource error.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
88
|
+
* <p>The service cannot complete the request.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
91
|
+
* <p>The request was denied due to request throttling.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>The request was denied due to an invalid request error.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link PaymentCryptographyServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, PaymentCryptographyClientResolvedConfig> {
|
|
101
|
+
readonly input: ListTagsForResourceCommandInput;
|
|
102
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
constructor(input: ListTagsForResourceCommandInput);
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
private serialize;
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
private deserialize;
|
|
119
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
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 { RestoreKeyInput, RestoreKeyOutput } 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 RestoreKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RestoreKeyCommandInput extends RestoreKeyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RestoreKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RestoreKeyCommandOutput extends RestoreKeyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Cancels a scheduled key deletion during the waiting period. Use this operation to restore a <code>Key</code> that is scheduled for deletion.</p>
|
|
27
|
+
* <p>During the waiting period, the <code>KeyState</code> is <code>DELETE_PENDING</code> and <code>deletePendingTimestamp</code> contains the date and time after which the <code>Key</code> will be deleted.
|
|
28
|
+
* After <code>Key</code> is restored, the <code>KeyState</code> is <code>CREATE_COMPLETE</code>, and the value for <code>deletePendingTimestamp</code> is removed.</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>DeleteKey</a>
|
|
38
|
+
* </p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>
|
|
42
|
+
* <a>StartKeyUsage</a>
|
|
43
|
+
* </p>
|
|
44
|
+
* </li>
|
|
45
|
+
* <li>
|
|
46
|
+
* <p>
|
|
47
|
+
* <a>StopKeyUsage</a>
|
|
48
|
+
* </p>
|
|
49
|
+
* </li>
|
|
50
|
+
* </ul>
|
|
51
|
+
* @example
|
|
52
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
+
* ```javascript
|
|
54
|
+
* import { PaymentCryptographyClient, RestoreKeyCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
|
|
55
|
+
* // const { PaymentCryptographyClient, RestoreKeyCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
|
|
56
|
+
* const client = new PaymentCryptographyClient(config);
|
|
57
|
+
* const input = { // RestoreKeyInput
|
|
58
|
+
* KeyIdentifier: "STRING_VALUE", // required
|
|
59
|
+
* };
|
|
60
|
+
* const command = new RestoreKeyCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // RestoreKeyOutput
|
|
63
|
+
* // Key: { // Key
|
|
64
|
+
* // KeyArn: "STRING_VALUE", // required
|
|
65
|
+
* // KeyAttributes: { // KeyAttributes
|
|
66
|
+
* // KeyUsage: "STRING_VALUE", // required
|
|
67
|
+
* // KeyClass: "STRING_VALUE", // required
|
|
68
|
+
* // KeyAlgorithm: "STRING_VALUE", // required
|
|
69
|
+
* // KeyModesOfUse: { // KeyModesOfUse
|
|
70
|
+
* // Encrypt: true || false,
|
|
71
|
+
* // Decrypt: true || false,
|
|
72
|
+
* // Wrap: true || false,
|
|
73
|
+
* // Unwrap: true || false,
|
|
74
|
+
* // Generate: true || false,
|
|
75
|
+
* // Sign: true || false,
|
|
76
|
+
* // Verify: true || false,
|
|
77
|
+
* // DeriveKey: true || false,
|
|
78
|
+
* // NoRestrictions: true || false,
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // KeyCheckValue: "STRING_VALUE", // required
|
|
82
|
+
* // KeyCheckValueAlgorithm: "STRING_VALUE", // required
|
|
83
|
+
* // Enabled: true || false, // required
|
|
84
|
+
* // Exportable: true || false, // required
|
|
85
|
+
* // KeyState: "STRING_VALUE", // required
|
|
86
|
+
* // KeyOrigin: "STRING_VALUE", // required
|
|
87
|
+
* // CreateTimestamp: new Date("TIMESTAMP"), // required
|
|
88
|
+
* // UsageStartTimestamp: new Date("TIMESTAMP"),
|
|
89
|
+
* // UsageStopTimestamp: new Date("TIMESTAMP"),
|
|
90
|
+
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
|
|
91
|
+
* // DeleteTimestamp: new Date("TIMESTAMP"),
|
|
92
|
+
* // },
|
|
93
|
+
* // };
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param RestoreKeyCommandInput - {@link RestoreKeyCommandInput}
|
|
98
|
+
* @returns {@link RestoreKeyCommandOutput}
|
|
99
|
+
* @see {@link RestoreKeyCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link RestoreKeyCommandOutput} for command's `response` shape.
|
|
101
|
+
* @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
104
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ConflictException} (client fault)
|
|
107
|
+
* <p>This request can cause an inconsistent state for the resource.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link InternalServerException} (server fault)
|
|
110
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
113
|
+
* <p>The request was denied due to an invalid resource error.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
116
|
+
* <p>This request would cause a service quota to be exceeded.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
119
|
+
* <p>The service cannot complete the request.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
122
|
+
* <p>The request was denied due to request throttling.</p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link ValidationException} (client fault)
|
|
125
|
+
* <p>The request was denied due to an invalid request error.</p>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link PaymentCryptographyServiceException}
|
|
128
|
+
* <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
export declare class RestoreKeyCommand extends $Command<RestoreKeyCommandInput, RestoreKeyCommandOutput, PaymentCryptographyClientResolvedConfig> {
|
|
132
|
+
readonly input: RestoreKeyCommandInput;
|
|
133
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
constructor(input: RestoreKeyCommandInput);
|
|
138
|
+
/**
|
|
139
|
+
* @internal
|
|
140
|
+
*/
|
|
141
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RestoreKeyCommandInput, RestoreKeyCommandOutput>;
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
private serialize;
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
private deserialize;
|
|
150
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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 { StartKeyUsageInput, StartKeyUsageOutput } 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 StartKeyUsageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartKeyUsageCommandInput extends StartKeyUsageInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartKeyUsageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartKeyUsageCommandOutput extends StartKeyUsageOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Enables an Amazon Web Services Payment Cryptography key, which makes it active for cryptographic operations within Amazon Web Services Payment Cryptography</p>
|
|
27
|
+
* <p>
|
|
28
|
+
* <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
|
|
29
|
+
* <p>
|
|
30
|
+
* <b>Related operations:</b>
|
|
31
|
+
* </p>
|
|
32
|
+
* <ul>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>
|
|
35
|
+
* <a>StopKeyUsage</a>
|
|
36
|
+
* </p>
|
|
37
|
+
* </li>
|
|
38
|
+
* </ul>
|
|
39
|
+
* @example
|
|
40
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
+
* ```javascript
|
|
42
|
+
* import { PaymentCryptographyClient, StartKeyUsageCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
|
|
43
|
+
* // const { PaymentCryptographyClient, StartKeyUsageCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
|
|
44
|
+
* const client = new PaymentCryptographyClient(config);
|
|
45
|
+
* const input = { // StartKeyUsageInput
|
|
46
|
+
* KeyIdentifier: "STRING_VALUE", // required
|
|
47
|
+
* };
|
|
48
|
+
* const command = new StartKeyUsageCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // StartKeyUsageOutput
|
|
51
|
+
* // Key: { // Key
|
|
52
|
+
* // KeyArn: "STRING_VALUE", // required
|
|
53
|
+
* // KeyAttributes: { // KeyAttributes
|
|
54
|
+
* // KeyUsage: "STRING_VALUE", // required
|
|
55
|
+
* // KeyClass: "STRING_VALUE", // required
|
|
56
|
+
* // KeyAlgorithm: "STRING_VALUE", // required
|
|
57
|
+
* // KeyModesOfUse: { // KeyModesOfUse
|
|
58
|
+
* // Encrypt: true || false,
|
|
59
|
+
* // Decrypt: true || false,
|
|
60
|
+
* // Wrap: true || false,
|
|
61
|
+
* // Unwrap: true || false,
|
|
62
|
+
* // Generate: true || false,
|
|
63
|
+
* // Sign: true || false,
|
|
64
|
+
* // Verify: true || false,
|
|
65
|
+
* // DeriveKey: true || false,
|
|
66
|
+
* // NoRestrictions: true || false,
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // KeyCheckValue: "STRING_VALUE", // required
|
|
70
|
+
* // KeyCheckValueAlgorithm: "STRING_VALUE", // required
|
|
71
|
+
* // Enabled: true || false, // required
|
|
72
|
+
* // Exportable: true || false, // required
|
|
73
|
+
* // KeyState: "STRING_VALUE", // required
|
|
74
|
+
* // KeyOrigin: "STRING_VALUE", // required
|
|
75
|
+
* // CreateTimestamp: new Date("TIMESTAMP"), // required
|
|
76
|
+
* // UsageStartTimestamp: new Date("TIMESTAMP"),
|
|
77
|
+
* // UsageStopTimestamp: new Date("TIMESTAMP"),
|
|
78
|
+
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
|
|
79
|
+
* // DeleteTimestamp: new Date("TIMESTAMP"),
|
|
80
|
+
* // },
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param StartKeyUsageCommandInput - {@link StartKeyUsageCommandInput}
|
|
86
|
+
* @returns {@link StartKeyUsageCommandOutput}
|
|
87
|
+
* @see {@link StartKeyUsageCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link StartKeyUsageCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
92
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ConflictException} (client fault)
|
|
95
|
+
* <p>This request can cause an inconsistent state for the resource.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InternalServerException} (server fault)
|
|
98
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
101
|
+
* <p>The request was denied due to an invalid resource error.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
104
|
+
* <p>This request would cause a service quota to be exceeded.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
107
|
+
* <p>The service cannot complete the request.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
110
|
+
* <p>The request was denied due to request throttling.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ValidationException} (client fault)
|
|
113
|
+
* <p>The request was denied due to an invalid request error.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link PaymentCryptographyServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export declare class StartKeyUsageCommand extends $Command<StartKeyUsageCommandInput, StartKeyUsageCommandOutput, PaymentCryptographyClientResolvedConfig> {
|
|
120
|
+
readonly input: StartKeyUsageCommandInput;
|
|
121
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
constructor(input: StartKeyUsageCommandInput);
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartKeyUsageCommandInput, StartKeyUsageCommandOutput>;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private serialize;
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
private deserialize;
|
|
138
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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 { StopKeyUsageInput, StopKeyUsageOutput } 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 StopKeyUsageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopKeyUsageCommandInput extends StopKeyUsageInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopKeyUsageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopKeyUsageCommandOutput extends StopKeyUsageOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Disables an Amazon Web Services Payment Cryptography key, which makes it inactive within Amazon Web Services Payment Cryptography.</p>
|
|
27
|
+
* <p>You can use this operation instead of <a>DeleteKey</a> to deactivate a key. You can enable the key in the future by calling <a>StartKeyUsage</a>.</p>
|
|
28
|
+
* <p>
|
|
29
|
+
* <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
|
|
30
|
+
* <p>
|
|
31
|
+
* <b>Related operations:</b>
|
|
32
|
+
* </p>
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>
|
|
36
|
+
* <a>DeleteKey</a>
|
|
37
|
+
* </p>
|
|
38
|
+
* </li>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>
|
|
41
|
+
* <a>StartKeyUsage</a>
|
|
42
|
+
* </p>
|
|
43
|
+
* </li>
|
|
44
|
+
* </ul>
|
|
45
|
+
* @example
|
|
46
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
+
* ```javascript
|
|
48
|
+
* import { PaymentCryptographyClient, StopKeyUsageCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
|
|
49
|
+
* // const { PaymentCryptographyClient, StopKeyUsageCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
|
|
50
|
+
* const client = new PaymentCryptographyClient(config);
|
|
51
|
+
* const input = { // StopKeyUsageInput
|
|
52
|
+
* KeyIdentifier: "STRING_VALUE", // required
|
|
53
|
+
* };
|
|
54
|
+
* const command = new StopKeyUsageCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // StopKeyUsageOutput
|
|
57
|
+
* // Key: { // Key
|
|
58
|
+
* // KeyArn: "STRING_VALUE", // required
|
|
59
|
+
* // KeyAttributes: { // KeyAttributes
|
|
60
|
+
* // KeyUsage: "STRING_VALUE", // required
|
|
61
|
+
* // KeyClass: "STRING_VALUE", // required
|
|
62
|
+
* // KeyAlgorithm: "STRING_VALUE", // required
|
|
63
|
+
* // KeyModesOfUse: { // KeyModesOfUse
|
|
64
|
+
* // Encrypt: true || false,
|
|
65
|
+
* // Decrypt: true || false,
|
|
66
|
+
* // Wrap: true || false,
|
|
67
|
+
* // Unwrap: true || false,
|
|
68
|
+
* // Generate: true || false,
|
|
69
|
+
* // Sign: true || false,
|
|
70
|
+
* // Verify: true || false,
|
|
71
|
+
* // DeriveKey: true || false,
|
|
72
|
+
* // NoRestrictions: true || false,
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // KeyCheckValue: "STRING_VALUE", // required
|
|
76
|
+
* // KeyCheckValueAlgorithm: "STRING_VALUE", // required
|
|
77
|
+
* // Enabled: true || false, // required
|
|
78
|
+
* // Exportable: true || false, // required
|
|
79
|
+
* // KeyState: "STRING_VALUE", // required
|
|
80
|
+
* // KeyOrigin: "STRING_VALUE", // required
|
|
81
|
+
* // CreateTimestamp: new Date("TIMESTAMP"), // required
|
|
82
|
+
* // UsageStartTimestamp: new Date("TIMESTAMP"),
|
|
83
|
+
* // UsageStopTimestamp: new Date("TIMESTAMP"),
|
|
84
|
+
* // DeletePendingTimestamp: new Date("TIMESTAMP"),
|
|
85
|
+
* // DeleteTimestamp: new Date("TIMESTAMP"),
|
|
86
|
+
* // },
|
|
87
|
+
* // };
|
|
88
|
+
*
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @param StopKeyUsageCommandInput - {@link StopKeyUsageCommandInput}
|
|
92
|
+
* @returns {@link StopKeyUsageCommandOutput}
|
|
93
|
+
* @see {@link StopKeyUsageCommandInput} for command's `input` shape.
|
|
94
|
+
* @see {@link StopKeyUsageCommandOutput} for command's `response` shape.
|
|
95
|
+
* @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
98
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ConflictException} (client fault)
|
|
101
|
+
* <p>This request can cause an inconsistent state for the resource.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InternalServerException} (server fault)
|
|
104
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
107
|
+
* <p>The request was denied due to an invalid resource error.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
110
|
+
* <p>This request would cause a service quota to be exceeded.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
113
|
+
* <p>The service cannot complete the request.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
116
|
+
* <p>The request was denied due to request throttling.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ValidationException} (client fault)
|
|
119
|
+
* <p>The request was denied due to an invalid request error.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link PaymentCryptographyServiceException}
|
|
122
|
+
* <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
export declare class StopKeyUsageCommand extends $Command<StopKeyUsageCommandInput, StopKeyUsageCommandOutput, PaymentCryptographyClientResolvedConfig> {
|
|
126
|
+
readonly input: StopKeyUsageCommandInput;
|
|
127
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
constructor(input: StopKeyUsageCommandInput);
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopKeyUsageCommandInput, StopKeyUsageCommandOutput>;
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
private serialize;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
private deserialize;
|
|
144
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { TagResourceInput, TagResourceOutput } 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 TagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface TagResourceCommandInput extends TagResourceInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link TagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Adds or edits tags on an Amazon Web Services Payment Cryptography key.</p>
|
|
27
|
+
* <note>
|
|
28
|
+
* <p>Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.</p>
|
|
29
|
+
* </note>
|
|
30
|
+
* <p>Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with <a>CreateKey</a>.</p>
|
|
31
|
+
* <p>
|
|
32
|
+
* <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
|
|
33
|
+
* <p>
|
|
34
|
+
* <b>Related operations:</b>
|
|
35
|
+
* </p>
|
|
36
|
+
* <ul>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>
|
|
39
|
+
* <a>ListTagsForResource</a>
|
|
40
|
+
* </p>
|
|
41
|
+
* </li>
|
|
42
|
+
* <li>
|
|
43
|
+
* <p>
|
|
44
|
+
* <a>UntagResource</a>
|
|
45
|
+
* </p>
|
|
46
|
+
* </li>
|
|
47
|
+
* </ul>
|
|
48
|
+
* @example
|
|
49
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
+
* ```javascript
|
|
51
|
+
* import { PaymentCryptographyClient, TagResourceCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
|
|
52
|
+
* // const { PaymentCryptographyClient, TagResourceCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
|
|
53
|
+
* const client = new PaymentCryptographyClient(config);
|
|
54
|
+
* const input = { // TagResourceInput
|
|
55
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
56
|
+
* Tags: [ // Tags // required
|
|
57
|
+
* { // Tag
|
|
58
|
+
* Key: "STRING_VALUE", // required
|
|
59
|
+
* Value: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* };
|
|
63
|
+
* const command = new TagResourceCommand(input);
|
|
64
|
+
* const response = await client.send(command);
|
|
65
|
+
* // {};
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
|
|
70
|
+
* @returns {@link TagResourceCommandOutput}
|
|
71
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ConflictException} (client fault)
|
|
79
|
+
* <p>This request can cause an inconsistent state for the resource.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The request was denied due to an invalid resource error.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
88
|
+
* <p>This request would cause a service quota to be exceeded.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
91
|
+
* <p>The service cannot complete the request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
94
|
+
* <p>The request was denied due to request throttling.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ValidationException} (client fault)
|
|
97
|
+
* <p>The request was denied due to an invalid request error.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link PaymentCryptographyServiceException}
|
|
100
|
+
* <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, PaymentCryptographyClientResolvedConfig> {
|
|
104
|
+
readonly input: TagResourceCommandInput;
|
|
105
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
constructor(input: TagResourceCommandInput);
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
private serialize;
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
private deserialize;
|
|
122
|
+
}
|