Skip to content

Commit 5a28a05

Browse files
author
awstools
committed
feat(client-launch-wizard): This release adds support for describing workload deployment specifications, deploying additional workload types, and managing tags for Launch Wizard resources with API operations.
1 parent da60fe0 commit 5a28a05

16 files changed

+1602
-55
lines changed

Diff for: clients/client-launch-wizard/README.md

+32
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ GetWorkload
237237

238238
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/GetWorkloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadCommandOutput/)
239239

240+
</details>
241+
<details>
242+
<summary>
243+
GetWorkloadDeploymentPattern
244+
</summary>
245+
246+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/GetWorkloadDeploymentPatternCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadDeploymentPatternCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadDeploymentPatternCommandOutput/)
247+
240248
</details>
241249
<details>
242250
<summary>
@@ -253,6 +261,14 @@ ListDeployments
253261

254262
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListDeploymentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListDeploymentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListDeploymentsCommandOutput/)
255263

264+
</details>
265+
<details>
266+
<summary>
267+
ListTagsForResource
268+
</summary>
269+
270+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListTagsForResourceCommandOutput/)
271+
256272
</details>
257273
<details>
258274
<summary>
@@ -270,3 +286,19 @@ ListWorkloads
270286
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListWorkloadsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListWorkloadsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListWorkloadsCommandOutput/)
271287

272288
</details>
289+
<details>
290+
<summary>
291+
TagResource
292+
</summary>
293+
294+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/TagResourceCommandOutput/)
295+
296+
</details>
297+
<details>
298+
<summary>
299+
UntagResource
300+
</summary>
301+
302+
[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/)
303+
304+
</details>

Diff for: clients/client-launch-wizard/src/LaunchWizard.ts

