@aws-sdk/client-cloudhsm-v2 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/CloudHSMV2.js +0 -5
- package/dist-cjs/CloudHSMV2Client.js +0 -10
- package/dist-cjs/commands/CopyBackupToRegionCommand.js +0 -25
- package/dist-cjs/commands/CreateClusterCommand.js +0 -25
- package/dist-cjs/commands/CreateHsmCommand.js +0 -26
- package/dist-cjs/commands/DeleteBackupCommand.js +0 -27
- package/dist-cjs/commands/DeleteClusterCommand.js +0 -26
- package/dist-cjs/commands/DeleteHsmCommand.js +0 -27
- package/dist-cjs/commands/DescribeBackupsCommand.js +0 -30
- package/dist-cjs/commands/DescribeClustersCommand.js +0 -30
- package/dist-cjs/commands/InitializeClusterCommand.js +0 -28
- package/dist-cjs/commands/ListTagsCommand.js +0 -30
- package/dist-cjs/commands/ModifyBackupAttributesCommand.js +0 -25
- package/dist-cjs/commands/ModifyClusterCommand.js +0 -25
- package/dist-cjs/commands/RestoreBackupCommand.js +0 -27
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/index.js +18 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -22
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -130
- package/dist-cjs/pagination/DescribeBackupsPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeClustersPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListTagsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/CloudHSMV2.js +0 -1
- package/dist-es/CloudHSMV2Client.js +0 -1
- package/dist-es/commands/CopyBackupToRegionCommand.js +0 -1
- package/dist-es/commands/CreateClusterCommand.js +0 -1
- package/dist-es/commands/CreateHsmCommand.js +0 -1
- package/dist-es/commands/DeleteBackupCommand.js +0 -1
- package/dist-es/commands/DeleteClusterCommand.js +0 -1
- package/dist-es/commands/DeleteHsmCommand.js +0 -1
- package/dist-es/commands/DescribeBackupsCommand.js +0 -1
- package/dist-es/commands/DescribeClustersCommand.js +0 -1
- package/dist-es/commands/InitializeClusterCommand.js +0 -1
- package/dist-es/commands/ListTagsCommand.js +0 -1
- package/dist-es/commands/ModifyBackupAttributesCommand.js +0 -1
- package/dist-es/commands/ModifyClusterCommand.js +0 -1
- package/dist-es/commands/RestoreBackupCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/index.js +15 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -22
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeBackupsPaginator.js +0 -1
- package/dist-es/pagination/DescribeClustersPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListTagsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/index.d.ts +4 -21
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/CloudHSMV2.d.ts +16 -75
- package/dist-types/ts3.4/CloudHSMV2Client.d.ts +24 -90
- package/dist-types/ts3.4/commands/CopyBackupToRegionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateHsmCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteHsmCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeBackupsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/InitializeClusterCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ModifyBackupAttributesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ModifyClusterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/RestoreBackupCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/index.d.ts +4 -21
- package/dist-types/ts3.4/models/models_0.d.ts +159 -565
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/CloudHSMV2.js.map +0 -1
- package/dist-cjs/CloudHSMV2Client.js.map +0 -1
- package/dist-cjs/commands/CopyBackupToRegionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateClusterCommand.js.map +0 -1
- package/dist-cjs/commands/CreateHsmCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteBackupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteClusterCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteHsmCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeBackupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeClustersCommand.js.map +0 -1
- package/dist-cjs/commands/InitializeClusterCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyBackupAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyClusterCommand.js.map +0 -1
- package/dist-cjs/commands/RestoreBackupCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeBackupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeClustersPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListTagsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/CloudHSMV2.js.map +0 -1
- package/dist-es/CloudHSMV2Client.js.map +0 -1
- package/dist-es/commands/CopyBackupToRegionCommand.js.map +0 -1
- package/dist-es/commands/CreateClusterCommand.js.map +0 -1
- package/dist-es/commands/CreateHsmCommand.js.map +0 -1
- package/dist-es/commands/DeleteBackupCommand.js.map +0 -1
- package/dist-es/commands/DeleteClusterCommand.js.map +0 -1
- package/dist-es/commands/DeleteHsmCommand.js.map +0 -1
- package/dist-es/commands/DescribeBackupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeClustersCommand.js.map +0 -1
- package/dist-es/commands/InitializeClusterCommand.js.map +0 -1
- package/dist-es/commands/ListTagsCommand.js.map +0 -1
- package/dist-es/commands/ModifyBackupAttributesCommand.js.map +0 -1
- package/dist-es/commands/ModifyClusterCommand.js.map +0 -1
- package/dist-es/commands/RestoreBackupCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeBackupsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeClustersPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListTagsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/CloudHSMV2.ts +0 -547
- package/src/CloudHSMV2Client.ts +0 -285
- package/src/commands/CopyBackupToRegionCommand.ts +0 -95
- package/src/commands/CreateClusterCommand.ts +0 -95
- package/src/commands/CreateHsmCommand.ts +0 -93
- package/src/commands/DeleteBackupCommand.ts +0 -97
- package/src/commands/DeleteClusterCommand.ts +0 -96
- package/src/commands/DeleteHsmCommand.ts +0 -94
- package/src/commands/DescribeBackupsCommand.ts +0 -100
- package/src/commands/DescribeClustersCommand.ts +0 -100
- package/src/commands/InitializeClusterCommand.ts +0 -98
- package/src/commands/ListTagsCommand.ts +0 -97
- package/src/commands/ModifyBackupAttributesCommand.ts +0 -95
- package/src/commands/ModifyClusterCommand.ts +0 -95
- package/src/commands/RestoreBackupCommand.ts +0 -97
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -22
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1175
- package/src/pagination/DescribeBackupsPaginator.ts +0 -59
- package/src/pagination/DescribeClustersPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListTagsPaginator.ts +0 -55
- package/src/protocols/Aws_json1_1.ts +0 -2363
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CloudHSMV2 } from "../CloudHSMV2";
|
|
4
|
-
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
5
|
-
import {
|
|
6
|
-
DescribeBackupsCommand,
|
|
7
|
-
DescribeBackupsCommandInput,
|
|
8
|
-
DescribeBackupsCommandOutput,
|
|
9
|
-
} from "../commands/DescribeBackupsCommand";
|
|
10
|
-
import { CloudHSMV2PaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CloudHSMV2Client,
|
|
17
|
-
input: DescribeBackupsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeBackupsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeBackupsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CloudHSMV2,
|
|
28
|
-
input: DescribeBackupsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeBackupsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeBackups(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeBackups(
|
|
35
|
-
config: CloudHSMV2PaginationConfiguration,
|
|
36
|
-
input: DescribeBackupsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeBackupsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: DescribeBackupsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof CloudHSMV2) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof CloudHSMV2Client) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected CloudHSMV2 | CloudHSMV2Client");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CloudHSMV2 } from "../CloudHSMV2";
|
|
4
|
-
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
5
|
-
import {
|
|
6
|
-
DescribeClustersCommand,
|
|
7
|
-
DescribeClustersCommandInput,
|
|
8
|
-
DescribeClustersCommandOutput,
|
|
9
|
-
} from "../commands/DescribeClustersCommand";
|
|
10
|
-
import { CloudHSMV2PaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CloudHSMV2Client,
|
|
17
|
-
input: DescribeClustersCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeClustersCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeClustersCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CloudHSMV2,
|
|
28
|
-
input: DescribeClustersCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeClustersCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeClusters(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeClusters(
|
|
35
|
-
config: CloudHSMV2PaginationConfiguration,
|
|
36
|
-
input: DescribeClustersCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeClustersCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: DescribeClustersCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof CloudHSMV2) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof CloudHSMV2Client) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected CloudHSMV2 | CloudHSMV2Client");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CloudHSMV2 } from "../CloudHSMV2";
|
|
4
|
-
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
5
|
-
|
|
6
|
-
export interface CloudHSMV2PaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: CloudHSMV2 | CloudHSMV2Client;
|
|
8
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CloudHSMV2 } from "../CloudHSMV2";
|
|
4
|
-
import { CloudHSMV2Client } from "../CloudHSMV2Client";
|
|
5
|
-
import { ListTagsCommand, ListTagsCommandInput, ListTagsCommandOutput } from "../commands/ListTagsCommand";
|
|
6
|
-
import { CloudHSMV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: CloudHSMV2Client,
|
|
13
|
-
input: ListTagsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListTagsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListTagsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: CloudHSMV2,
|
|
24
|
-
input: ListTagsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListTagsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listTags(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListTags(
|
|
31
|
-
config: CloudHSMV2PaginationConfiguration,
|
|
32
|
-
input: ListTagsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListTagsCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListTagsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof CloudHSMV2) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof CloudHSMV2Client) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected CloudHSMV2 | CloudHSMV2Client");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|