@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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
5
|
+
import { EnableImageRequest, EnableImageResult } from "../models/models_5";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link EnableImageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface EnableImageCommandInput extends EnableImageRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link EnableImageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface EnableImageCommandOutput extends EnableImageResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Re-enables a disabled AMI. The re-enabled AMI is marked as <code>available</code> and can
|
|
27
|
+
* be used for instance launches, appears in describe operations, and can be shared. Amazon Web Services
|
|
28
|
+
* accounts, organizations, and Organizational Units that lost access to the AMI when it was
|
|
29
|
+
* disabled do not regain access automatically. Once the AMI is available, it can be shared with
|
|
30
|
+
* them again.</p>
|
|
31
|
+
* <p>Only the AMI owner can re-enable a disabled AMI.</p>
|
|
32
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html">Disable an AMI</a> in the
|
|
33
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { EC2Client, EnableImageCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
38
|
+
* // const { EC2Client, EnableImageCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
39
|
+
* const client = new EC2Client(config);
|
|
40
|
+
* const input = { // EnableImageRequest
|
|
41
|
+
* ImageId: "STRING_VALUE", // required
|
|
42
|
+
* DryRun: true || false,
|
|
43
|
+
* };
|
|
44
|
+
* const command = new EnableImageCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // EnableImageResult
|
|
47
|
+
* // Return: true || false,
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param EnableImageCommandInput - {@link EnableImageCommandInput}
|
|
53
|
+
* @returns {@link EnableImageCommandOutput}
|
|
54
|
+
* @see {@link EnableImageCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link EnableImageCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link EC2ServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export declare class EnableImageCommand extends $Command<EnableImageCommandInput, EnableImageCommandOutput, EC2ClientResolvedConfig> {
|
|
63
|
+
readonly input: EnableImageCommandInput;
|
|
64
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
constructor(input: EnableImageCommandInput);
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<EnableImageCommandInput, EnableImageCommandOutput>;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
private serialize;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
private deserialize;
|
|
81
|
+
}
|
|
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
5
|
-
import { GetTransitGatewayRouteTablePropagationsRequest
|
|
5
|
+
import { GetTransitGatewayRouteTablePropagationsRequest } from "../models/models_5";
|
|
6
|
+
import { GetTransitGatewayRouteTablePropagationsResult } from "../models/models_6";
|
|
6
7
|
/**
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
5
|
-
import { GetVerifiedAccessEndpointPolicyRequest, GetVerifiedAccessEndpointPolicyResult } from "../models/
|
|
5
|
+
import { GetVerifiedAccessEndpointPolicyRequest, GetVerifiedAccessEndpointPolicyResult } from "../models/models_6";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -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";
|