@aws-sdk/client-cloudhsm-v2 3.477.0 → 3.481.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/dist-cjs/commands/CopyBackupToRegionCommand.js +18 -41
- package/dist-cjs/commands/CreateClusterCommand.js +18 -41
- package/dist-cjs/commands/CreateHsmCommand.js +18 -41
- package/dist-cjs/commands/DeleteBackupCommand.js +18 -41
- package/dist-cjs/commands/DeleteClusterCommand.js +18 -41
- package/dist-cjs/commands/DeleteHsmCommand.js +18 -41
- package/dist-cjs/commands/DescribeBackupsCommand.js +18 -41
- package/dist-cjs/commands/DescribeClustersCommand.js +18 -41
- package/dist-cjs/commands/InitializeClusterCommand.js +18 -41
- package/dist-cjs/commands/ListTagsCommand.js +18 -41
- package/dist-cjs/commands/ModifyBackupAttributesCommand.js +18 -41
- package/dist-cjs/commands/ModifyClusterCommand.js +18 -41
- package/dist-cjs/commands/RestoreBackupCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeBackupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClustersPaginator.js +2 -24
- package/dist-cjs/pagination/ListTagsPaginator.js +2 -24
- package/dist-es/commands/CopyBackupToRegionCommand.js +18 -41
- package/dist-es/commands/CreateClusterCommand.js +18 -41
- package/dist-es/commands/CreateHsmCommand.js +18 -41
- package/dist-es/commands/DeleteBackupCommand.js +18 -41
- package/dist-es/commands/DeleteClusterCommand.js +18 -41
- package/dist-es/commands/DeleteHsmCommand.js +18 -41
- package/dist-es/commands/DescribeBackupsCommand.js +18 -41
- package/dist-es/commands/DescribeClustersCommand.js +18 -41
- package/dist-es/commands/InitializeClusterCommand.js +18 -41
- package/dist-es/commands/ListTagsCommand.js +18 -41
- package/dist-es/commands/ModifyBackupAttributesCommand.js +18 -41
- package/dist-es/commands/ModifyClusterCommand.js +18 -41
- package/dist-es/commands/RestoreBackupCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeBackupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClustersPaginator.js +2 -23
- package/dist-es/pagination/ListTagsPaginator.js +2 -23
- package/dist-types/commands/CopyBackupToRegionCommand.d.ts +6 -21
- package/dist-types/commands/CreateClusterCommand.d.ts +6 -21
- package/dist-types/commands/CreateHsmCommand.d.ts +6 -21
- package/dist-types/commands/DeleteBackupCommand.d.ts +6 -21
- package/dist-types/commands/DeleteClusterCommand.d.ts +6 -21
- package/dist-types/commands/DeleteHsmCommand.d.ts +6 -21
- package/dist-types/commands/DescribeBackupsCommand.d.ts +6 -21
- package/dist-types/commands/DescribeClustersCommand.d.ts +6 -21
- package/dist-types/commands/InitializeClusterCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsCommand.d.ts +6 -21
- package/dist-types/commands/ModifyBackupAttributesCommand.d.ts +6 -21
- package/dist-types/commands/ModifyClusterCommand.d.ts +6 -21
- package/dist-types/commands/RestoreBackupCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeBackupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClustersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTagsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CopyBackupToRegionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateHsmCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteHsmCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeBackupsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/InitializeClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ModifyBackupAttributesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ModifyClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RestoreBackupCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeBackupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTagsPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ModifyBackupAttributesCommand, se_ModifyBackupAttributesCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ModifyBackupAttributesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "CloudHSMV2Client";
|
|
26
|
-
const commandName = "ModifyBackupAttributesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "BaldrApiService",
|
|
35
|
-
operation: "ModifyBackupAttributes",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ModifyBackupAttributesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ModifyBackupAttributesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ModifyBackupAttributesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("BaldrApiService", "ModifyBackupAttributes", {})
|
|
19
|
+
.n("CloudHSMV2Client", "ModifyBackupAttributesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ModifyBackupAttributesCommand)
|
|
22
|
+
.de(de_ModifyBackupAttributesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ModifyClusterCommand, se_ModifyClusterCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ModifyClusterCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "CloudHSMV2Client";
|
|
26
|
-
const commandName = "ModifyClusterCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "BaldrApiService",
|
|
35
|
-
operation: "ModifyCluster",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ModifyClusterCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ModifyClusterCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ModifyClusterCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("BaldrApiService", "ModifyCluster", {})
|
|
19
|
+
.n("CloudHSMV2Client", "ModifyClusterCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ModifyClusterCommand)
|
|
22
|
+
.de(de_ModifyClusterCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_RestoreBackupCommand, se_RestoreBackupCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class RestoreBackupCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "CloudHSMV2Client";
|
|
26
|
-
const commandName = "RestoreBackupCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "BaldrApiService",
|
|
35
|
-
operation: "RestoreBackup",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_RestoreBackupCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_RestoreBackupCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class RestoreBackupCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("BaldrApiService", "RestoreBackup", {})
|
|
19
|
+
.n("CloudHSMV2Client", "RestoreBackupCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_RestoreBackupCommand)
|
|
22
|
+
.de(de_RestoreBackupCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class TagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "CloudHSMV2Client";
|
|
26
|
-
const commandName = "TagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "BaldrApiService",
|
|
35
|
-
operation: "TagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_TagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_TagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("BaldrApiService", "TagResource", {})
|
|
19
|
+
.n("CloudHSMV2Client", "TagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_TagResourceCommand)
|
|
22
|
+
.de(de_TagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UntagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "CloudHSMV2Client";
|
|
26
|
-
const commandName = "UntagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "BaldrApiService",
|
|
35
|
-
operation: "UntagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UntagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UntagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("BaldrApiService", "UntagResource", {})
|
|
19
|
+
.n("CloudHSMV2Client", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "cloudhsm",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
2
3
|
import { DescribeBackupsCommand, } from "../commands/DescribeBackupsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBackupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBackups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudHSMV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudHSMV2 | CloudHSMV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeBackups = createPaginator(CloudHSMV2Client, DescribeBackupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
2
3
|
import { DescribeClustersCommand, } from "../commands/DescribeClustersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClustersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusters(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudHSMV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudHSMV2 | CloudHSMV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusters = createPaginator(CloudHSMV2Client, DescribeClustersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
2
3
|
import { ListTagsCommand } from "../commands/ListTagsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTagsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTags(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudHSMV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudHSMV2 | CloudHSMV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListTags = createPaginator(CloudHSMV2Client, ListTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
|
|
5
4
|
import { CopyBackupToRegionRequest, CopyBackupToRegionResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CopyBackupToRegionCommandInput extends CopyBackupToRegionReques
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CopyBackupToRegionCommandOutput extends CopyBackupToRegionResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CopyBackupToRegionCommand_base: {
|
|
24
|
+
new (input: CopyBackupToRegionCommandInput): import("@smithy/smithy-client").CommandImpl<CopyBackupToRegionCommandInput, CopyBackupToRegionCommandOutput, CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Copy an AWS CloudHSM cluster backup to a different region.</p>
|
|
@@ -84,23 +87,5 @@ export interface CopyBackupToRegionCommandOutput extends CopyBackupToRegionRespo
|
|
|
84
87
|
* <p>Base exception class for all service exceptions from CloudHSMV2 service.</p>
|
|
85
88
|
*
|
|
86
89
|
*/
|
|
87
|
-
export declare class CopyBackupToRegionCommand extends
|
|
88
|
-
readonly input: CopyBackupToRegionCommandInput;
|
|
89
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
-
/**
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
constructor(input: CopyBackupToRegionCommandInput);
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CopyBackupToRegionCommandInput, CopyBackupToRegionCommandOutput>;
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
private serialize;
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
private deserialize;
|
|
90
|
+
export declare class CopyBackupToRegionCommand extends CopyBackupToRegionCommand_base {
|
|
106
91
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
|
|
5
4
|
import { CreateClusterRequest, CreateClusterResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateClusterCommandInput extends CreateClusterRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateClusterCommandOutput extends CreateClusterResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateClusterCommand_base: {
|
|
24
|
+
new (input: CreateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a new AWS CloudHSM cluster.</p>
|
|
@@ -129,23 +132,5 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
|
|
|
129
132
|
* <p>Base exception class for all service exceptions from CloudHSMV2 service.</p>
|
|
130
133
|
*
|
|
131
134
|
*/
|
|
132
|
-
export declare class CreateClusterCommand extends
|
|
133
|
-
readonly input: CreateClusterCommandInput;
|
|
134
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
135
|
-
/**
|
|
136
|
-
* @public
|
|
137
|
-
*/
|
|
138
|
-
constructor(input: CreateClusterCommandInput);
|
|
139
|
-
/**
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
142
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateClusterCommandInput, CreateClusterCommandOutput>;
|
|
143
|
-
/**
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
private serialize;
|
|
147
|
-
/**
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
150
|
-
private deserialize;
|
|
135
|
+
export declare class CreateClusterCommand extends CreateClusterCommand_base {
|
|
151
136
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
|
|
5
4
|
import { CreateHsmRequest, CreateHsmResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateHsmCommandInput extends CreateHsmRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateHsmCommand_base: {
|
|
24
|
+
new (input: CreateHsmCommandInput): import("@smithy/smithy-client").CommandImpl<CreateHsmCommandInput, CreateHsmCommandOutput, CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a new hardware security module (HSM) in the specified AWS CloudHSM
|
|
@@ -81,23 +84,5 @@ export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBea
|
|
|
81
84
|
* <p>Base exception class for all service exceptions from CloudHSMV2 service.</p>
|
|
82
85
|
*
|
|
83
86
|
*/
|
|
84
|
-
export declare class CreateHsmCommand extends
|
|
85
|
-
readonly input: CreateHsmCommandInput;
|
|
86
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
87
|
-
/**
|
|
88
|
-
* @public
|
|
89
|
-
*/
|
|
90
|
-
constructor(input: CreateHsmCommandInput);
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateHsmCommandInput, CreateHsmCommandOutput>;
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
private serialize;
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
private deserialize;
|
|
87
|
+
export declare class CreateHsmCommand extends CreateHsmCommand_base {
|
|
103
88
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
|
|
5
4
|
import { DeleteBackupRequest, DeleteBackupResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface DeleteBackupCommandInput extends DeleteBackupRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface DeleteBackupCommandOutput extends DeleteBackupResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const DeleteBackupCommand_base: {
|
|
24
|
+
new (input: DeleteBackupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBackupCommandInput, DeleteBackupCommandOutput, CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Deletes a specified AWS CloudHSM backup. A backup can be restored up to 7 days
|
|
@@ -88,23 +91,5 @@ export interface DeleteBackupCommandOutput extends DeleteBackupResponse, __Metad
|
|
|
88
91
|
* <p>Base exception class for all service exceptions from CloudHSMV2 service.</p>
|
|
89
92
|
*
|
|
90
93
|
*/
|
|
91
|
-
export declare class DeleteBackupCommand extends
|
|
92
|
-
readonly input: DeleteBackupCommandInput;
|
|
93
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
94
|
-
/**
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
constructor(input: DeleteBackupCommandInput);
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBackupCommandInput, DeleteBackupCommandOutput>;
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
private serialize;
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
|
-
private deserialize;
|
|
94
|
+
export declare class DeleteBackupCommand extends DeleteBackupCommand_base {
|
|
110
95
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
|
|
5
4
|
import { DeleteClusterRequest, DeleteClusterResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface DeleteClusterCommandInput extends DeleteClusterRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const DeleteClusterCommand_base: {
|
|
24
|
+
new (input: DeleteClusterCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteClusterCommandInput, DeleteClusterCommandOutput, CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must
|
|
@@ -116,23 +119,5 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
|
|
|
116
119
|
* <p>Base exception class for all service exceptions from CloudHSMV2 service.</p>
|
|
117
120
|
*
|
|
118
121
|
*/
|
|
119
|
-
export declare class DeleteClusterCommand extends
|
|
120
|
-
readonly input: DeleteClusterCommandInput;
|
|
121
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
122
|
-
/**
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
constructor(input: DeleteClusterCommandInput);
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudHSMV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteClusterCommandInput, DeleteClusterCommandOutput>;
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
133
|
-
private serialize;
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
*/
|
|
137
|
-
private deserialize;
|
|
122
|
+
export declare class DeleteClusterCommand extends DeleteClusterCommand_base {
|
|
138
123
|
}
|