@aws-sdk/client-launch-wizard 3.443.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 +272 -0
- package/dist-cjs/LaunchWizard.js +27 -0
- package/dist-cjs/LaunchWizardClient.js +43 -0
- package/dist-cjs/commands/CreateDeploymentCommand.js +52 -0
- package/dist-cjs/commands/DeleteDeploymentCommand.js +51 -0
- package/dist-cjs/commands/GetDeploymentCommand.js +52 -0
- package/dist-cjs/commands/GetWorkloadCommand.js +51 -0
- package/dist-cjs/commands/ListDeploymentEventsCommand.js +51 -0
- package/dist-cjs/commands/ListDeploymentsCommand.js +51 -0
- package/dist-cjs/commands/ListWorkloadDeploymentPatternsCommand.js +51 -0
- package/dist-cjs/commands/ListWorkloadsCommand.js +51 -0
- package/dist-cjs/commands/index.js +11 -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/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/LaunchWizardServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +109 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListDeploymentEventsPaginator.js +29 -0
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkloadDeploymentPatternsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkloadsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +661 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/LaunchWizard.js +23 -0
- package/dist-es/LaunchWizardClient.js +39 -0
- package/dist-es/commands/CreateDeploymentCommand.js +48 -0
- package/dist-es/commands/DeleteDeploymentCommand.js +47 -0
- package/dist-es/commands/GetDeploymentCommand.js +48 -0
- package/dist-es/commands/GetWorkloadCommand.js +47 -0
- package/dist-es/commands/ListDeploymentEventsCommand.js +47 -0
- package/dist-es/commands/ListDeploymentsCommand.js +47 -0
- package/dist-es/commands/ListWorkloadDeploymentPatternsCommand.js +47 -0
- package/dist-es/commands/ListWorkloadsCommand.js +47 -0
- package/dist-es/commands/index.js +8 -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/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/LaunchWizardServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +99 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDeploymentEventsPaginator.js +25 -0
- package/dist-es/pagination/ListDeploymentsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkloadDeploymentPatternsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkloadsPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +642 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/LaunchWizard.d.ts +69 -0
- package/dist-types/LaunchWizardClient.d.ts +180 -0
- package/dist-types/commands/CreateDeploymentCommand.d.ts +95 -0
- package/dist-types/commands/DeleteDeploymentCommand.d.ts +84 -0
- package/dist-types/commands/GetDeploymentCommand.d.ts +95 -0
- package/dist-types/commands/GetWorkloadCommand.d.ts +91 -0
- package/dist-types/commands/ListDeploymentEventsCommand.d.ts +94 -0
- package/dist-types/commands/ListDeploymentsCommand.d.ts +99 -0
- package/dist-types/commands/ListWorkloadDeploymentPatternsCommand.d.ts +96 -0
- package/dist-types/commands/ListWorkloadsCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/LaunchWizardServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +652 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDeploymentEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDeploymentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkloadsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/LaunchWizard.d.ts +143 -0
- package/dist-types/ts3.4/LaunchWizardClient.d.ts +167 -0
- package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWorkloadCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListDeploymentEventsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWorkloadDeploymentPatternsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -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/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +8 -0
- package/dist-types/ts3.4/models/LaunchWizardServiceException.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 +201 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListDeploymentEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +102 -0
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./LaunchWizardClient";
|
|
2
|
+
export * from "./LaunchWizard";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
import "@aws-sdk/util-endpoints";
|
|
7
|
+
export { LaunchWizardServiceException } from "./models/LaunchWizardServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class LaunchWizardServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, LaunchWizardServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { LaunchWizardServiceException as __BaseException } from "./LaunchWizardServiceException";
|
|
3
|
+
export class InternalServerException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "InternalServerException",
|
|
7
|
+
$fault: "server",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "InternalServerException";
|
|
11
|
+
this.$fault = "server";
|
|
12
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class ResourceLimitException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ResourceLimitException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ResourceLimitException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ResourceLimitException.prototype);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "ResourceNotFoundException",
|
|
31
|
+
$fault: "client",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "ResourceNotFoundException";
|
|
35
|
+
this.$fault = "client";
|
|
36
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class ValidationException extends __BaseException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "ValidationException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "ValidationException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export const DeploymentStatus = {
|
|
52
|
+
COMPLETED: "COMPLETED",
|
|
53
|
+
CREATING: "CREATING",
|
|
54
|
+
DELETED: "DELETED",
|
|
55
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
56
|
+
DELETE_INITIATING: "DELETE_INITIATING",
|
|
57
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
58
|
+
FAILED: "FAILED",
|
|
59
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
60
|
+
VALIDATING: "VALIDATING",
|
|
61
|
+
};
|
|
62
|
+
export const EventStatus = {
|
|
63
|
+
CANCELED: "CANCELED",
|
|
64
|
+
CANCELING: "CANCELING",
|
|
65
|
+
COMPLETED: "COMPLETED",
|
|
66
|
+
CREATED: "CREATED",
|
|
67
|
+
FAILED: "FAILED",
|
|
68
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
69
|
+
PENDING: "PENDING",
|
|
70
|
+
TIMED_OUT: "TIMED_OUT",
|
|
71
|
+
};
|
|
72
|
+
export const DeploymentFilterKey = {
|
|
73
|
+
DEPLOYMENT_STATUS: "DEPLOYMENT_STATUS",
|
|
74
|
+
WORKLOAD_NAME: "WORKLOAD_NAME",
|
|
75
|
+
};
|
|
76
|
+
export const WorkloadStatus = {
|
|
77
|
+
ACTIVE: "ACTIVE",
|
|
78
|
+
DELETED: "DELETED",
|
|
79
|
+
DISABLED: "DISABLED",
|
|
80
|
+
INACTIVE: "INACTIVE",
|
|
81
|
+
};
|
|
82
|
+
export const WorkloadDeploymentPatternStatus = {
|
|
83
|
+
ACTIVE: "ACTIVE",
|
|
84
|
+
DELETED: "DELETED",
|
|
85
|
+
DISABLED: "DISABLED",
|
|
86
|
+
INACTIVE: "INACTIVE",
|
|
87
|
+
};
|
|
88
|
+
export const CreateDeploymentInputFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
...(obj.specifications && { specifications: SENSITIVE_STRING }),
|
|
91
|
+
});
|
|
92
|
+
export const DeploymentDataFilterSensitiveLog = (obj) => ({
|
|
93
|
+
...obj,
|
|
94
|
+
...(obj.specifications && { specifications: SENSITIVE_STRING }),
|
|
95
|
+
});
|
|
96
|
+
export const GetDeploymentOutputFilterSensitiveLog = (obj) => ({
|
|
97
|
+
...obj,
|
|
98
|
+
...(obj.deployment && { deployment: DeploymentDataFilterSensitiveLog(obj.deployment) }),
|
|
99
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListDeploymentEventsCommand, } from "../commands/ListDeploymentEventsCommand";
|
|
2
|
+
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListDeploymentEventsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListDeploymentEvents(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 LaunchWizardClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
|
|
2
|
+
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListDeploymentsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListDeployments(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 LaunchWizardClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWorkloadDeploymentPatternsCommand, } from "../commands/ListWorkloadDeploymentPatternsCommand";
|
|
2
|
+
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkloadDeploymentPatternsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkloadDeploymentPatterns(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 LaunchWizardClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWorkloadsCommand, } from "../commands/ListWorkloadsCommand";
|
|
2
|
+
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkloadsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkloads(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 LaunchWizardClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|