Skip to content

Commit e573378

Browse files
author
awstools
committed
feat(client-mgn): This release adds support for Application and Wave management. We also now support custom post-launch actions.
1 parent 501931e commit e573378

38 files changed

+11308
-1513
lines changed

clients/client-mgn/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ using your favorite package manager:
2626

2727
The AWS SDK is modulized by clients and commands.
2828
To send a request, you only need to import the `MgnClient` and
29-
the commands you need, for example `ChangeServerLifeCycleStateCommand`:
29+
the commands you need, for example `ArchiveApplicationCommand`:
3030

3131
```js
3232
// ES5 example
33-
const { MgnClient, ChangeServerLifeCycleStateCommand } = require("@aws-sdk/client-mgn");
33+
const { MgnClient, ArchiveApplicationCommand } = require("@aws-sdk/client-mgn");
3434
```
3535

3636
```ts
3737
// ES6+ example
38-
import { MgnClient, ChangeServerLifeCycleStateCommand } from "@aws-sdk/client-mgn";
38+
import { MgnClient, ArchiveApplicationCommand } from "@aws-sdk/client-mgn";
3939
```
4040

4141
### Usage
@@ -54,7 +54,7 @@ const client = new MgnClient({ region: "REGION" });
5454
const params = {
5555
/** input parameters */
5656
};
57-
const command = new ChangeServerLifeCycleStateCommand(params);
57+
const command = new ArchiveApplicationCommand(params);
5858
```
5959

6060
#### Async/await
@@ -133,15 +133,15 @@ const client = new AWS.Mgn({ region: "REGION" });
133133

134134
// async/await.
135135
try {
136-
const data = await client.changeServerLifeCycleState(params);
136+
const data = await client.archiveApplication(params);
137137
// process data.
138138
} catch (error) {
139139
// error handling.
140140
}
141141

142142
// Promises.
143143
client
144-
.changeServerLifeCycleState(params)
144+
.archiveApplication(params)
145145
.then((data) => {
146146
// process data.
147147
})
@@ -150,7 +150,7 @@ client
150150
});
151151

152152
// callbacks.
153-
client.changeServerLifeCycleState(params, (err, data) => {
153+
client.archiveApplication(params, (err, data) => {
154154
// process err and data.
155155
});
156156
```

0 commit comments

Comments
 (0)