@aws-sdk/client-ec2 3.556.0 → 3.561.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/index.js +164 -26
- package/dist-es/EC2.js +4 -0
- package/dist-es/commands/DisableImageDeregistrationProtectionCommand.js +24 -0
- package/dist-es/commands/EnableImageDeregistrationProtectionCommand.js +24 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_3.js +1 -0
- package/dist-es/models/models_5.js +0 -11
- package/dist-es/models/models_6.js +11 -0
- package/dist-es/protocols/Aws_ec2.js +110 -13
- package/dist-types/EC2.d.ts +14 -0
- package/dist-types/EC2Client.d.ts +4 -2
- package/dist-types/commands/CancelSpotFleetRequestsCommand.d.ts +9 -0
- package/dist-types/commands/CreateDhcpOptionsCommand.d.ts +1 -1
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +3 -3
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +6 -5
- package/dist-types/commands/DeleteFleetsCommand.d.ts +15 -8
- package/dist-types/commands/DescribeImageAttributeCommand.d.ts +2 -1
- package/dist-types/commands/DescribeImagesCommand.d.ts +6 -0
- package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeInstancesCommand.d.ts +4 -0
- package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +4 -0
- package/dist-types/commands/DescribeSnapshotsCommand.d.ts +4 -0
- package/dist-types/commands/DescribeTagsCommand.d.ts +4 -0
- package/dist-types/commands/DescribeVolumesCommand.d.ts +4 -0
- package/dist-types/commands/DisableImageDeregistrationProtectionCommand.d.ts +66 -0
- package/dist-types/commands/EnableImageDeregistrationProtectionCommand.d.ts +66 -0
- package/dist-types/commands/GetConsoleScreenshotCommand.d.ts +1 -0
- package/dist-types/commands/GetIpamDiscoveredAccountsCommand.d.ts +2 -1
- package/dist-types/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +1 -2
- package/dist-types/commands/ModifyInstanceMetadataDefaultsCommand.d.ts +3 -2
- package/dist-types/commands/ProvisionPublicIpv4PoolCidrCommand.d.ts +2 -1
- package/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +1 -1
- package/dist-types/commands/PurchaseHostReservationCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +2 -1
- package/dist-types/models/models_1.d.ts +23 -20
- package/dist-types/models/models_2.d.ts +10 -8
- package/dist-types/models/models_3.d.ts +22 -0
- package/dist-types/models/models_4.d.ts +38 -16
- package/dist-types/models/models_5.d.ts +65 -83
- package/dist-types/models/models_6.d.ts +90 -104
- package/dist-types/models/models_7.d.ts +114 -37
- package/dist-types/protocols/Aws_ec2.d.ts +18 -0
- package/dist-types/ts3.4/EC2.d.ts +46 -0
- package/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/dist-types/ts3.4/commands/DisableImageDeregistrationProtectionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/EnableImageDeregistrationProtectionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetIpamDiscoveredAccountsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ProvisionPublicIpv4PoolCidrCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/PurchaseCapacityBlockCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PurchaseHostReservationCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_3.d.ts +4 -0
- package/dist-types/ts3.4/models/models_5.d.ts +15 -27
- package/dist-types/ts3.4/models/models_6.d.ts +28 -27
- package/dist-types/ts3.4/models/models_7.d.ts +24 -0
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
- package/package.json +1 -1
|
@@ -26,13 +26,14 @@ declare const CreateLaunchTemplateVersionCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* <p>Creates a new version of a launch template. You
|
|
30
|
-
*
|
|
29
|
+
* <p>Creates a new version of a launch template. You must specify an existing launch
|
|
30
|
+
* template, either by name or ID. You can determine whether the new version inherits
|
|
31
|
+
* parameters from a source version, and add or overwrite parameters as needed.</p>
|
|
31
32
|
* <p>Launch template versions are numbered in the order in which they are created. You
|
|
32
|
-
*
|
|
33
|
+
* can't specify, change, or replace the numbering of launch template versions.</p>
|
|
33
34
|
* <p>Launch templates are immutable; after you create a launch template, you can't modify
|
|
34
|
-
* it. Instead, you can create a new version of the launch template that includes
|
|
35
|
-
* changes you require.</p>
|
|
35
|
+
* it. Instead, you can create a new version of the launch template that includes the
|
|
36
|
+
* changes that you require.</p>
|
|
36
37
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions">Modify a launch template (manage launch template versions)</a> in the
|
|
37
38
|
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
38
39
|
* @example
|
|
@@ -33,21 +33,28 @@ declare const DeleteFleetsCommand_base: {
|
|
|
33
33
|
* state. Otherwise, the EC2 Fleet enters the <code>deleted_running</code> state, and the instances
|
|
34
34
|
* continue to run until they are interrupted or you terminate them manually.</p>
|
|
35
35
|
* <p>For <code>instant</code> fleets, EC2 Fleet must terminate the instances when the fleet is
|
|
36
|
-
* deleted.
|
|
37
|
-
*
|
|
36
|
+
* deleted. Up to 1000 instances can be terminated in a single request to delete
|
|
37
|
+
* <code>instant</code> fleets. A deleted <code>instant</code> fleet with running instances
|
|
38
|
+
* is not supported.</p>
|
|
38
39
|
* <p class="title">
|
|
39
40
|
* <b>Restrictions</b>
|
|
40
41
|
* </p>
|
|
41
42
|
* <ul>
|
|
42
43
|
* <li>
|
|
43
|
-
* <p>You can delete up to 25 <code>instant</code>
|
|
44
|
-
*
|
|
45
|
-
* restriction on the number of fleets of type <code>maintain</code> or <code>request</code> that can be deleted
|
|
46
|
-
* in a single request.</p>
|
|
44
|
+
* <p>You can delete up to 25 fleets of type <code>instant</code> in a single
|
|
45
|
+
* request.</p>
|
|
47
46
|
* </li>
|
|
48
47
|
* <li>
|
|
49
|
-
* <p>
|
|
50
|
-
*
|
|
48
|
+
* <p>You can delete up to 100 fleets of type <code>maintain</code> or
|
|
49
|
+
* <code>request</code> in a single request.</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>You can delete up to 125 fleets in a single request, provided you do not exceed
|
|
53
|
+
* the quota for each fleet type, as specified above.</p>
|
|
54
|
+
* </li>
|
|
55
|
+
* <li>
|
|
56
|
+
* <p>If you exceed the specified number of fleets to delete, no fleets are
|
|
57
|
+
* deleted.</p>
|
|
51
58
|
* </li>
|
|
52
59
|
* </ul>
|
|
53
60
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#delete-fleet">Delete an EC2
|
|
@@ -39,7 +39,7 @@ declare const DescribeImageAttributeCommand_base: {
|
|
|
39
39
|
* // const { EC2Client, DescribeImageAttributeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
40
40
|
* const client = new EC2Client(config);
|
|
41
41
|
* const input = { // DescribeImageAttributeRequest
|
|
42
|
-
* Attribute: "description" || "kernel" || "ramdisk" || "launchPermission" || "productCodes" || "blockDeviceMapping" || "sriovNetSupport" || "bootMode" || "tpmSupport" || "uefiData" || "lastLaunchedTime" || "imdsSupport", // required
|
|
42
|
+
* Attribute: "description" || "kernel" || "ramdisk" || "launchPermission" || "productCodes" || "blockDeviceMapping" || "sriovNetSupport" || "bootMode" || "tpmSupport" || "uefiData" || "lastLaunchedTime" || "imdsSupport" || "deregistrationProtection", // required
|
|
43
43
|
* ImageId: "STRING_VALUE", // required
|
|
44
44
|
* DryRun: true || false,
|
|
45
45
|
* };
|
|
@@ -98,6 +98,7 @@ declare const DescribeImageAttributeCommand_base: {
|
|
|
98
98
|
* // UefiData: "<AttributeValue>",
|
|
99
99
|
* // LastLaunchedTime: "<AttributeValue>",
|
|
100
100
|
* // ImdsSupport: "<AttributeValue>",
|
|
101
|
+
* // DeregistrationProtection: "<AttributeValue>",
|
|
101
102
|
* // };
|
|
102
103
|
*
|
|
103
104
|
* ```
|
|
@@ -33,6 +33,10 @@ declare const DescribeImagesCommand_base: {
|
|
|
33
33
|
* return empty results. After all instances that reference a deregistered AMI are terminated,
|
|
34
34
|
* specifying the ID of the image will eventually return an error indicating that the AMI ID
|
|
35
35
|
* cannot be found.</p>
|
|
36
|
+
* <important>
|
|
37
|
+
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
|
|
38
|
+
* susceptible to throttling and timeouts.</p>
|
|
39
|
+
* </important>
|
|
36
40
|
* <note>
|
|
37
41
|
* <p>The order of the elements in the response, including those within nested
|
|
38
42
|
* structures, might vary. Applications should not assume the elements appear in a
|
|
@@ -134,6 +138,8 @@ declare const DescribeImagesCommand_base: {
|
|
|
134
138
|
* // DeprecationTime: "STRING_VALUE",
|
|
135
139
|
* // ImdsSupport: "v2.0",
|
|
136
140
|
* // SourceInstanceId: "STRING_VALUE",
|
|
141
|
+
* // DeregistrationProtection: "STRING_VALUE",
|
|
142
|
+
* // LastLaunchedTime: "STRING_VALUE",
|
|
137
143
|
* // },
|
|
138
144
|
* // ],
|
|
139
145
|
* // NextToken: "STRING_VALUE",
|
|
@@ -26,8 +26,8 @@ declare const DescribeInstanceTypeOfferingsCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* <p>
|
|
30
|
-
*
|
|
29
|
+
* <p>Lists the instance types that are offered for the specified location. If no location is specified, the default
|
|
30
|
+
* is to list the instance types that are offered in the current Region.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -26,8 +26,8 @@ declare const DescribeInstanceTypesCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* <p>Describes the
|
|
30
|
-
*
|
|
29
|
+
* <p>Describes the specified instance types. By default, all instance types for the current Region are described.
|
|
30
|
+
* Alternatively, you can filter the results.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -42,6 +42,10 @@ declare const DescribeInstancesCommand_base: {
|
|
|
42
42
|
* not specify any instance IDs at all, the call fails. If you describe instances and
|
|
43
43
|
* specify only instance IDs that are in an unaffected zone, the call works
|
|
44
44
|
* normally.</p>
|
|
45
|
+
* <important>
|
|
46
|
+
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
|
|
47
|
+
* susceptible to throttling and timeouts.</p>
|
|
48
|
+
* </important>
|
|
45
49
|
* <note>
|
|
46
50
|
* <p>The order of the elements in the response, including those within nested
|
|
47
51
|
* structures, might vary. Applications should not assume the elements appear in a
|
|
@@ -31,6 +31,10 @@ declare const DescribeNetworkInterfacesCommand_base: {
|
|
|
31
31
|
* you use pagination or one of the following filters: <code>group-id</code>,
|
|
32
32
|
* <code>mac-address</code>, <code>private-dns-name</code>, <code>private-ip-address</code>,
|
|
33
33
|
* <code>private-dns-name</code>, <code>subnet-id</code>, or <code>vpc-id</code>.</p>
|
|
34
|
+
* <important>
|
|
35
|
+
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
|
|
36
|
+
* susceptible to throttling and timeouts.</p>
|
|
37
|
+
* </important>
|
|
34
38
|
* @example
|
|
35
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
40
|
* ```javascript
|
|
@@ -69,6 +69,10 @@ declare const DescribeSnapshotsCommand_base: {
|
|
|
69
69
|
* list more manageable. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
70
70
|
* <p>To get the state of fast snapshot restores for a snapshot, use <a>DescribeFastSnapshotRestores</a>.</p>
|
|
71
71
|
* <p>For more information about EBS snapshots, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshots.html">Amazon EBS snapshots</a> in the <i>Amazon EBS User Guide</i>.</p>
|
|
72
|
+
* <important>
|
|
73
|
+
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
|
|
74
|
+
* susceptible to throttling and timeouts.</p>
|
|
75
|
+
* </important>
|
|
72
76
|
* @example
|
|
73
77
|
* Use a bare-bones client and the command you need to make an API call.
|
|
74
78
|
* ```javascript
|
|
@@ -29,6 +29,10 @@ declare const DescribeTagsCommand_base: {
|
|
|
29
29
|
* <p>Describes the specified tags for your EC2 resources.</p>
|
|
30
30
|
* <p>For more information about tags, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html">Tag your Amazon EC2 resources</a> in the
|
|
31
31
|
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
32
|
+
* <important>
|
|
33
|
+
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
|
|
34
|
+
* susceptible to throttling and timeouts.</p>
|
|
35
|
+
* </important>
|
|
32
36
|
* <note>
|
|
33
37
|
* <p>The order of the elements in the response, including those within nested
|
|
34
38
|
* structures, might vary. Applications should not assume the elements appear in a
|
|
@@ -30,6 +30,10 @@ declare const DescribeVolumesCommand_base: {
|
|
|
30
30
|
* <p>If you are describing a long list of volumes, we recommend that you paginate the output to make the list
|
|
31
31
|
* more manageable. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
32
32
|
* <p>For more information about EBS volumes, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html">Amazon EBS volumes</a> in the <i>Amazon EBS User Guide</i>.</p>
|
|
33
|
+
* <important>
|
|
34
|
+
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
|
|
35
|
+
* susceptible to throttling and timeouts.</p>
|
|
36
|
+
* </important>
|
|
33
37
|
* <note>
|
|
34
38
|
* <p>The order of the elements in the response, including those within nested
|
|
35
39
|
* structures, might vary. Applications should not assume the elements appear in a
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { DisableImageDeregistrationProtectionRequest, DisableImageDeregistrationProtectionResult } from "../models/models_5";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DisableImageDeregistrationProtectionCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DisableImageDeregistrationProtectionCommandInput extends DisableImageDeregistrationProtectionRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DisableImageDeregistrationProtectionCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DisableImageDeregistrationProtectionCommandOutput extends DisableImageDeregistrationProtectionResult, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const DisableImageDeregistrationProtectionCommand_base: {
|
|
24
|
+
new (input: DisableImageDeregistrationProtectionCommandInput): import("@smithy/smithy-client").CommandImpl<DisableImageDeregistrationProtectionCommandInput, DisableImageDeregistrationProtectionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DisableImageDeregistrationProtectionCommandInput): import("@smithy/smithy-client").CommandImpl<DisableImageDeregistrationProtectionCommandInput, DisableImageDeregistrationProtectionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Disables deregistration protection for an AMI. When deregistration protection is disabled,
|
|
30
|
+
* the AMI can be deregistered.</p>
|
|
31
|
+
* <p>If you chose to include a 24-hour cooldown period when you enabled deregistration
|
|
32
|
+
* protection for the AMI, then, when you disable deregistration protection, you won’t
|
|
33
|
+
* immediately be able to deregister the AMI.</p>
|
|
34
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection">Protect an
|
|
35
|
+
* AMI from deregistration</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { EC2Client, DisableImageDeregistrationProtectionCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
40
|
+
* // const { EC2Client, DisableImageDeregistrationProtectionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
41
|
+
* const client = new EC2Client(config);
|
|
42
|
+
* const input = { // DisableImageDeregistrationProtectionRequest
|
|
43
|
+
* ImageId: "STRING_VALUE", // required
|
|
44
|
+
* DryRun: true || false,
|
|
45
|
+
* };
|
|
46
|
+
* const command = new DisableImageDeregistrationProtectionCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // DisableImageDeregistrationProtectionResult
|
|
49
|
+
* // Return: "STRING_VALUE",
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param DisableImageDeregistrationProtectionCommandInput - {@link DisableImageDeregistrationProtectionCommandInput}
|
|
55
|
+
* @returns {@link DisableImageDeregistrationProtectionCommandOutput}
|
|
56
|
+
* @see {@link DisableImageDeregistrationProtectionCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link DisableImageDeregistrationProtectionCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link EC2ServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare class DisableImageDeregistrationProtectionCommand extends DisableImageDeregistrationProtectionCommand_base {
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { EnableImageDeregistrationProtectionRequest, EnableImageDeregistrationProtectionResult } from "../models/models_5";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link EnableImageDeregistrationProtectionCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface EnableImageDeregistrationProtectionCommandInput extends EnableImageDeregistrationProtectionRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link EnableImageDeregistrationProtectionCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface EnableImageDeregistrationProtectionCommandOutput extends EnableImageDeregistrationProtectionResult, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const EnableImageDeregistrationProtectionCommand_base: {
|
|
24
|
+
new (input: EnableImageDeregistrationProtectionCommandInput): import("@smithy/smithy-client").CommandImpl<EnableImageDeregistrationProtectionCommandInput, EnableImageDeregistrationProtectionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: EnableImageDeregistrationProtectionCommandInput): import("@smithy/smithy-client").CommandImpl<EnableImageDeregistrationProtectionCommandInput, EnableImageDeregistrationProtectionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Enables deregistration protection for an AMI. When deregistration protection is enabled,
|
|
30
|
+
* the AMI can't be deregistered.</p>
|
|
31
|
+
* <p>To allow the AMI to be deregistered, you must first disable deregistration protection
|
|
32
|
+
* using <a>DisableImageDeregistrationProtection</a>.</p>
|
|
33
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection">Protect an
|
|
34
|
+
* AMI from deregistration</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { EC2Client, EnableImageDeregistrationProtectionCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
39
|
+
* // const { EC2Client, EnableImageDeregistrationProtectionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
40
|
+
* const client = new EC2Client(config);
|
|
41
|
+
* const input = { // EnableImageDeregistrationProtectionRequest
|
|
42
|
+
* ImageId: "STRING_VALUE", // required
|
|
43
|
+
* WithCooldown: true || false,
|
|
44
|
+
* DryRun: true || false,
|
|
45
|
+
* };
|
|
46
|
+
* const command = new EnableImageDeregistrationProtectionCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // EnableImageDeregistrationProtectionResult
|
|
49
|
+
* // Return: "STRING_VALUE",
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param EnableImageDeregistrationProtectionCommandInput - {@link EnableImageDeregistrationProtectionCommandInput}
|
|
55
|
+
* @returns {@link EnableImageDeregistrationProtectionCommandOutput}
|
|
56
|
+
* @see {@link EnableImageDeregistrationProtectionCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link EnableImageDeregistrationProtectionCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link EC2ServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare class EnableImageDeregistrationProtectionCommand extends EnableImageDeregistrationProtectionCommand_base {
|
|
66
|
+
}
|
|
@@ -29,6 +29,7 @@ declare const GetConsoleScreenshotCommand_base: {
|
|
|
29
29
|
* <p>Retrieve a JPG-format screenshot of a running instance to help with
|
|
30
30
|
* troubleshooting.</p>
|
|
31
31
|
* <p>The returned content is Base64-encoded.</p>
|
|
32
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output">Instance console output</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetIpamDiscoveredAccountsRequest
|
|
4
|
+
import { GetIpamDiscoveredAccountsRequest } from "../models/models_5";
|
|
5
|
+
import { GetIpamDiscoveredAccountsResult } from "../models/models_6";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetIpamDiscoveredPublicAddressesRequest } from "../models/
|
|
5
|
-
import { GetIpamDiscoveredPublicAddressesResult } from "../models/models_6";
|
|
4
|
+
import { GetIpamDiscoveredPublicAddressesRequest, GetIpamDiscoveredPublicAddressesResult } from "../models/models_6";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -31,8 +31,9 @@ declare const ModifyInstanceMetadataDefaultsCommand_base: {
|
|
|
31
31
|
Region.</p>
|
|
32
32
|
* <note>
|
|
33
33
|
* <p>To remove a parameter's account-level default setting, specify
|
|
34
|
-
* <code>no-preference</code>.
|
|
35
|
-
*
|
|
34
|
+
* <code>no-preference</code>. If an account-level setting is cleared with
|
|
35
|
+
* <code>no-preference</code>, then the instance launch considers the other
|
|
36
|
+
* instance metadata settings. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence">Order of precedence for instance metadata options</a> in the
|
|
36
37
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
37
38
|
* </note>
|
|
38
39
|
* @example
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ProvisionPublicIpv4PoolCidrRequest
|
|
4
|
+
import { ProvisionPublicIpv4PoolCidrRequest } from "../models/models_6";
|
|
5
|
+
import { ProvisionPublicIpv4PoolCidrResult } from "../models/models_7";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { PurchaseCapacityBlockRequest, PurchaseCapacityBlockResult } from "../models/
|
|
4
|
+
import { PurchaseCapacityBlockRequest, PurchaseCapacityBlockResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { PurchaseHostReservationRequest } from "../models/
|
|
5
|
-
import { PurchaseHostReservationResult } from "../models/models_7";
|
|
4
|
+
import { PurchaseHostReservationRequest, PurchaseHostReservationResult } from "../models/models_7";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -381,6 +381,7 @@ export * from "./DisableFastSnapshotRestoresCommand";
|
|
|
381
381
|
export * from "./DisableImageBlockPublicAccessCommand";
|
|
382
382
|
export * from "./DisableImageCommand";
|
|
383
383
|
export * from "./DisableImageDeprecationCommand";
|
|
384
|
+
export * from "./DisableImageDeregistrationProtectionCommand";
|
|
384
385
|
export * from "./DisableIpamOrganizationAdminAccountCommand";
|
|
385
386
|
export * from "./DisableSerialConsoleAccessCommand";
|
|
386
387
|
export * from "./DisableSnapshotBlockPublicAccessCommand";
|
|
@@ -411,6 +412,7 @@ export * from "./EnableFastSnapshotRestoresCommand";
|
|
|
411
412
|
export * from "./EnableImageBlockPublicAccessCommand";
|
|
412
413
|
export * from "./EnableImageCommand";
|
|
413
414
|
export * from "./EnableImageDeprecationCommand";
|
|
415
|
+
export * from "./EnableImageDeregistrationProtectionCommand";
|
|
414
416
|
export * from "./EnableIpamOrganizationAdminAccountCommand";
|
|
415
417
|
export * from "./EnableReachabilityAnalyzerOrganizationSharingCommand";
|
|
416
418
|
export * from "./EnableSerialConsoleAccessCommand";
|
|
@@ -3694,7 +3694,7 @@ export interface AssociateEnclaveCertificateIamRoleResult {
|
|
|
3694
3694
|
CertificateS3BucketName?: string;
|
|
3695
3695
|
/**
|
|
3696
3696
|
* <p>The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored. The
|
|
3697
|
-
* object key is formatted as follows:
|
|
3697
|
+
* object key is formatted as follows: <code>role_arn</code>/<code>certificate_arn</code>.</p>
|
|
3698
3698
|
* @public
|
|
3699
3699
|
*/
|
|
3700
3700
|
CertificateS3ObjectKey?: string;
|
|
@@ -6580,6 +6580,7 @@ export interface CancelSpotFleetRequestsRequest {
|
|
|
6580
6580
|
DryRun?: boolean;
|
|
6581
6581
|
/**
|
|
6582
6582
|
* <p>The IDs of the Spot Fleet requests.</p>
|
|
6583
|
+
* <p>Constraint: You can specify up to 100 IDs in a single request.</p>
|
|
6583
6584
|
* @public
|
|
6584
6585
|
*/
|
|
6585
6586
|
SpotFleetRequestIds: string[] | undefined;
|
|
@@ -3363,13 +3363,13 @@ export interface CreateFleetError {
|
|
|
3363
3363
|
Lifecycle?: InstanceLifecycle;
|
|
3364
3364
|
/**
|
|
3365
3365
|
* <p>The error code that indicates why the instance could not be launched. For more
|
|
3366
|
-
* information about error codes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html
|
|
3366
|
+
* information about error codes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html">Error codes</a>.</p>
|
|
3367
3367
|
* @public
|
|
3368
3368
|
*/
|
|
3369
3369
|
ErrorCode?: string;
|
|
3370
3370
|
/**
|
|
3371
3371
|
* <p>The error message that describes why the instance could not be launched. For more
|
|
3372
|
-
* information about error messages, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html
|
|
3372
|
+
* information about error messages, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html">Error codes</a>.</p>
|
|
3373
3373
|
* @public
|
|
3374
3374
|
*/
|
|
3375
3375
|
ErrorMessage?: string;
|
|
@@ -6547,8 +6547,7 @@ export interface RequestLaunchTemplateData {
|
|
|
6547
6547
|
*/
|
|
6548
6548
|
BlockDeviceMappings?: LaunchTemplateBlockDeviceMappingRequest[];
|
|
6549
6549
|
/**
|
|
6550
|
-
* <p>
|
|
6551
|
-
* any security groups and subnets as part of the network interface.</p>
|
|
6550
|
+
* <p>The network interfaces for the instance.</p>
|
|
6552
6551
|
* @public
|
|
6553
6552
|
*/
|
|
6554
6553
|
NetworkInterfaces?: LaunchTemplateInstanceNetworkInterfaceSpecificationRequest[];
|
|
@@ -6690,13 +6689,17 @@ export interface RequestLaunchTemplateData {
|
|
|
6690
6689
|
*/
|
|
6691
6690
|
ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAccelerator[];
|
|
6692
6691
|
/**
|
|
6693
|
-
* <p>
|
|
6692
|
+
* <p>The IDs of the security groups.</p>
|
|
6693
|
+
* <p>If you specify a network interface, you must specify any security groups as part of
|
|
6694
|
+
* the network interface instead of using this parameter.</p>
|
|
6694
6695
|
* @public
|
|
6695
6696
|
*/
|
|
6696
6697
|
SecurityGroupIds?: string[];
|
|
6697
6698
|
/**
|
|
6698
|
-
* <p>
|
|
6699
|
+
* <p>The names of the security groups. For a nondefault VPC, you must use security group
|
|
6699
6700
|
* IDs instead.</p>
|
|
6701
|
+
* <p>If you specify a network interface, you must specify any security groups as part of
|
|
6702
|
+
* the network interface instead of using this parameter.</p>
|
|
6700
6703
|
* @public
|
|
6701
6704
|
*/
|
|
6702
6705
|
SecurityGroups?: string[];
|
|
@@ -6844,11 +6847,8 @@ export interface CreateLaunchTemplateRequest {
|
|
|
6844
6847
|
/**
|
|
6845
6848
|
* <p>The tags to apply to the launch template on creation. To tag the launch template, the
|
|
6846
6849
|
* resource type must be <code>launch-template</code>.</p>
|
|
6847
|
-
* <
|
|
6848
|
-
*
|
|
6849
|
-
* launched, you must use the <code>TagSpecifications</code> parameter in the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestLaunchTemplateData.html">launch
|
|
6850
|
-
* template data</a> structure.</p>
|
|
6851
|
-
* </note>
|
|
6850
|
+
* <p>To specify the tags for the resources that are created when an instance is
|
|
6851
|
+
* launched, you must use the <code>TagSpecifications</code> parameter in the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestLaunchTemplateData.html">launch template data</a> structure.</p>
|
|
6852
6852
|
* @public
|
|
6853
6853
|
*/
|
|
6854
6854
|
TagSpecifications?: TagSpecification[];
|
|
@@ -6966,24 +6966,27 @@ export interface CreateLaunchTemplateVersionRequest {
|
|
|
6966
6966
|
ClientToken?: string;
|
|
6967
6967
|
/**
|
|
6968
6968
|
* <p>The ID of the launch template.</p>
|
|
6969
|
-
* <p>You must specify either the
|
|
6970
|
-
*
|
|
6969
|
+
* <p>You must specify either the launch template ID or the
|
|
6970
|
+
* launch template name, but not both.</p>
|
|
6971
6971
|
* @public
|
|
6972
6972
|
*/
|
|
6973
6973
|
LaunchTemplateId?: string;
|
|
6974
6974
|
/**
|
|
6975
6975
|
* <p>The name of the launch template.</p>
|
|
6976
|
-
* <p>You must specify the
|
|
6977
|
-
*
|
|
6976
|
+
* <p>You must specify either the launch template ID or the
|
|
6977
|
+
* launch template name, but not both.</p>
|
|
6978
6978
|
* @public
|
|
6979
6979
|
*/
|
|
6980
6980
|
LaunchTemplateName?: string;
|
|
6981
6981
|
/**
|
|
6982
|
-
* <p>The version
|
|
6983
|
-
*
|
|
6984
|
-
*
|
|
6985
|
-
*
|
|
6986
|
-
*
|
|
6982
|
+
* <p>The version of the launch template on which to base the new version.
|
|
6983
|
+
* Snapshots applied to the block device mapping are ignored when creating a new version
|
|
6984
|
+
* unless they are explicitly included.</p>
|
|
6985
|
+
* <p>If you specify this parameter, the new version inherits the launch parameters from the
|
|
6986
|
+
* source version. If you specify additional launch parameters for the new version, they
|
|
6987
|
+
* overwrite any corresponding launch parameters inherited from the source version.</p>
|
|
6988
|
+
* <p>If you omit this parameter, the new version contains only the launch parameters
|
|
6989
|
+
* that you specify for the new version.</p>
|
|
6987
6990
|
* @public
|
|
6988
6991
|
*/
|
|
6989
6992
|
SourceVersion?: string;
|
|
@@ -7133,6 +7133,8 @@ export interface DeleteFleetsRequest {
|
|
|
7133
7133
|
DryRun?: boolean;
|
|
7134
7134
|
/**
|
|
7135
7135
|
* <p>The IDs of the EC2 Fleets.</p>
|
|
7136
|
+
* <p>Constraints: In a single request, you can specify up to 25 <code>instant</code> fleet
|
|
7137
|
+
* IDs and up to 100 <code>maintain</code> or <code>request</code> fleet IDs. </p>
|
|
7136
7138
|
* @public
|
|
7137
7139
|
*/
|
|
7138
7140
|
FleetIds: string[] | undefined;
|
|
@@ -7589,15 +7591,15 @@ export interface DeleteLaunchTemplateRequest {
|
|
|
7589
7591
|
DryRun?: boolean;
|
|
7590
7592
|
/**
|
|
7591
7593
|
* <p>The ID of the launch template.</p>
|
|
7592
|
-
* <p>You must specify either the
|
|
7593
|
-
*
|
|
7594
|
+
* <p>You must specify either the launch template ID or the
|
|
7595
|
+
* launch template name, but not both.</p>
|
|
7594
7596
|
* @public
|
|
7595
7597
|
*/
|
|
7596
7598
|
LaunchTemplateId?: string;
|
|
7597
7599
|
/**
|
|
7598
7600
|
* <p>The name of the launch template.</p>
|
|
7599
|
-
* <p>You must specify either the
|
|
7600
|
-
*
|
|
7601
|
+
* <p>You must specify either the launch template ID or the
|
|
7602
|
+
* launch template name, but not both.</p>
|
|
7601
7603
|
* @public
|
|
7602
7604
|
*/
|
|
7603
7605
|
LaunchTemplateName?: string;
|
|
@@ -7626,15 +7628,15 @@ export interface DeleteLaunchTemplateVersionsRequest {
|
|
|
7626
7628
|
DryRun?: boolean;
|
|
7627
7629
|
/**
|
|
7628
7630
|
* <p>The ID of the launch template.</p>
|
|
7629
|
-
* <p>You must specify either the
|
|
7630
|
-
*
|
|
7631
|
+
* <p>You must specify either the launch template ID or the
|
|
7632
|
+
* launch template name, but not both.</p>
|
|
7631
7633
|
* @public
|
|
7632
7634
|
*/
|
|
7633
7635
|
LaunchTemplateId?: string;
|
|
7634
7636
|
/**
|
|
7635
7637
|
* <p>The name of the launch template.</p>
|
|
7636
|
-
* <p>You must specify either the
|
|
7637
|
-
*
|
|
7638
|
+
* <p>You must specify either the launch template ID or the
|
|
7639
|
+
* launch template name, but not both.</p>
|
|
7638
7640
|
* @public
|
|
7639
7641
|
*/
|
|
7640
7642
|
LaunchTemplateName?: string;
|