+76
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import {
1818
GetDeploymentCommandOutput,
1919
} from "./commands/GetDeploymentCommand";
2020
import { GetWorkloadCommand, GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
21+
import {
22+
GetWorkloadDeploymentPatternCommand,
23+
GetWorkloadDeploymentPatternCommandInput,
24+
GetWorkloadDeploymentPatternCommandOutput,
25+
} from "./commands/GetWorkloadDeploymentPatternCommand";
2126
import {
2227
ListDeploymentEventsCommand,
2328
ListDeploymentEventsCommandInput,
@@ -28,6 +33,11 @@ import {
2833
ListDeploymentsCommandInput,
2934
ListDeploymentsCommandOutput,
3035
} from "./commands/ListDeploymentsCommand";
36+
import {
37+
ListTagsForResourceCommand,
38+
ListTagsForResourceCommandInput,
39+
ListTagsForResourceCommandOutput,
40+
} from "./commands/ListTagsForResourceCommand";
3141
import {
3242
ListWorkloadDeploymentPatternsCommand,
3343
ListWorkloadDeploymentPatternsCommandInput,
@@ -38,17 +48,27 @@ import {
3848
ListWorkloadsCommandInput,
3949
ListWorkloadsCommandOutput,
4050
} from "./commands/ListWorkloadsCommand";
51+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
52+
import {
53+
UntagResourceCommand,
54+
UntagResourceCommandInput,
55+
UntagResourceCommandOutput,
56+
} from "./commands/UntagResourceCommand";
4157
import { LaunchWizardClient, LaunchWizardClientConfig } from "./LaunchWizardClient";
4258

4359
const commands = {
4460
CreateDeploymentCommand,
4561
DeleteDeploymentCommand,
4662
GetDeploymentCommand,
4763
GetWorkloadCommand,
64+
GetWorkloadDeploymentPatternCommand,
4865
ListDeploymentEventsCommand,
4966
ListDeploymentsCommand,
67+
ListTagsForResourceCommand,
5068
ListWorkloadDeploymentPatternsCommand,
5169
ListWorkloadsCommand,
70+
TagResourceCommand,
71+
UntagResourceCommand,
5272
};
5373

5474
export interface LaunchWizard {
@@ -108,6 +128,23 @@ export interface LaunchWizard {
108128
cb: (err: any, data?: GetWorkloadCommandOutput) => void
109129
): void;
110130

131+
/**
132+
* @see {@link GetWorkloadDeploymentPatternCommand}
133+
*/
134+
getWorkloadDeploymentPattern(
135+
args: GetWorkloadDeploymentPatternCommandInput,
136+
options?: __HttpHandlerOptions
137+
): Promise<GetWorkloadDeploymentPatternCommandOutput>;
138+
getWorkloadDeploymentPattern(
139+
args: GetWorkloadDeploymentPatternCommandInput,
140+
cb: (err: any, data?: GetWorkloadDeploymentPatternCommandOutput) => void
141+
): void;
142+
getWorkloadDeploymentPattern(
143+
args: GetWorkloadDeploymentPatternCommandInput,
144+
options: __HttpHandlerOptions,
145+
cb: (err: any, data?: GetWorkloadDeploymentPatternCommandOutput) => void
146+
): void;
147+
111148
/**
112149
* @see {@link ListDeploymentEventsCommand}
113150
*/
@@ -140,6 +177,23 @@ export interface LaunchWizard {
140177
cb: (err: any, data?: ListDeploymentsCommandOutput) => void
141178
): void;
142179

180+
/**
181+
* @see {@link ListTagsForResourceCommand}
182+
*/
183+
listTagsForResource(
184+
args: ListTagsForResourceCommandInput,
185+
options?: __HttpHandlerOptions
186+
): Promise<ListTagsForResourceCommandOutput>;
187+
listTagsForResource(
188+
args: ListTagsForResourceCommandInput,
189+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
190+
): void;
191+
listTagsForResource(
192+
args: ListTagsForResourceCommandInput,
193+
options: __HttpHandlerOptions,
194+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
195+
): void;
196+
143197
/**
144198
* @see {@link ListWorkloadDeploymentPatternsCommand}
145199
*/
@@ -168,6 +222,28 @@ export interface LaunchWizard {
168222
options: __HttpHandlerOptions,
169223
cb: (err: any, data?: ListWorkloadsCommandOutput) => void
170224
): void;
225+
226+
/**
227+
* @see {@link TagResourceCommand}
228+
*/
229+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
230+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
231+
tagResource(
232+
args: TagResourceCommandInput,
233+
options: __HttpHandlerOptions,
234+
cb: (err: any, data?: TagResourceCommandOutput) => void
235+
): void;
236+
237+
/**
238+
* @see {@link UntagResourceCommand}
239+
*/
240+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
241+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
242+
untagResource(
243+
args: UntagResourceCommandInput,
244+
options: __HttpHandlerOptions,
245+
cb: (err: any, data?: UntagResourceCommandOutput) => void
246+
): void;
171247
}
172248

173249
/**

Diff for: clients/client-launch-wizard/src/LaunchWizardClient.ts

+20-2
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,26 @@ import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./c
5757
import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
5858
import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
5959
import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
60+
import {
61+
GetWorkloadDeploymentPatternCommandInput,
62+
GetWorkloadDeploymentPatternCommandOutput,
63+
} from "./commands/GetWorkloadDeploymentPatternCommand";
6064
import {
6165
ListDeploymentEventsCommandInput,
6266
ListDeploymentEventsCommandOutput,
6367
} from "./commands/ListDeploymentEventsCommand";
6468
import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
69+
import {
70+
ListTagsForResourceCommandInput,
71+
ListTagsForResourceCommandOutput,
72+
} from "./commands/ListTagsForResourceCommand";
6573
import {
6674
ListWorkloadDeploymentPatternsCommandInput,
6775
ListWorkloadDeploymentPatternsCommandOutput,
6876
} from "./commands/ListWorkloadDeploymentPatternsCommand";
6977
import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "./commands/ListWorkloadsCommand";
78+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
79+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
7080
import {
7181
ClientInputEndpointParameters,
7282
ClientResolvedEndpointParameters,
@@ -86,10 +96,14 @@ export type ServiceInputTypes =
8696
| DeleteDeploymentCommandInput
8797
| GetDeploymentCommandInput
8898
| GetWorkloadCommandInput
99+
| GetWorkloadDeploymentPatternCommandInput
89100
| ListDeploymentEventsCommandInput
90101
| ListDeploymentsCommandInput
102+
| ListTagsForResourceCommandInput
91103
| ListWorkloadDeploymentPatternsCommandInput
92-
| ListWorkloadsCommandInput;
104+
| ListWorkloadsCommandInput
105+
| TagResourceCommandInput
106+
| UntagResourceCommandInput;
93107

94108
/**
95109
* @public
@@ -99,10 +113,14 @@ export type ServiceOutputTypes =
99113
| DeleteDeploymentCommandOutput
100114
| GetDeploymentCommandOutput
101115
| GetWorkloadCommandOutput
116+
| GetWorkloadDeploymentPatternCommandOutput
102117
| ListDeploymentEventsCommandOutput
103118
| ListDeploymentsCommandOutput
119+
| ListTagsForResourceCommandOutput
104120
| ListWorkloadDeploymentPatternsCommandOutput
105-
| ListWorkloadsCommandOutput;
121+
| ListWorkloadsCommandOutput
122+
| TagResourceCommandOutput
123+
| UntagResourceCommandOutput;
106124

107125
/**
108126
* @public

Diff for: clients/client-launch-wizard/src/commands/CreateDeploymentCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export interface CreateDeploymentCommandOutput extends CreateDeploymentOutput, _
4848
* "<keys>": "STRING_VALUE",
4949
* },
5050
* dryRun: true || false,
51+
* tags: { // Tags
52+
* "<keys>": "STRING_VALUE",
53+
* },
5154
* };
5255
* const command = new CreateDeploymentCommand(input);
5356
* const response = await client.send(command);

Diff for: clients/client-launch-wizard/src/commands/DeleteDeploymentCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export interface DeleteDeploymentCommandOutput extends DeleteDeploymentOutput, _
5656
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact
5757
* us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
5858
*
59+
* @throws {@link ResourceLimitException} (client fault)
60+
* <p>You have exceeded an Launch Wizard resource limit. For example, you might have too many
61+
* deployments in progress.</p>
62+
*
5963
* @throws {@link ResourceNotFoundException} (client fault)
6064
* <p>The specified workload or deployment resource can't be found.</p>
6165
*

Diff for: clients/client-launch-wizard/src/commands/GetDeploymentCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __Metad
5252
* // },
5353
* // resourceGroup: "STRING_VALUE",
5454
* // deletedAt: new Date("TIMESTAMP"),
55+
* // tags: { // Tags
56+
* // "<keys>": "STRING_VALUE",
57+
* // },
58+
* // deploymentArn: "STRING_VALUE",
5559
* // },
5660
* // };
5761
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { LaunchWizardClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LaunchWizardClient";
9+
import { GetWorkloadDeploymentPatternInput, GetWorkloadDeploymentPatternOutput } from "../models/models_0";
10+
import {
11+
de_GetWorkloadDeploymentPatternCommand,
12+
se_GetWorkloadDeploymentPatternCommand,
13+
} from "../protocols/Aws_restJson1";
14+
15+
/**
16+
* @public
17+
*/
18+
export { __MetadataBearer, $Command };
19+
/**
20+
* @public
21+
*
22+
* The input for {@link GetWorkloadDeploymentPatternCommand}.
23+
*/
24+
export interface GetWorkloadDeploymentPatternCommandInput extends GetWorkloadDeploymentPatternInput {}
25+
/**
26+
* @public
27+
*
28+
* The output of {@link GetWorkloadDeploymentPatternCommand}.
29+
*/
30+
export interface GetWorkloadDeploymentPatternCommandOutput
31+
extends GetWorkloadDeploymentPatternOutput,
32+
__MetadataBearer {}
33+
34+
/**
35+
* <p>Returns details for a given workload and deployment pattern, including the available
36+
* specifications. You can use the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html">ListWorkloads</a>
37+
* operation to discover the available workload names and the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html">ListWorkloadDeploymentPatterns</a> operation to discover the available deployment
38+
* pattern names of a given workload.</p>
39+
* @example
40+
* Use a bare-bones client and the command you need to make an API call.
41+
* ```javascript
42+
* import { LaunchWizardClient, GetWorkloadDeploymentPatternCommand } from "@aws-sdk/client-launch-wizard"; // ES Modules import
43+
* // const { LaunchWizardClient, GetWorkloadDeploymentPatternCommand } = require("@aws-sdk/client-launch-wizard"); // CommonJS import
44+
* const client = new LaunchWizardClient(config);
45+
* const input = { // GetWorkloadDeploymentPatternInput
46+
* workloadName: "STRING_VALUE", // required
47+
* deploymentPatternName: "STRING_VALUE", // required
48+
* };
49+
* const command = new GetWorkloadDeploymentPatternCommand(input);
50+
* const response = await client.send(command);
51+
* // { // GetWorkloadDeploymentPatternOutput
52+
* // workloadDeploymentPattern: { // WorkloadDeploymentPatternData
53+
* // workloadName: "STRING_VALUE",
54+
* // deploymentPatternName: "STRING_VALUE",
55+
* // workloadVersionName: "STRING_VALUE",
56+
* // displayName: "STRING_VALUE",
57+
* // description: "STRING_VALUE",
58+
* // status: "ACTIVE" || "INACTIVE" || "DISABLED" || "DELETED",
59+
* // statusMessage: "STRING_VALUE",
60+
* // specifications: [ // DeploymentSpecificationsData
61+
* // { // DeploymentSpecificationsField
62+
* // name: "STRING_VALUE",
63+
* // description: "STRING_VALUE",
64+
* // allowedValues: [ // AllowedValues
65+
* // "STRING_VALUE",
66+
* // ],
67+
* // required: "STRING_VALUE",
68+
* // conditionals: [ // SpecificationsConditionalData
69+
* // { // DeploymentConditionalField
70+
* // name: "STRING_VALUE",
71+
* // value: "STRING_VALUE",
72+
* // comparator: "STRING_VALUE",
73+
* // },
74+
* // ],
75+
* // },
76+
* // ],
77+
* // },
78+
* // };
79+
*
80+
* ```
81+
*
82+
* @param GetWorkloadDeploymentPatternCommandInput - {@link GetWorkloadDeploymentPatternCommandInput}
83+
* @returns {@link GetWorkloadDeploymentPatternCommandOutput}
84+
* @see {@link GetWorkloadDeploymentPatternCommandInput} for command's `input` shape.
85+
* @see {@link GetWorkloadDeploymentPatternCommandOutput} for command's `response` shape.
86+
* @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
87+
*
88+
* @throws {@link InternalServerException} (server fault)
89+
* <p>An internal error has occurred. Retry your request, but if the problem persists, contact
90+
* us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
91+
*
92+
* @throws {@link ResourceNotFoundException} (client fault)
93+
* <p>The specified workload or deployment resource can't be found.</p>
94+
*
95+
* @throws {@link ValidationException} (client fault)
96+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
97+
*
98+
* @throws {@link LaunchWizardServiceException}
99+
* <p>Base exception class for all service exceptions from LaunchWizard service.</p>
100+
*
101+
* @public
102+
*/
103+
export class GetWorkloadDeploymentPatternCommand extends $Command
104+
.classBuilder<
105+
GetWorkloadDeploymentPatternCommandInput,
106+
GetWorkloadDeploymentPatternCommandOutput,
107+
LaunchWizardClientResolvedConfig,
108+
ServiceInputTypes,
109+
ServiceOutputTypes
110+
>()
111+
.ep({
112+
...commonParams,
113+
})
114+
.m(function (this: any, Command: any, cs: any, config: LaunchWizardClientResolvedConfig, o: any) {
115+
return [
116+
getSerdePlugin(config, this.serialize, this.deserialize),
117+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
118+
];
119+
})
120+
.s("LaunchWizard", "GetWorkloadDeploymentPattern", {})
121+
.n("LaunchWizardClient", "GetWorkloadDeploymentPatternCommand")
122+
.f(void 0, void 0)
123+
.ser(se_GetWorkloadDeploymentPatternCommand)
124+
.de(de_GetWorkloadDeploymentPatternCommand)
125+
.build() {}

0 commit comments

Comments
 (0)