@aws-sdk/client-drs 3.312.0 → 3.316.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/README.md +32 -0
- package/dist-cjs/Drs.js +47 -490
- package/dist-cjs/commands/CreateLaunchConfigurationTemplateCommand.js +46 -0
- package/dist-cjs/commands/DeleteLaunchConfigurationTemplateCommand.js +45 -0
- package/dist-cjs/commands/DescribeLaunchConfigurationTemplatesCommand.js +46 -0
- package/dist-cjs/commands/UpdateLaunchConfigurationTemplateCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +39 -10
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +794 -1620
- package/dist-es/Drs.js +47 -490
- package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +42 -0
- package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +41 -0
- package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +42 -0
- package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +32 -8
- package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +735 -1569
- package/dist-types/Drs.d.ts +70 -85
- package/dist-types/DrsClient.d.ts +6 -2
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +90 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +78 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +82 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +216 -34
- package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Drs.d.ts +94 -1
- package/dist-types/ts3.4/DrsClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateLaunchConfigurationTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +82 -15
- package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +6 -6
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { de_UpdateLaunchConfigurationTemplateCommand, se_UpdateLaunchConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateLaunchConfigurationTemplateCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLaunchConfigurationTemplateCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "DrsClient";
|
|
25
|
+
const commandName = "UpdateLaunchConfigurationTemplateCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_UpdateLaunchConfigurationTemplateCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_UpdateLaunchConfigurationTemplateCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from "./CreateExtendedSourceServerCommand";
|
|
2
|
+
export * from "./CreateLaunchConfigurationTemplateCommand";
|
|
2
3
|
export * from "./CreateReplicationConfigurationTemplateCommand";
|
|
3
4
|
export * from "./DeleteJobCommand";
|
|
5
|
+
export * from "./DeleteLaunchConfigurationTemplateCommand";
|
|
4
6
|
export * from "./DeleteRecoveryInstanceCommand";
|
|
5
7
|
export * from "./DeleteReplicationConfigurationTemplateCommand";
|
|
6
8
|
export * from "./DeleteSourceServerCommand";
|
|
7
9
|
export * from "./DescribeJobLogItemsCommand";
|
|
8
10
|
export * from "./DescribeJobsCommand";
|
|
11
|
+
export * from "./DescribeLaunchConfigurationTemplatesCommand";
|
|
9
12
|
export * from "./DescribeRecoveryInstancesCommand";
|
|
10
13
|
export * from "./DescribeRecoverySnapshotsCommand";
|
|
11
14
|
export * from "./DescribeReplicationConfigurationTemplatesCommand";
|
|
@@ -31,5 +34,6 @@ export * from "./TerminateRecoveryInstancesCommand";
|
|
|
31
34
|
export * from "./UntagResourceCommand";
|
|
32
35
|
export * from "./UpdateFailbackReplicationConfigurationCommand";
|
|
33
36
|
export * from "./UpdateLaunchConfigurationCommand";
|
|
37
|
+
export * from "./UpdateLaunchConfigurationTemplateCommand";
|
|
34
38
|
export * from "./UpdateReplicationConfigurationCommand";
|
|
35
39
|
export * from "./UpdateReplicationConfigurationTemplateCommand";
|
|
@@ -196,6 +196,14 @@ export class ValidationException extends __BaseException {
|
|
|
196
196
|
this.fieldList = opts.fieldList;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
+
export const LaunchDisposition = {
|
|
200
|
+
STARTED: "STARTED",
|
|
201
|
+
STOPPED: "STOPPED",
|
|
202
|
+
};
|
|
203
|
+
export const TargetInstanceTypeRightSizingMethod = {
|
|
204
|
+
BASIC: "BASIC",
|
|
205
|
+
NONE: "NONE",
|
|
206
|
+
};
|
|
199
207
|
export const ReplicationConfigurationDataPlaneRouting = {
|
|
200
208
|
PRIVATE_IP: "PRIVATE_IP",
|
|
201
209
|
PUBLIC_IP: "PUBLIC_IP",
|
|
@@ -346,14 +354,6 @@ export const RecoverySnapshotsOrder = {
|
|
|
346
354
|
ASC: "ASC",
|
|
347
355
|
DESC: "DESC",
|
|
348
356
|
};
|
|
349
|
-
export const LaunchDisposition = {
|
|
350
|
-
STARTED: "STARTED",
|
|
351
|
-
STOPPED: "STOPPED",
|
|
352
|
-
};
|
|
353
|
-
export const TargetInstanceTypeRightSizingMethod = {
|
|
354
|
-
BASIC: "BASIC",
|
|
355
|
-
NONE: "NONE",
|
|
356
|
-
};
|
|
357
357
|
export const ReplicationConfigurationReplicatedDiskStagingDiskType = {
|
|
358
358
|
AUTO: "AUTO",
|
|
359
359
|
GP2: "GP2",
|
|
@@ -375,6 +375,20 @@ export const CreateExtendedSourceServerResponseFilterSensitiveLog = (obj) => ({
|
|
|
375
375
|
...obj,
|
|
376
376
|
...(obj.sourceServer && { sourceServer: SourceServerFilterSensitiveLog(obj.sourceServer) }),
|
|
377
377
|
});
|
|
378
|
+
export const CreateLaunchConfigurationTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
379
|
+
...obj,
|
|
380
|
+
...(obj.tags && { tags: SENSITIVE_STRING }),
|
|
381
|
+
});
|
|
382
|
+
export const LaunchConfigurationTemplateFilterSensitiveLog = (obj) => ({
|
|
383
|
+
...obj,
|
|
384
|
+
...(obj.tags && { tags: SENSITIVE_STRING }),
|
|
385
|
+
});
|
|
386
|
+
export const CreateLaunchConfigurationTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
387
|
+
...obj,
|
|
388
|
+
...(obj.launchConfigurationTemplate && {
|
|
389
|
+
launchConfigurationTemplate: LaunchConfigurationTemplateFilterSensitiveLog(obj.launchConfigurationTemplate),
|
|
390
|
+
}),
|
|
391
|
+
});
|
|
378
392
|
export const CreateReplicationConfigurationTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
379
393
|
...obj,
|
|
380
394
|
...(obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING }),
|
|
@@ -393,6 +407,10 @@ export const DescribeJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
393
407
|
...obj,
|
|
394
408
|
...(obj.items && { items: obj.items.map((item) => JobFilterSensitiveLog(item)) }),
|
|
395
409
|
});
|
|
410
|
+
export const DescribeLaunchConfigurationTemplatesResponseFilterSensitiveLog = (obj) => ({
|
|
411
|
+
...obj,
|
|
412
|
+
...(obj.items && { items: obj.items.map((item) => LaunchConfigurationTemplateFilterSensitiveLog(item)) }),
|
|
413
|
+
});
|
|
396
414
|
export const RecoveryInstanceFilterSensitiveLog = (obj) => ({
|
|
397
415
|
...obj,
|
|
398
416
|
...(obj.tags && { tags: SENSITIVE_STRING }),
|
|
@@ -409,6 +427,12 @@ export const DescribeSourceServersResponseFilterSensitiveLog = (obj) => ({
|
|
|
409
427
|
...obj,
|
|
410
428
|
...(obj.items && { items: obj.items.map((item) => SourceServerFilterSensitiveLog(item)) }),
|
|
411
429
|
});
|
|
430
|
+
export const UpdateLaunchConfigurationTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
431
|
+
...obj,
|
|
432
|
+
...(obj.launchConfigurationTemplate && {
|
|
433
|
+
launchConfigurationTemplate: LaunchConfigurationTemplateFilterSensitiveLog(obj.launchConfigurationTemplate),
|
|
434
|
+
}),
|
|
435
|
+
});
|
|
412
436
|
export const StagingSourceServerFilterSensitiveLog = (obj) => ({
|
|
413
437
|
...obj,
|
|
414
438
|
...(obj.tags && { tags: SENSITIVE_STRING }),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeLaunchConfigurationTemplatesCommand, } from "../commands/DescribeLaunchConfigurationTemplatesCommand";
|
|
2
|
+
import { DrsClient } from "../DrsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeLaunchConfigurationTemplatesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeLaunchConfigurationTemplates(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 DrsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./DescribeJobLogItemsPaginator";
|
|
2
2
|
export * from "./DescribeJobsPaginator";
|
|
3
|
+
export * from "./DescribeLaunchConfigurationTemplatesPaginator";
|
|
3
4
|
export * from "./DescribeRecoveryInstancesPaginator";
|
|
4
5
|
export * from "./DescribeRecoverySnapshotsPaginator";
|
|
5
6
|
export * from "./DescribeReplicationConfigurationTemplatesPaginator";
|