@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.
Files changed (53) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/EC2.js +4 -0
  3. package/dist-cjs/commands/DisableImageCommand.js +51 -0
  4. package/dist-cjs/commands/EnableImageCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +1 -0
  7. package/dist-cjs/models/models_3.js +1 -0
  8. package/dist-cjs/protocols/Aws_ec2.js +133 -17
  9. package/dist-es/EC2.js +4 -0
  10. package/dist-es/commands/DisableImageCommand.js +47 -0
  11. package/dist-es/commands/EnableImageCommand.js +47 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/models/models_0.js +1 -0
  14. package/dist-es/models/models_3.js +1 -0
  15. package/dist-es/protocols/Aws_ec2.js +112 -0
  16. package/dist-types/EC2.d.ts +14 -0
  17. package/dist-types/EC2Client.d.ts +4 -2
  18. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  20. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeImagesCommand.d.ts +3 -1
  23. package/dist-types/commands/DisableImageCommand.d.ts +84 -0
  24. package/dist-types/commands/EnableImageCommand.d.ts +81 -0
  25. package/dist-types/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -1
  26. package/dist-types/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
  27. package/dist-types/commands/index.d.ts +2 -0
  28. package/dist-types/models/models_0.d.ts +80 -79
  29. package/dist-types/models/models_1.d.ts +131 -131
  30. package/dist-types/models/models_2.d.ts +105 -105
  31. package/dist-types/models/models_3.d.ts +99 -79
  32. package/dist-types/models/models_4.d.ts +115 -111
  33. package/dist-types/models/models_5.d.ts +119 -143
  34. package/dist-types/models/models_6.d.ts +159 -181
  35. package/dist-types/models/models_7.d.ts +113 -13
  36. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  37. package/dist-types/ts3.4/EC2.d.ts +34 -0
  38. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  39. package/dist-types/ts3.4/commands/DisableImageCommand.d.ts +35 -0
  40. package/dist-types/ts3.4/commands/EnableImageCommand.d.ts +35 -0
  41. package/dist-types/ts3.4/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -4
  42. package/dist-types/ts3.4/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +80 -79
  45. package/dist-types/ts3.4/models/models_1.d.ts +131 -133
  46. package/dist-types/ts3.4/models/models_2.d.ts +105 -107
  47. package/dist-types/ts3.4/models/models_3.d.ts +81 -80
  48. package/dist-types/ts3.4/models/models_4.d.ts +109 -109
  49. package/dist-types/ts3.4/models/models_5.d.ts +79 -87
  50. package/dist-types/ts3.4/models/models_6.d.ts +99 -98
  51. package/dist-types/ts3.4/models/models_7.d.ts +31 -14
  52. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  53. 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, GetTransitGatewayRouteTablePropagationsResult } from "../models/models_5";
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/models_5";
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";