@aws-sdk/client-ec2 3.427.0 → 3.429.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 +16 -0
- package/dist-cjs/EC2.js +4 -0
- package/dist-cjs/commands/DisableImageCommand.js +51 -0
- package/dist-cjs/commands/EnableImageCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/models/models_3.js +1 -0
- package/dist-cjs/protocols/Aws_ec2.js +133 -17
- package/dist-es/EC2.js +4 -0
- package/dist-es/commands/DisableImageCommand.js +47 -0
- package/dist-es/commands/EnableImageCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/models/models_3.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +112 -0
- package/dist-types/EC2.d.ts +14 -0
- package/dist-types/EC2Client.d.ts +4 -2
- package/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -2
- package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
- package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImagesCommand.d.ts +3 -1
- package/dist-types/commands/DisableImageCommand.d.ts +84 -0
- package/dist-types/commands/EnableImageCommand.d.ts +81 -0
- package/dist-types/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -1
- package/dist-types/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +80 -79
- package/dist-types/models/models_1.d.ts +131 -131
- package/dist-types/models/models_2.d.ts +105 -105
- package/dist-types/models/models_3.d.ts +99 -79
- package/dist-types/models/models_4.d.ts +115 -111
- package/dist-types/models/models_5.d.ts +119 -143
- package/dist-types/models/models_6.d.ts +159 -181
- package/dist-types/models/models_7.d.ts +113 -13
- package/dist-types/protocols/Aws_ec2.d.ts +18 -0
- package/dist-types/ts3.4/EC2.d.ts +34 -0
- package/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/dist-types/ts3.4/commands/DisableImageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/EnableImageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +80 -79
- package/dist-types/ts3.4/models/models_1.d.ts +131 -133
- package/dist-types/ts3.4/models/models_2.d.ts +105 -107
- package/dist-types/ts3.4/models/models_3.d.ts +81 -80
- package/dist-types/ts3.4/models/models_4.d.ts +109 -109
- package/dist-types/ts3.4/models/models_5.d.ts +79 -87
- package/dist-types/ts3.4/models/models_6.d.ts +99 -98
- package/dist-types/ts3.4/models/models_7.d.ts +31 -14
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
- package/package.json +33 -33
package/dist-es/EC2.js
CHANGED
|
@@ -373,6 +373,7 @@ import { DisableEbsEncryptionByDefaultCommand, } from "./commands/DisableEbsEncr
|
|
|
373
373
|
import { DisableFastLaunchCommand, } from "./commands/DisableFastLaunchCommand";
|
|
374
374
|
import { DisableFastSnapshotRestoresCommand, } from "./commands/DisableFastSnapshotRestoresCommand";
|
|
375
375
|
import { DisableImageBlockPublicAccessCommand, } from "./commands/DisableImageBlockPublicAccessCommand";
|
|
376
|
+
import { DisableImageCommand, } from "./commands/DisableImageCommand";
|
|
376
377
|
import { DisableImageDeprecationCommand, } from "./commands/DisableImageDeprecationCommand";
|
|
377
378
|
import { DisableIpamOrganizationAdminAccountCommand, } from "./commands/DisableIpamOrganizationAdminAccountCommand";
|
|
378
379
|
import { DisableSerialConsoleAccessCommand, } from "./commands/DisableSerialConsoleAccessCommand";
|
|
@@ -400,6 +401,7 @@ import { EnableEbsEncryptionByDefaultCommand, } from "./commands/EnableEbsEncryp
|
|
|
400
401
|
import { EnableFastLaunchCommand, } from "./commands/EnableFastLaunchCommand";
|
|
401
402
|
import { EnableFastSnapshotRestoresCommand, } from "./commands/EnableFastSnapshotRestoresCommand";
|
|
402
403
|
import { EnableImageBlockPublicAccessCommand, } from "./commands/EnableImageBlockPublicAccessCommand";
|
|
404
|
+
import { EnableImageCommand } from "./commands/EnableImageCommand";
|
|
403
405
|
import { EnableImageDeprecationCommand, } from "./commands/EnableImageDeprecationCommand";
|
|
404
406
|
import { EnableIpamOrganizationAdminAccountCommand, } from "./commands/EnableIpamOrganizationAdminAccountCommand";
|
|
405
407
|
import { EnableReachabilityAnalyzerOrganizationSharingCommand, } from "./commands/EnableReachabilityAnalyzerOrganizationSharingCommand";
|
|
@@ -971,6 +973,7 @@ const commands = {
|
|
|
971
973
|
DisableEbsEncryptionByDefaultCommand,
|
|
972
974
|
DisableFastLaunchCommand,
|
|
973
975
|
DisableFastSnapshotRestoresCommand,
|
|
976
|
+
DisableImageCommand,
|
|
974
977
|
DisableImageBlockPublicAccessCommand,
|
|
975
978
|
DisableImageDeprecationCommand,
|
|
976
979
|
DisableIpamOrganizationAdminAccountCommand,
|
|
@@ -998,6 +1001,7 @@ const commands = {
|
|
|
998
1001
|
EnableEbsEncryptionByDefaultCommand,
|
|
999
1002
|
EnableFastLaunchCommand,
|
|
1000
1003
|
EnableFastSnapshotRestoresCommand,
|
|
1004
|
+
EnableImageCommand,
|
|
1001
1005
|
EnableImageBlockPublicAccessCommand,
|
|
1002
1006
|
EnableImageDeprecationCommand,
|
|
1003
1007
|
EnableIpamOrganizationAdminAccountCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DisableImageCommand, se_DisableImageCommand } from "../protocols/Aws_ec2";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DisableImageCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DisableImageCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EC2Client";
|
|
26
|
+
const commandName = "DisableImageCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonEC2",
|
|
35
|
+
operation: "DisableImage",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DisableImageCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DisableImageCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_EnableImageCommand, se_EnableImageCommand } from "../protocols/Aws_ec2";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class EnableImageCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, EnableImageCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EC2Client";
|
|
26
|
+
const commandName = "EnableImageCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonEC2",
|
|
35
|
+
operation: "EnableImage",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_EnableImageCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_EnableImageCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -372,6 +372,7 @@ export * from "./DisableEbsEncryptionByDefaultCommand";
|
|
|
372
372
|
export * from "./DisableFastLaunchCommand";
|
|
373
373
|
export * from "./DisableFastSnapshotRestoresCommand";
|
|
374
374
|
export * from "./DisableImageBlockPublicAccessCommand";
|
|
375
|
+
export * from "./DisableImageCommand";
|
|
375
376
|
export * from "./DisableImageDeprecationCommand";
|
|
376
377
|
export * from "./DisableIpamOrganizationAdminAccountCommand";
|
|
377
378
|
export * from "./DisableSerialConsoleAccessCommand";
|
|
@@ -399,6 +400,7 @@ export * from "./EnableEbsEncryptionByDefaultCommand";
|
|
|
399
400
|
export * from "./EnableFastLaunchCommand";
|
|
400
401
|
export * from "./EnableFastSnapshotRestoresCommand";
|
|
401
402
|
export * from "./EnableImageBlockPublicAccessCommand";
|
|
403
|
+
export * from "./EnableImageCommand";
|
|
402
404
|
export * from "./EnableImageDeprecationCommand";
|
|
403
405
|
export * from "./EnableIpamOrganizationAdminAccountCommand";
|
|
404
406
|
export * from "./EnableReachabilityAnalyzerOrganizationSharingCommand";
|
|
@@ -457,6 +457,7 @@ export const CapacityReservationInstancePlatform = {
|
|
|
457
457
|
RHEL_WITH_SQL_SERVER_STANDARD: "RHEL with SQL Server Standard",
|
|
458
458
|
RHEL_WITH_SQL_SERVER_WEB: "RHEL with SQL Server Web",
|
|
459
459
|
SUSE_LINUX: "SUSE Linux",
|
|
460
|
+
UBUNTU_PRO_LINUX: "Ubuntu Pro",
|
|
460
461
|
WINDOWS: "Windows",
|
|
461
462
|
WINDOWS_WITH_SQL_SERVER: "Windows with SQL Server",
|
|
462
463
|
WINDOWS_WITH_SQL_SERVER_ENTERPRISE: "Windows with SQL Server Enterprise",
|
|
@@ -3733,6 +3733,16 @@ export const se_DisableFastSnapshotRestoresCommand = async (input, context) => {
|
|
|
3733
3733
|
});
|
|
3734
3734
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
3735
3735
|
};
|
|
3736
|
+
export const se_DisableImageCommand = async (input, context) => {
|
|
3737
|
+
const headers = SHARED_HEADERS;
|
|
3738
|
+
let body;
|
|
3739
|
+
body = buildFormUrlencodedString({
|
|
3740
|
+
...se_DisableImageRequest(input, context),
|
|
3741
|
+
Action: "DisableImage",
|
|
3742
|
+
Version: "2016-11-15",
|
|
3743
|
+
});
|
|
3744
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
3745
|
+
};
|
|
3736
3746
|
export const se_DisableImageBlockPublicAccessCommand = async (input, context) => {
|
|
3737
3747
|
const headers = SHARED_HEADERS;
|
|
3738
3748
|
let body;
|
|
@@ -4003,6 +4013,16 @@ export const se_EnableFastSnapshotRestoresCommand = async (input, context) => {
|
|
|
4003
4013
|
});
|
|
4004
4014
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4005
4015
|
};
|
|
4016
|
+
export const se_EnableImageCommand = async (input, context) => {
|
|
4017
|
+
const headers = SHARED_HEADERS;
|
|
4018
|
+
let body;
|
|
4019
|
+
body = buildFormUrlencodedString({
|
|
4020
|
+
...se_EnableImageRequest(input, context),
|
|
4021
|
+
Action: "EnableImage",
|
|
4022
|
+
Version: "2016-11-15",
|
|
4023
|
+
});
|
|
4024
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4025
|
+
};
|
|
4006
4026
|
export const se_EnableImageBlockPublicAccessCommand = async (input, context) => {
|
|
4007
4027
|
const headers = SHARED_HEADERS;
|
|
4008
4028
|
let body;
|
|
@@ -15581,6 +15601,32 @@ const de_DisableFastSnapshotRestoresCommandError = async (output, context) => {
|
|
|
15581
15601
|
errorCode,
|
|
15582
15602
|
});
|
|
15583
15603
|
};
|
|
15604
|
+
export const de_DisableImageCommand = async (output, context) => {
|
|
15605
|
+
if (output.statusCode >= 300) {
|
|
15606
|
+
return de_DisableImageCommandError(output, context);
|
|
15607
|
+
}
|
|
15608
|
+
const data = await parseBody(output.body, context);
|
|
15609
|
+
let contents = {};
|
|
15610
|
+
contents = de_DisableImageResult(data, context);
|
|
15611
|
+
const response = {
|
|
15612
|
+
$metadata: deserializeMetadata(output),
|
|
15613
|
+
...contents,
|
|
15614
|
+
};
|
|
15615
|
+
return response;
|
|
15616
|
+
};
|
|
15617
|
+
const de_DisableImageCommandError = async (output, context) => {
|
|
15618
|
+
const parsedOutput = {
|
|
15619
|
+
...output,
|
|
15620
|
+
body: await parseErrorBody(output.body, context),
|
|
15621
|
+
};
|
|
15622
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
15623
|
+
const parsedBody = parsedOutput.body;
|
|
15624
|
+
return throwDefaultError({
|
|
15625
|
+
output,
|
|
15626
|
+
parsedBody: parsedBody.Errors.Error,
|
|
15627
|
+
errorCode,
|
|
15628
|
+
});
|
|
15629
|
+
};
|
|
15584
15630
|
export const de_DisableImageBlockPublicAccessCommand = async (output, context) => {
|
|
15585
15631
|
if (output.statusCode >= 300) {
|
|
15586
15632
|
return de_DisableImageBlockPublicAccessCommandError(output, context);
|
|
@@ -16274,6 +16320,32 @@ const de_EnableFastSnapshotRestoresCommandError = async (output, context) => {
|
|
|
16274
16320
|
errorCode,
|
|
16275
16321
|
});
|
|
16276
16322
|
};
|
|
16323
|
+
export const de_EnableImageCommand = async (output, context) => {
|
|
16324
|
+
if (output.statusCode >= 300) {
|
|
16325
|
+
return de_EnableImageCommandError(output, context);
|
|
16326
|
+
}
|
|
16327
|
+
const data = await parseBody(output.body, context);
|
|
16328
|
+
let contents = {};
|
|
16329
|
+
contents = de_EnableImageResult(data, context);
|
|
16330
|
+
const response = {
|
|
16331
|
+
$metadata: deserializeMetadata(output),
|
|
16332
|
+
...contents,
|
|
16333
|
+
};
|
|
16334
|
+
return response;
|
|
16335
|
+
};
|
|
16336
|
+
const de_EnableImageCommandError = async (output, context) => {
|
|
16337
|
+
const parsedOutput = {
|
|
16338
|
+
...output,
|
|
16339
|
+
body: await parseErrorBody(output.body, context),
|
|
16340
|
+
};
|
|
16341
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
16342
|
+
const parsedBody = parsedOutput.body;
|
|
16343
|
+
return throwDefaultError({
|
|
16344
|
+
output,
|
|
16345
|
+
parsedBody: parsedBody.Errors.Error,
|
|
16346
|
+
errorCode,
|
|
16347
|
+
});
|
|
16348
|
+
};
|
|
16277
16349
|
export const de_EnableImageBlockPublicAccessCommand = async (output, context) => {
|
|
16278
16350
|
if (output.statusCode >= 300) {
|
|
16279
16351
|
return de_EnableImageBlockPublicAccessCommandError(output, context);
|
|
@@ -28528,6 +28600,9 @@ const se_DescribeImagesRequest = (input, context) => {
|
|
|
28528
28600
|
if (input.IncludeDeprecated != null) {
|
|
28529
28601
|
entries["IncludeDeprecated"] = input.IncludeDeprecated;
|
|
28530
28602
|
}
|
|
28603
|
+
if (input.IncludeDisabled != null) {
|
|
28604
|
+
entries["IncludeDisabled"] = input.IncludeDisabled;
|
|
28605
|
+
}
|
|
28531
28606
|
if (input.DryRun != null) {
|
|
28532
28607
|
entries["DryRun"] = input.DryRun;
|
|
28533
28608
|
}
|
|
@@ -31972,6 +32047,16 @@ const se_DisableImageDeprecationRequest = (input, context) => {
|
|
|
31972
32047
|
}
|
|
31973
32048
|
return entries;
|
|
31974
32049
|
};
|
|
32050
|
+
const se_DisableImageRequest = (input, context) => {
|
|
32051
|
+
const entries = {};
|
|
32052
|
+
if (input.ImageId != null) {
|
|
32053
|
+
entries["ImageId"] = input.ImageId;
|
|
32054
|
+
}
|
|
32055
|
+
if (input.DryRun != null) {
|
|
32056
|
+
entries["DryRun"] = input.DryRun;
|
|
32057
|
+
}
|
|
32058
|
+
return entries;
|
|
32059
|
+
};
|
|
31975
32060
|
const se_DisableIpamOrganizationAdminAccountRequest = (input, context) => {
|
|
31976
32061
|
const entries = {};
|
|
31977
32062
|
if (input.DryRun != null) {
|
|
@@ -32554,6 +32639,16 @@ const se_EnableImageDeprecationRequest = (input, context) => {
|
|
|
32554
32639
|
}
|
|
32555
32640
|
return entries;
|
|
32556
32641
|
};
|
|
32642
|
+
const se_EnableImageRequest = (input, context) => {
|
|
32643
|
+
const entries = {};
|
|
32644
|
+
if (input.ImageId != null) {
|
|
32645
|
+
entries["ImageId"] = input.ImageId;
|
|
32646
|
+
}
|
|
32647
|
+
if (input.DryRun != null) {
|
|
32648
|
+
entries["DryRun"] = input.DryRun;
|
|
32649
|
+
}
|
|
32650
|
+
return entries;
|
|
32651
|
+
};
|
|
32557
32652
|
const se_EnableIpamOrganizationAdminAccountRequest = (input, context) => {
|
|
32558
32653
|
const entries = {};
|
|
32559
32654
|
if (input.DryRun != null) {
|
|
@@ -49867,6 +49962,13 @@ const de_DisableImageDeprecationResult = (output, context) => {
|
|
|
49867
49962
|
}
|
|
49868
49963
|
return contents;
|
|
49869
49964
|
};
|
|
49965
|
+
const de_DisableImageResult = (output, context) => {
|
|
49966
|
+
const contents = {};
|
|
49967
|
+
if (output["return"] !== undefined) {
|
|
49968
|
+
contents.Return = __parseBoolean(output["return"]);
|
|
49969
|
+
}
|
|
49970
|
+
return contents;
|
|
49971
|
+
};
|
|
49870
49972
|
const de_DisableIpamOrganizationAdminAccountResult = (output, context) => {
|
|
49871
49973
|
const contents = {};
|
|
49872
49974
|
if (output["success"] !== undefined) {
|
|
@@ -50532,6 +50634,13 @@ const de_EnableImageDeprecationResult = (output, context) => {
|
|
|
50532
50634
|
}
|
|
50533
50635
|
return contents;
|
|
50534
50636
|
};
|
|
50637
|
+
const de_EnableImageResult = (output, context) => {
|
|
50638
|
+
const contents = {};
|
|
50639
|
+
if (output["return"] !== undefined) {
|
|
50640
|
+
contents.Return = __parseBoolean(output["return"]);
|
|
50641
|
+
}
|
|
50642
|
+
return contents;
|
|
50643
|
+
};
|
|
50535
50644
|
const de_EnableIpamOrganizationAdminAccountResult = (output, context) => {
|
|
50536
50645
|
const contents = {};
|
|
50537
50646
|
if (output["success"] !== undefined) {
|
|
@@ -52655,6 +52764,9 @@ const de_Image = (output, context) => {
|
|
|
52655
52764
|
if (output["imdsSupport"] !== undefined) {
|
|
52656
52765
|
contents.ImdsSupport = __expectString(output["imdsSupport"]);
|
|
52657
52766
|
}
|
|
52767
|
+
if (output["sourceInstanceId"] !== undefined) {
|
|
52768
|
+
contents.SourceInstanceId = __expectString(output["sourceInstanceId"]);
|
|
52769
|
+
}
|
|
52658
52770
|
return contents;
|
|
52659
52771
|
};
|
|
52660
52772
|
const de_ImageAttribute = (output, context) => {
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -373,6 +373,7 @@ import { DisableEbsEncryptionByDefaultCommandInput, DisableEbsEncryptionByDefaul
|
|
|
373
373
|
import { DisableFastLaunchCommandInput, DisableFastLaunchCommandOutput } from "./commands/DisableFastLaunchCommand";
|
|
374
374
|
import { DisableFastSnapshotRestoresCommandInput, DisableFastSnapshotRestoresCommandOutput } from "./commands/DisableFastSnapshotRestoresCommand";
|
|
375
375
|
import { DisableImageBlockPublicAccessCommandInput, DisableImageBlockPublicAccessCommandOutput } from "./commands/DisableImageBlockPublicAccessCommand";
|
|
376
|
+
import { DisableImageCommandInput, DisableImageCommandOutput } from "./commands/DisableImageCommand";
|
|
376
377
|
import { DisableImageDeprecationCommandInput, DisableImageDeprecationCommandOutput } from "./commands/DisableImageDeprecationCommand";
|
|
377
378
|
import { DisableIpamOrganizationAdminAccountCommandInput, DisableIpamOrganizationAdminAccountCommandOutput } from "./commands/DisableIpamOrganizationAdminAccountCommand";
|
|
378
379
|
import { DisableSerialConsoleAccessCommandInput, DisableSerialConsoleAccessCommandOutput } from "./commands/DisableSerialConsoleAccessCommand";
|
|
@@ -400,6 +401,7 @@ import { EnableEbsEncryptionByDefaultCommandInput, EnableEbsEncryptionByDefaultC
|
|
|
400
401
|
import { EnableFastLaunchCommandInput, EnableFastLaunchCommandOutput } from "./commands/EnableFastLaunchCommand";
|
|
401
402
|
import { EnableFastSnapshotRestoresCommandInput, EnableFastSnapshotRestoresCommandOutput } from "./commands/EnableFastSnapshotRestoresCommand";
|
|
402
403
|
import { EnableImageBlockPublicAccessCommandInput, EnableImageBlockPublicAccessCommandOutput } from "./commands/EnableImageBlockPublicAccessCommand";
|
|
404
|
+
import { EnableImageCommandInput, EnableImageCommandOutput } from "./commands/EnableImageCommand";
|
|
403
405
|
import { EnableImageDeprecationCommandInput, EnableImageDeprecationCommandOutput } from "./commands/EnableImageDeprecationCommand";
|
|
404
406
|
import { EnableIpamOrganizationAdminAccountCommandInput, EnableIpamOrganizationAdminAccountCommandOutput } from "./commands/EnableIpamOrganizationAdminAccountCommand";
|
|
405
407
|
import { EnableReachabilityAnalyzerOrganizationSharingCommandInput, EnableReachabilityAnalyzerOrganizationSharingCommandOutput } from "./commands/EnableReachabilityAnalyzerOrganizationSharingCommand";
|
|
@@ -2836,6 +2838,12 @@ export interface EC2 {
|
|
|
2836
2838
|
disableFastSnapshotRestores(args: DisableFastSnapshotRestoresCommandInput, options?: __HttpHandlerOptions): Promise<DisableFastSnapshotRestoresCommandOutput>;
|
|
2837
2839
|
disableFastSnapshotRestores(args: DisableFastSnapshotRestoresCommandInput, cb: (err: any, data?: DisableFastSnapshotRestoresCommandOutput) => void): void;
|
|
2838
2840
|
disableFastSnapshotRestores(args: DisableFastSnapshotRestoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableFastSnapshotRestoresCommandOutput) => void): void;
|
|
2841
|
+
/**
|
|
2842
|
+
* @see {@link DisableImageCommand}
|
|
2843
|
+
*/
|
|
2844
|
+
disableImage(args: DisableImageCommandInput, options?: __HttpHandlerOptions): Promise<DisableImageCommandOutput>;
|
|
2845
|
+
disableImage(args: DisableImageCommandInput, cb: (err: any, data?: DisableImageCommandOutput) => void): void;
|
|
2846
|
+
disableImage(args: DisableImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableImageCommandOutput) => void): void;
|
|
2839
2847
|
/**
|
|
2840
2848
|
* @see {@link DisableImageBlockPublicAccessCommand}
|
|
2841
2849
|
*/
|
|
@@ -2998,6 +3006,12 @@ export interface EC2 {
|
|
|
2998
3006
|
enableFastSnapshotRestores(args: EnableFastSnapshotRestoresCommandInput, options?: __HttpHandlerOptions): Promise<EnableFastSnapshotRestoresCommandOutput>;
|
|
2999
3007
|
enableFastSnapshotRestores(args: EnableFastSnapshotRestoresCommandInput, cb: (err: any, data?: EnableFastSnapshotRestoresCommandOutput) => void): void;
|
|
3000
3008
|
enableFastSnapshotRestores(args: EnableFastSnapshotRestoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableFastSnapshotRestoresCommandOutput) => void): void;
|
|
3009
|
+
/**
|
|
3010
|
+
* @see {@link EnableImageCommand}
|
|
3011
|
+
*/
|
|
3012
|
+
enableImage(args: EnableImageCommandInput, options?: __HttpHandlerOptions): Promise<EnableImageCommandOutput>;
|
|
3013
|
+
enableImage(args: EnableImageCommandInput, cb: (err: any, data?: EnableImageCommandOutput) => void): void;
|
|
3014
|
+
enableImage(args: EnableImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableImageCommandOutput) => void): void;
|
|
3001
3015
|
/**
|
|
3002
3016
|
* @see {@link EnableImageBlockPublicAccessCommand}
|
|
3003
3017
|
*/
|