Skip to content

Commit 5126f41

Browse files
author
awstools
committed
feat(client-launch-wizard): Added UpdateDeployment, ListDeploymentPatternVersions and GetDeploymentPatternVersion APIs for Launch Wizard
1 parent e0212a1 commit 5126f41

29 files changed

Lines changed: 1736 additions & 252 deletions

clients/client-launch-wizard/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
AWS SDK for JavaScript LaunchWizard Client for Node.js, Browser and React Native.
88

9-
<p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for
10-
third party applications, such as Microsoft SQL Server Always On and HANA based SAP
11-
systems, without the need to manually identify and provision individual Amazon Web Services
12-
resources.</p>
9+
<p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually identify and provision individual Amazon Web Services resources.</p>
1310

1411
## Installing
1512
To install this package, simply type add or install @aws-sdk/client-launch-wizard
@@ -225,6 +222,13 @@ GetDeployment
225222
</details>
226223
<details>
227224
<summary>
225+
GetDeploymentPatternVersion
226+
</summary>
227+
228+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/GetDeploymentPatternVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetDeploymentPatternVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetDeploymentPatternVersionCommandOutput/)
229+
</details>
230+
<details>
231+
<summary>
228232
GetWorkload
229233
</summary>
230234

@@ -246,6 +250,13 @@ ListDeploymentEvents
246250
</details>
247251
<details>
248252
<summary>
253+
ListDeploymentPatternVersions
254+
</summary>
255+
256+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListDeploymentPatternVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListDeploymentPatternVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListDeploymentPatternVersionsCommandOutput/)
257+
</details>
258+
<details>
259+
<summary>
249260
ListDeployments
250261
</summary>
251262

@@ -286,3 +297,10 @@ UntagResource
286297

287298
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/UntagResourceCommandOutput/)
288299
</details>
300+
<details>
301+
<summary>
302+
UpdateDeployment
303+
</summary>
304+
305+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/UpdateDeploymentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/UpdateDeploymentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/UpdateDeploymentCommandOutput/)
306+
</details>

