@aws-sdk/client-cloud9 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/Cloud9.js +0 -70
- package/dist-cjs/Cloud9Client.js +0 -75
- package/dist-cjs/commands/CreateEnvironmentEC2Command.js +0 -26
- package/dist-cjs/commands/CreateEnvironmentMembershipCommand.js +0 -25
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +0 -26
- package/dist-cjs/commands/DeleteEnvironmentMembershipCommand.js +0 -25
- package/dist-cjs/commands/DescribeEnvironmentMembershipsCommand.js +0 -25
- package/dist-cjs/commands/DescribeEnvironmentStatusCommand.js +0 -25
- package/dist-cjs/commands/DescribeEnvironmentsCommand.js +0 -25
- package/dist-cjs/commands/ListEnvironmentsCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -29
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +0 -25
- package/dist-cjs/commands/UpdateEnvironmentMembershipCommand.js +0 -26
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -19
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -115
- package/dist-cjs/pagination/DescribeEnvironmentMembershipsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +6 -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/Cloud9.js +0 -1
- package/dist-es/Cloud9Client.js +0 -1
- package/dist-es/commands/CreateEnvironmentEC2Command.js +0 -1
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +0 -1
- package/dist-es/commands/DeleteEnvironmentCommand.js +0 -1
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +0 -1
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +0 -1
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +0 -1
- package/dist-es/commands/DescribeEnvironmentsCommand.js +0 -1
- package/dist-es/commands/ListEnvironmentsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateEnvironmentCommand.js +0 -1
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +0 -1
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -19
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeEnvironmentMembershipsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListEnvironmentsPaginator.js +0 -1
- package/dist-es/pagination/index.js +3 -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 +13 -0
- package/dist-types/index.d.ts +4 -18
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/Cloud9.d.ts +14 -115
- package/dist-types/ts3.4/Cloud9Client.d.ts +24 -155
- package/dist-types/ts3.4/commands/CreateEnvironmentEC2Command.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateEnvironmentMembershipCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteEnvironmentMembershipCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEnvironmentMembershipsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEnvironmentStatusCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEnvironmentsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEnvironmentMembershipCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +4 -18
- package/dist-types/ts3.4/models/models_0.d.ts +118 -629
- package/dist-types/ts3.4/pagination/index.d.ts +3 -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/Cloud9.js.map +0 -1
- package/dist-cjs/Cloud9Client.js.map +0 -1
- package/dist-cjs/commands/CreateEnvironmentEC2Command.js.map +0 -1
- package/dist-cjs/commands/CreateEnvironmentMembershipCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEnvironmentMembershipCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEnvironmentMembershipsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEnvironmentStatusCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEnvironmentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.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/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateEnvironmentMembershipCommand.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/DescribeEnvironmentMembershipsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListEnvironmentsPaginator.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/Cloud9.js.map +0 -1
- package/dist-es/Cloud9Client.js.map +0 -1
- package/dist-es/commands/CreateEnvironmentEC2Command.js.map +0 -1
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js.map +0 -1
- package/dist-es/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js.map +0 -1
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js.map +0 -1
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js.map +0 -1
- package/dist-es/commands/DescribeEnvironmentsCommand.js.map +0 -1
- package/dist-es/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.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/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.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/DescribeEnvironmentMembershipsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListEnvironmentsPaginator.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/Cloud9.ts +0 -552
- package/src/Cloud9Client.ts +0 -365
- package/src/commands/CreateEnvironmentEC2Command.ts +0 -96
- package/src/commands/CreateEnvironmentMembershipCommand.ts +0 -98
- package/src/commands/DeleteEnvironmentCommand.ts +0 -96
- package/src/commands/DeleteEnvironmentMembershipCommand.ts +0 -98
- package/src/commands/DescribeEnvironmentMembershipsCommand.ts +0 -103
- package/src/commands/DescribeEnvironmentStatusCommand.ts +0 -98
- package/src/commands/DescribeEnvironmentsCommand.ts +0 -95
- package/src/commands/ListEnvironmentsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -99
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateEnvironmentCommand.ts +0 -95
- package/src/commands/UpdateEnvironmentMembershipCommand.ts +0 -99
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -19
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1187
- package/src/pagination/DescribeEnvironmentMembershipsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListEnvironmentsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2189
- 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 { Cloud9 } from "../Cloud9";
|
|
4
|
-
import { Cloud9Client } from "../Cloud9Client";
|
|
5
|
-
import {
|
|
6
|
-
DescribeEnvironmentMembershipsCommand,
|
|
7
|
-
DescribeEnvironmentMembershipsCommandInput,
|
|
8
|
-
DescribeEnvironmentMembershipsCommandOutput,
|
|
9
|
-
} from "../commands/DescribeEnvironmentMembershipsCommand";
|
|
10
|
-
import { Cloud9PaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: Cloud9Client,
|
|
17
|
-
input: DescribeEnvironmentMembershipsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeEnvironmentMembershipsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeEnvironmentMembershipsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Cloud9,
|
|
28
|
-
input: DescribeEnvironmentMembershipsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeEnvironmentMembershipsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeEnvironmentMemberships(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeEnvironmentMemberships(
|
|
35
|
-
config: Cloud9PaginationConfiguration,
|
|
36
|
-
input: DescribeEnvironmentMembershipsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeEnvironmentMembershipsCommandOutput> {
|
|
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: DescribeEnvironmentMembershipsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Cloud9) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof Cloud9Client) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Cloud9 | Cloud9Client");
|
|
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 { Cloud9 } from "../Cloud9";
|
|
4
|
-
import { Cloud9Client } from "../Cloud9Client";
|
|
5
|
-
|
|
6
|
-
export interface Cloud9PaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: Cloud9 | Cloud9Client;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Cloud9 } from "../Cloud9";
|
|
4
|
-
import { Cloud9Client } from "../Cloud9Client";
|
|
5
|
-
import {
|
|
6
|
-
ListEnvironmentsCommand,
|
|
7
|
-
ListEnvironmentsCommandInput,
|
|
8
|
-
ListEnvironmentsCommandOutput,
|
|
9
|
-
} from "../commands/ListEnvironmentsCommand";
|
|
10
|
-
import { Cloud9PaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: Cloud9Client,
|
|
17
|
-
input: ListEnvironmentsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEnvironmentsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEnvironmentsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Cloud9,
|
|
28
|
-
input: ListEnvironmentsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEnvironmentsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEnvironments(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEnvironments(
|
|
35
|
-
config: Cloud9PaginationConfiguration,
|
|
36
|
-
input: ListEnvironmentsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEnvironmentsCommandOutput> {
|
|
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: ListEnvironmentsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Cloud9) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof Cloud9Client) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Cloud9 | Cloud9Client");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|