clients/client-launch-wizard/src/LaunchWizard.ts

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import {
1717
GetDeploymentCommandInput,
1818
GetDeploymentCommandOutput,
1919
} from "./commands/GetDeploymentCommand";
20+
import {
21+
GetDeploymentPatternVersionCommand,
22+
GetDeploymentPatternVersionCommandInput,
23+
GetDeploymentPatternVersionCommandOutput,
24+
} from "./commands/GetDeploymentPatternVersionCommand";
2025
import { GetWorkloadCommand, GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
2126
import {
2227
GetWorkloadDeploymentPatternCommand,
@@ -28,6 +33,11 @@ import {
2833
ListDeploymentEventsCommandInput,
2934
ListDeploymentEventsCommandOutput,
3035
} from "./commands/ListDeploymentEventsCommand";
36+
import {
37+
ListDeploymentPatternVersionsCommand,
38+
ListDeploymentPatternVersionsCommandInput,
39+
ListDeploymentPatternVersionsCommandOutput,
40+
} from "./commands/ListDeploymentPatternVersionsCommand";
3141
import {
3242
ListDeploymentsCommand,
3343
ListDeploymentsCommandInput,
@@ -54,21 +64,29 @@ import {
5464
UntagResourceCommandInput,
5565
UntagResourceCommandOutput,
5666
} from "./commands/UntagResourceCommand";
67+
import {
68+
UpdateDeploymentCommand,
69+
UpdateDeploymentCommandInput,
70+
UpdateDeploymentCommandOutput,
71+
} from "./commands/UpdateDeploymentCommand";
5772
import { LaunchWizardClient } from "./LaunchWizardClient";
5873

5974
const commands = {
6075
CreateDeploymentCommand,
6176
DeleteDeploymentCommand,
6277
GetDeploymentCommand,
78+
GetDeploymentPatternVersionCommand,
6379
GetWorkloadCommand,
6480
GetWorkloadDeploymentPatternCommand,
6581
ListDeploymentEventsCommand,
82+
ListDeploymentPatternVersionsCommand,
6683
ListDeploymentsCommand,
6784
ListTagsForResourceCommand,
6885
ListWorkloadDeploymentPatternsCommand,
6986
ListWorkloadsCommand,
7087
TagResourceCommand,
7188
UntagResourceCommand,
89+
UpdateDeploymentCommand,
7290
};
7391

7492
export interface LaunchWizard {
@@ -123,6 +141,23 @@ export interface LaunchWizard {
123141
cb: (err: any, data?: GetDeploymentCommandOutput) => void
124142
): void;
125143

144+
/**
145+
* @see {@link GetDeploymentPatternVersionCommand}
146+
*/
147+
getDeploymentPatternVersion(
148+
args: GetDeploymentPatternVersionCommandInput,
149+
options?: __HttpHandlerOptions
150+
): Promise<GetDeploymentPatternVersionCommandOutput>;
151+
getDeploymentPatternVersion(
152+
args: GetDeploymentPatternVersionCommandInput,
153+
cb: (err: any, data?: GetDeploymentPatternVersionCommandOutput) => void
154+
): void;
155+
getDeploymentPatternVersion(
156+
args: GetDeploymentPatternVersionCommandInput,
157+
options: __HttpHandlerOptions,
158+
cb: (err: any, data?: GetDeploymentPatternVersionCommandOutput) => void
159+
): void;
160+
126161
/**
127162
* @see {@link GetWorkloadCommand}
128163
*/
@@ -174,6 +209,23 @@ export interface LaunchWizard {
174209
cb: (err: any, data?: ListDeploymentEventsCommandOutput) => void
175210
): void;
176211

212+
/**
213+
* @see {@link ListDeploymentPatternVersionsCommand}
214+
*/
215+
listDeploymentPatternVersions(
216+
args: ListDeploymentPatternVersionsCommandInput,
217+
options?: __HttpHandlerOptions
218+
): Promise<ListDeploymentPatternVersionsCommandOutput>;
219+
listDeploymentPatternVersions(
220+
args: ListDeploymentPatternVersionsCommandInput,
221+
cb: (err: any, data?: ListDeploymentPatternVersionsCommandOutput) => void
222+
): void;
223+
listDeploymentPatternVersions(
224+
args: ListDeploymentPatternVersionsCommandInput,
225+
options: __HttpHandlerOptions,
226+
cb: (err: any, data?: ListDeploymentPatternVersionsCommandOutput) => void
227+
): void;
228+
177229
/**
178230
* @see {@link ListDeploymentsCommand}
179231
*/
@@ -277,13 +329,27 @@ export interface LaunchWizard {
277329
options: __HttpHandlerOptions,
278330
cb: (err: any, data?: UntagResourceCommandOutput) => void
279331
): void;
332+
333+
/**
334+
* @see {@link UpdateDeploymentCommand}
335+
*/
336+
updateDeployment(
337+
args: UpdateDeploymentCommandInput,
338+
options?: __HttpHandlerOptions
339+
): Promise<UpdateDeploymentCommandOutput>;
340+
updateDeployment(
341+
args: UpdateDeploymentCommandInput,
342+
cb: (err: any, data?: UpdateDeploymentCommandOutput) => void
343+
): void;
344+
updateDeployment(
345+
args: UpdateDeploymentCommandInput,
346+
options: __HttpHandlerOptions,
347+
cb: (err: any, data?: UpdateDeploymentCommandOutput) => void
348+
): void;
280349
}
281350

282351
/**
283-
* <p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for
284-
* third party applications, such as Microsoft SQL Server Always On and HANA based SAP
285-
* systems, without the need to manually identify and provision individual Amazon Web Services
286-
* resources.</p>
352+
* <p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually identify and provision individual Amazon Web Services resources.</p>
287353
* @public
288354
*/
289355
export class LaunchWizard extends LaunchWizardClient implements LaunchWizard {}

clients/client-launch-wizard/src/LaunchWizardClient.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ import {
6666
import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./commands/CreateDeploymentCommand";
6767
import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
6868
import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
69+
import {
70+
GetDeploymentPatternVersionCommandInput,
71+
GetDeploymentPatternVersionCommandOutput,
72+
} from "./commands/GetDeploymentPatternVersionCommand";
6973
import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
7074
import {
7175
GetWorkloadDeploymentPatternCommandInput,
@@ -75,6 +79,10 @@ import {
7579
ListDeploymentEventsCommandInput,
7680
ListDeploymentEventsCommandOutput,
7781
} from "./commands/ListDeploymentEventsCommand";
82+
import {
83+
ListDeploymentPatternVersionsCommandInput,
84+
ListDeploymentPatternVersionsCommandOutput,
85+
} from "./commands/ListDeploymentPatternVersionsCommand";
7886
import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
7987
import {
8088
ListTagsForResourceCommandInput,
@@ -87,6 +95,7 @@ import {
8795
import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "./commands/ListWorkloadsCommand";
8896
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
8997
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
98+
import { UpdateDeploymentCommandInput, UpdateDeploymentCommandOutput } from "./commands/UpdateDeploymentCommand";
9099
import {
91100
ClientInputEndpointParameters,
92101
ClientResolvedEndpointParameters,
@@ -105,15 +114,18 @@ export type ServiceInputTypes =
105114
| CreateDeploymentCommandInput
106115
| DeleteDeploymentCommandInput
107116
| GetDeploymentCommandInput
117+
| GetDeploymentPatternVersionCommandInput
108118
| GetWorkloadCommandInput
109119
| GetWorkloadDeploymentPatternCommandInput
110120
| ListDeploymentEventsCommandInput
121+
| ListDeploymentPatternVersionsCommandInput
111122
| ListDeploymentsCommandInput
112123
| ListTagsForResourceCommandInput
113124
| ListWorkloadDeploymentPatternsCommandInput
114125
| ListWorkloadsCommandInput
115126
| TagResourceCommandInput
116-
| UntagResourceCommandInput;
127+
| UntagResourceCommandInput
128+
| UpdateDeploymentCommandInput;
117129

118130
/**
119131
* @public
@@ -122,15 +134,18 @@ export type ServiceOutputTypes =
122134
| CreateDeploymentCommandOutput
123135
| DeleteDeploymentCommandOutput
124136
| GetDeploymentCommandOutput
137+
| GetDeploymentPatternVersionCommandOutput
125138
| GetWorkloadCommandOutput
126139
| GetWorkloadDeploymentPatternCommandOutput
127140
| ListDeploymentEventsCommandOutput
141+
| ListDeploymentPatternVersionsCommandOutput
128142
| ListDeploymentsCommandOutput
129143
| ListTagsForResourceCommandOutput
130144
| ListWorkloadDeploymentPatternsCommandOutput
131145
| ListWorkloadsCommandOutput
132146
| TagResourceCommandOutput
133-
| UntagResourceCommandOutput;
147+
| UntagResourceCommandOutput
148+
| UpdateDeploymentCommandOutput;
134149

135150
/**
136151
* @public
@@ -323,10 +338,7 @@ export type LaunchWizardClientResolvedConfigType = __SmithyResolvedConfiguration
323338
export interface LaunchWizardClientResolvedConfig extends LaunchWizardClientResolvedConfigType {}
324339

325340
/**
326-
* <p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for
327-
* third party applications, such as Microsoft SQL Server Always On and HANA based SAP
328-
* systems, without the need to manually identify and provision individual Amazon Web Services
329-
* resources.</p>
341+
* <p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually identify and provision individual Amazon Web Services resources.</p>
330342
* @public
331343
*/
332344
export class LaunchWizardClient extends __Client<

clients/client-launch-wizard/src/commands/CreateDeploymentCommand.ts

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ export interface CreateDeploymentCommandInput extends CreateDeploymentInput {}
2727
export interface CreateDeploymentCommandOutput extends CreateDeploymentOutput, __MetadataBearer {}
2828

2929
/**
30-
* <p>Creates a deployment for the given workload. Deployments created by this operation are
31-
* not available in the Launch Wizard console to use the <code>Clone deployment</code> action
32-
* on.</p>
30+
* <p>Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the <code>Clone deployment</code> action on.</p>
3331
* @example
3432
* Use a bare-bones client and the command you need to make an API call.
3533
* ```javascript
@@ -65,12 +63,10 @@ export interface CreateDeploymentCommandOutput extends CreateDeploymentOutput, _
6563
* @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
6664
*
6765
* @throws {@link InternalServerException} (server fault)
68-
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact
69-
* us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
66+
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
7067
*
7168
* @throws {@link ResourceLimitException} (client fault)
72-
* <p>You have exceeded an Launch Wizard resource limit. For example, you might have too many
73-
* deployments in progress.</p>
69+
* <p>You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.</p>
7470
*
7571
* @throws {@link ResourceNotFoundException} (client fault)
7672
* <p>The specified workload or deployment resource can't be found.</p>
@@ -88,18 +84,19 @@ export interface CreateDeploymentCommandOutput extends CreateDeploymentOutput, _
8884
* const input = {
8985
* deploymentPatternName: "SapHanaSingle",
9086
* dryRun: false,
91-
* name: "SapHanaSingleForTest",
87+
* name: "TestDeployment1",
9288
* specifications: {
93-
* DisableDeploymentRollback: "true",
94-
* Encryption: "Yes",
95-
* KeyName: "testLinuxInstance",
96-
* SAPTZ: "America/Vancouver",
97-
* VPCID: "vpc-1234567",
98-
* applicationName: "SapHanaSingleForTest",
99-
* deploymentScenario: "SapHanaSingle",
100-
* environmentType: "production",
101-
* saveArtifactsS3Uri: "s3://testbucket",
102-
* saveDeploymentArtifacts: "Yes"
89+
* CreateSecurityGroup: "No",
90+
* DisableDeploymentRollback: "Yes",
91+
* EnableEbsVolumeEncryption: "Yes",
92+
* KeyPairName: "keyName",
93+
* ProxyServerAddress: "http://xyz.abc.com:8080",
94+
* SapSysGroupId: "5003",
95+
* SapVirtualIPOptIn: "No",
96+
* SaveDeploymentArtifacts: "No",
97+
* SnsTopicArn: "arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo",
98+
* Timezone: "Pacific/Wake",
99+
* VpcId: "vpc-1234566"
103100
* },
104101
* workloadName: "SAP"
105102
* };
@@ -118,18 +115,19 @@ export interface CreateDeploymentCommandOutput extends CreateDeploymentOutput, _
118115
* const input = {
119116
* deploymentPatternName: "SapHanaSingle",
120117
* dryRun: false,
121-
* name: "SapHanaSingleForTest",
118+
* name: "TestDeployment2",
122119
* specifications: {
123-
* DisableDeploymentRollback: "true",
124-
* Encryption: "Yes",
125-
* KeyName: "testLinuxInstance",
126-
* SAPTZ: "America/Vancouver",
127-
* VPCID: "vpc-1234567",
128-
* applicationName: "SapHanaSingleForTest",
129-
* deploymentScenario: "SapHanaSingle",
130-
* environmentType: "production",
131-
* saveArtifactsS3Uri: "s3://testbucket",
132-
* saveDeploymentArtifacts: "Yes"
120+
* CreateSecurityGroup: "No",
121+
* DisableDeploymentRollback: "Yes",
122+
* EnableEbsVolumeEncryption: "Yes",
123+
* KeyPairName: "keyName",
124+
* ProxyServerAddress: "http://xyz.abc.com:8080",
125+
* SapSysGroupId: "5003",
126+
* SapVirtualIPOptIn: "No",
127+
* SaveDeploymentArtifacts: "No",
128+
* SnsTopicArn: "arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo",
129+
* Timezone: "Pacific/Wake",
130+
* VpcId: "vpc-1234566"
133131
* },
134132
* tags: {
135133
* key1: "val1",

clients/client-launch-wizard/src/commands/DeleteDeploymentCommand.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface DeleteDeploymentCommandOutput extends DeleteDeploymentOutput, _
4242
* const command = new DeleteDeploymentCommand(input);
4343
* const response = await client.send(command);
4444
* // { // DeleteDeploymentOutput
45-
* // status: "COMPLETED" || "CREATING" || "DELETE_IN_PROGRESS" || "DELETE_INITIATING" || "DELETE_FAILED" || "DELETED" || "FAILED" || "IN_PROGRESS" || "VALIDATING",
45+
* // status: "COMPLETED" || "CREATING" || "DELETE_IN_PROGRESS" || "DELETE_INITIATING" || "DELETE_FAILED" || "DELETED" || "FAILED" || "IN_PROGRESS" || "VALIDATING" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETED" || "UPDATE_FAILED" || "UPDATE_ROLLBACK_COMPLETED" || "UPDATE_ROLLBACK_FAILED",
4646
* // statusReason: "STRING_VALUE",
4747
* // };
4848
*
@@ -55,12 +55,10 @@ export interface DeleteDeploymentCommandOutput extends DeleteDeploymentOutput, _
5555
* @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
5656
*
5757
* @throws {@link InternalServerException} (server fault)
58-
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact
59-
* us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
58+
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
6059
*
6160
* @throws {@link ResourceLimitException} (client fault)
62-
* <p>You have exceeded an Launch Wizard resource limit. For example, you might have too many
63-
* deployments in progress.</p>
61+
* <p>You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.</p>
6462
*
6563
* @throws {@link ResourceNotFoundException} (client fault)
6664
* <p>The specified workload or deployment resource can't be found.</p>

clients/client-launch-wizard/src/commands/GetDeploymentCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __Metad
4747
* // id: "STRING_VALUE",
4848
* // workloadName: "STRING_VALUE",
4949
* // patternName: "STRING_VALUE",
50-
* // status: "COMPLETED" || "CREATING" || "DELETE_IN_PROGRESS" || "DELETE_INITIATING" || "DELETE_FAILED" || "DELETED" || "FAILED" || "IN_PROGRESS" || "VALIDATING",
50+
* // status: "COMPLETED" || "CREATING" || "DELETE_IN_PROGRESS" || "DELETE_INITIATING" || "DELETE_FAILED" || "DELETED" || "FAILED" || "IN_PROGRESS" || "VALIDATING" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETED" || "UPDATE_FAILED" || "UPDATE_ROLLBACK_COMPLETED" || "UPDATE_ROLLBACK_FAILED",
5151
* // createdAt: new Date("TIMESTAMP"),
52+
* // modifiedAt: new Date("TIMESTAMP"),
5253
* // specifications: { // DeploymentSpecifications
5354
* // "<keys>": "STRING_VALUE",
5455
* // },
@@ -70,8 +71,7 @@ export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __Metad
7071
* @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
7172
*
7273
* @throws {@link InternalServerException} (server fault)
73-
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact
74-
* us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
74+
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
7575
*
7676
* @throws {@link ResourceNotFoundException} (client fault)
7777
* <p>The specified workload or deployment resource can't be found.</p>

0 commit comments

Comments
 (0)