@aws-sdk/client-ec2 3.231.0 → 3.235.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/dist-cjs/endpoint/ruleset.js +4 -331
- package/dist-cjs/pagination/DescribeImagesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_ec2.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -331
- package/dist-es/pagination/DescribeImagesPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +10 -0
- package/dist-types/EC2.d.ts +15 -15
- package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +1 -1
- package/dist-types/commands/CopyImageCommand.d.ts +2 -2
- package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +2 -2
- package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +2 -2
- package/dist-types/commands/DeregisterImageCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +2 -2
- package/dist-types/commands/DisableImageDeprecationCommand.d.ts +1 -1
- package/dist-types/commands/EnableImageDeprecationCommand.d.ts +1 -1
- package/dist-types/commands/ListImagesInRecycleBinCommand.d.ts +1 -1
- package/dist-types/commands/RegisterImageCommand.d.ts +1 -1
- package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +2 -2
- package/dist-types/models/models_3.d.ts +19 -6
- package/dist-types/models/models_6.d.ts +14 -10
- package/dist-types/pagination/DescribeImagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_3.d.ts +3 -0
- package/dist-types/ts3.4/pagination/DescribeImagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1,331 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
builtIn: "AWS::Region",
|
|
6
|
-
required: true,
|
|
7
|
-
documentation: "The AWS region used to dispatch the request.",
|
|
8
|
-
type: "String",
|
|
9
|
-
},
|
|
10
|
-
UseDualStack: {
|
|
11
|
-
builtIn: "AWS::UseDualStack",
|
|
12
|
-
required: true,
|
|
13
|
-
default: false,
|
|
14
|
-
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
15
|
-
type: "Boolean",
|
|
16
|
-
},
|
|
17
|
-
UseFIPS: {
|
|
18
|
-
builtIn: "AWS::UseFIPS",
|
|
19
|
-
required: true,
|
|
20
|
-
default: false,
|
|
21
|
-
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
22
|
-
type: "Boolean",
|
|
23
|
-
},
|
|
24
|
-
Endpoint: {
|
|
25
|
-
builtIn: "SDK::Endpoint",
|
|
26
|
-
required: false,
|
|
27
|
-
documentation: "Override the endpoint used to send this request",
|
|
28
|
-
type: "String",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
rules: [
|
|
32
|
-
{
|
|
33
|
-
conditions: [
|
|
34
|
-
{
|
|
35
|
-
fn: "aws.partition",
|
|
36
|
-
argv: [
|
|
37
|
-
{
|
|
38
|
-
ref: "Region",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
assign: "PartitionResult",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
type: "tree",
|
|
45
|
-
rules: [
|
|
46
|
-
{
|
|
47
|
-
conditions: [
|
|
48
|
-
{
|
|
49
|
-
fn: "isSet",
|
|
50
|
-
argv: [
|
|
51
|
-
{
|
|
52
|
-
ref: "Endpoint",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
type: "tree",
|
|
58
|
-
rules: [
|
|
59
|
-
{
|
|
60
|
-
conditions: [
|
|
61
|
-
{
|
|
62
|
-
fn: "booleanEquals",
|
|
63
|
-
argv: [
|
|
64
|
-
{
|
|
65
|
-
ref: "UseFIPS",
|
|
66
|
-
},
|
|
67
|
-
true,
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
72
|
-
type: "error",
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
conditions: [],
|
|
76
|
-
type: "tree",
|
|
77
|
-
rules: [
|
|
78
|
-
{
|
|
79
|
-
conditions: [
|
|
80
|
-
{
|
|
81
|
-
fn: "booleanEquals",
|
|
82
|
-
argv: [
|
|
83
|
-
{
|
|
84
|
-
ref: "UseDualStack",
|
|
85
|
-
},
|
|
86
|
-
true,
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
91
|
-
type: "error",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
conditions: [],
|
|
95
|
-
endpoint: {
|
|
96
|
-
url: {
|
|
97
|
-
ref: "Endpoint",
|
|
98
|
-
},
|
|
99
|
-
properties: {},
|
|
100
|
-
headers: {},
|
|
101
|
-
},
|
|
102
|
-
type: "endpoint",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
conditions: [
|
|
110
|
-
{
|
|
111
|
-
fn: "booleanEquals",
|
|
112
|
-
argv: [
|
|
113
|
-
{
|
|
114
|
-
ref: "UseFIPS",
|
|
115
|
-
},
|
|
116
|
-
true,
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
fn: "booleanEquals",
|
|
121
|
-
argv: [
|
|
122
|
-
{
|
|
123
|
-
ref: "UseDualStack",
|
|
124
|
-
},
|
|
125
|
-
true,
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
type: "tree",
|
|
130
|
-
rules: [
|
|
131
|
-
{
|
|
132
|
-
conditions: [
|
|
133
|
-
{
|
|
134
|
-
fn: "booleanEquals",
|
|
135
|
-
argv: [
|
|
136
|
-
true,
|
|
137
|
-
{
|
|
138
|
-
fn: "getAttr",
|
|
139
|
-
argv: [
|
|
140
|
-
{
|
|
141
|
-
ref: "PartitionResult",
|
|
142
|
-
},
|
|
143
|
-
"supportsFIPS",
|
|
144
|
-
],
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
fn: "booleanEquals",
|
|
150
|
-
argv: [
|
|
151
|
-
true,
|
|
152
|
-
{
|
|
153
|
-
fn: "getAttr",
|
|
154
|
-
argv: [
|
|
155
|
-
{
|
|
156
|
-
ref: "PartitionResult",
|
|
157
|
-
},
|
|
158
|
-
"supportsDualStack",
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
type: "tree",
|
|
165
|
-
rules: [
|
|
166
|
-
{
|
|
167
|
-
conditions: [],
|
|
168
|
-
endpoint: {
|
|
169
|
-
url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
170
|
-
properties: {},
|
|
171
|
-
headers: {},
|
|
172
|
-
},
|
|
173
|
-
type: "endpoint",
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
conditions: [],
|
|
179
|
-
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
180
|
-
type: "error",
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
conditions: [
|
|
186
|
-
{
|
|
187
|
-
fn: "booleanEquals",
|
|
188
|
-
argv: [
|
|
189
|
-
{
|
|
190
|
-
ref: "UseFIPS",
|
|
191
|
-
},
|
|
192
|
-
true,
|
|
193
|
-
],
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
type: "tree",
|
|
197
|
-
rules: [
|
|
198
|
-
{
|
|
199
|
-
conditions: [
|
|
200
|
-
{
|
|
201
|
-
fn: "booleanEquals",
|
|
202
|
-
argv: [
|
|
203
|
-
true,
|
|
204
|
-
{
|
|
205
|
-
fn: "getAttr",
|
|
206
|
-
argv: [
|
|
207
|
-
{
|
|
208
|
-
ref: "PartitionResult",
|
|
209
|
-
},
|
|
210
|
-
"supportsFIPS",
|
|
211
|
-
],
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
type: "tree",
|
|
217
|
-
rules: [
|
|
218
|
-
{
|
|
219
|
-
conditions: [],
|
|
220
|
-
type: "tree",
|
|
221
|
-
rules: [
|
|
222
|
-
{
|
|
223
|
-
conditions: [
|
|
224
|
-
{
|
|
225
|
-
fn: "stringEquals",
|
|
226
|
-
argv: [
|
|
227
|
-
"aws-us-gov",
|
|
228
|
-
{
|
|
229
|
-
fn: "getAttr",
|
|
230
|
-
argv: [
|
|
231
|
-
{
|
|
232
|
-
ref: "PartitionResult",
|
|
233
|
-
},
|
|
234
|
-
"name",
|
|
235
|
-
],
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
endpoint: {
|
|
241
|
-
url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}",
|
|
242
|
-
properties: {},
|
|
243
|
-
headers: {},
|
|
244
|
-
},
|
|
245
|
-
type: "endpoint",
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
conditions: [],
|
|
249
|
-
endpoint: {
|
|
250
|
-
url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
251
|
-
properties: {},
|
|
252
|
-
headers: {},
|
|
253
|
-
},
|
|
254
|
-
type: "endpoint",
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
},
|
|
258
|
-
],
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
conditions: [],
|
|
262
|
-
error: "FIPS is enabled but this partition does not support FIPS",
|
|
263
|
-
type: "error",
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
conditions: [
|
|
269
|
-
{
|
|
270
|
-
fn: "booleanEquals",
|
|
271
|
-
argv: [
|
|
272
|
-
{
|
|
273
|
-
ref: "UseDualStack",
|
|
274
|
-
},
|
|
275
|
-
true,
|
|
276
|
-
],
|
|
277
|
-
},
|
|
278
|
-
],
|
|
279
|
-
type: "tree",
|
|
280
|
-
rules: [
|
|
281
|
-
{
|
|
282
|
-
conditions: [
|
|
283
|
-
{
|
|
284
|
-
fn: "booleanEquals",
|
|
285
|
-
argv: [
|
|
286
|
-
true,
|
|
287
|
-
{
|
|
288
|
-
fn: "getAttr",
|
|
289
|
-
argv: [
|
|
290
|
-
{
|
|
291
|
-
ref: "PartitionResult",
|
|
292
|
-
},
|
|
293
|
-
"supportsDualStack",
|
|
294
|
-
],
|
|
295
|
-
},
|
|
296
|
-
],
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
type: "tree",
|
|
300
|
-
rules: [
|
|
301
|
-
{
|
|
302
|
-
conditions: [],
|
|
303
|
-
endpoint: {
|
|
304
|
-
url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
305
|
-
properties: {},
|
|
306
|
-
headers: {},
|
|
307
|
-
},
|
|
308
|
-
type: "endpoint",
|
|
309
|
-
},
|
|
310
|
-
],
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
conditions: [],
|
|
314
|
-
error: "DualStack is enabled but this partition does not support DualStack",
|
|
315
|
-
type: "error",
|
|
316
|
-
},
|
|
317
|
-
],
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
conditions: [],
|
|
321
|
-
endpoint: {
|
|
322
|
-
url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}",
|
|
323
|
-
properties: {},
|
|
324
|
-
headers: {},
|
|
325
|
-
},
|
|
326
|
-
type: "endpoint",
|
|
327
|
-
},
|
|
328
|
-
],
|
|
329
|
-
},
|
|
330
|
-
],
|
|
331
|
-
};
|
|
1
|
+
const u = "fn", v = "argv", w = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = "getAttr", j = { [w]: "Endpoint" }, k = { [u]: "booleanEquals", [v]: [{ [w]: "UseFIPS" }, true] }, l = { [u]: "booleanEquals", [v]: [{ [w]: "UseDualStack" }, true] }, m = {}, n = { [u]: "booleanEquals", [v]: [true, { [u]: i, [v]: [{ [w]: e }, "supportsFIPS"] }] }, o = { [w]: e }, p = { [u]: "booleanEquals", [v]: [true, { [u]: i, [v]: [o, "supportsDualStack"] }] }, q = { "url": "https://ec2.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, r = [k], s = [], t = [l];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: a, default: b, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: a, default: b, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: b, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [u]: "aws.partition", [v]: [{ [w]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [u]: "isSet", [v]: [j] }], type: f, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: s, type: f, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: s, endpoint: { url: j, properties: m, headers: m }, type: h }] }] }, { conditions: [k, l], type: f, rules: [{ conditions: [n, p], type: f, rules: [{ conditions: s, endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: h }] }, { conditions: s, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: r, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: s, type: f, rules: [{ conditions: [{ [u]: "stringEquals", [v]: ["aws-us-gov", { [u]: i, [v]: [o, "name"] }] }], endpoint: q, type: h }, { conditions: s, endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: h }] }] }, { conditions: s, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: t, type: f, rules: [{ conditions: [p], type: f, rules: [{ conditions: s, endpoint: { url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: h }] }, { conditions: s, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: s, endpoint: q, type: h }] }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeImagesCommand, } from "../commands/DescribeImagesCommand";
|
|
2
|
+
import { EC2 } from "../EC2";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeImagesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeImages(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeImages(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof EC2) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof EC2Client) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected EC2 | EC2Client");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from "./DescribeHostReservationOfferingsPaginator";
|
|
|
25
25
|
export * from "./DescribeHostReservationsPaginator";
|
|
26
26
|
export * from "./DescribeHostsPaginator";
|
|
27
27
|
export * from "./DescribeIamInstanceProfileAssociationsPaginator";
|
|
28
|
+
export * from "./DescribeImagesPaginator";
|
|
28
29
|
export * from "./DescribeImportImageTasksPaginator";
|
|
29
30
|
export * from "./DescribeImportSnapshotTasksPaginator";
|
|
30
31
|
export * from "./DescribeInstanceCreditSpecificationsPaginator";
|
|
@@ -29209,6 +29209,12 @@ const serializeAws_ec2DescribeImagesRequest = (input, context) => {
|
|
|
29209
29209
|
if (input.DryRun != null) {
|
|
29210
29210
|
entries["DryRun"] = input.DryRun;
|
|
29211
29211
|
}
|
|
29212
|
+
if (input.MaxResults != null) {
|
|
29213
|
+
entries["MaxResults"] = input.MaxResults;
|
|
29214
|
+
}
|
|
29215
|
+
if (input.NextToken != null) {
|
|
29216
|
+
entries["NextToken"] = input.NextToken;
|
|
29217
|
+
}
|
|
29212
29218
|
return entries;
|
|
29213
29219
|
};
|
|
29214
29220
|
const serializeAws_ec2DescribeImportImageTasksRequest = (input, context) => {
|
|
@@ -49273,6 +49279,7 @@ const deserializeAws_ec2DescribeIdFormatResult = (output, context) => {
|
|
|
49273
49279
|
const deserializeAws_ec2DescribeImagesResult = (output, context) => {
|
|
49274
49280
|
const contents = {
|
|
49275
49281
|
Images: undefined,
|
|
49282
|
+
NextToken: undefined,
|
|
49276
49283
|
};
|
|
49277
49284
|
if (output.imagesSet === "") {
|
|
49278
49285
|
contents.Images = [];
|
|
@@ -49280,6 +49287,9 @@ const deserializeAws_ec2DescribeImagesResult = (output, context) => {
|
|
|
49280
49287
|
else if (output["imagesSet"] !== undefined && output["imagesSet"]["item"] !== undefined) {
|
|
49281
49288
|
contents.Images = deserializeAws_ec2ImageList(__getArrayIfSingleItem(output["imagesSet"]["item"]), context);
|
|
49282
49289
|
}
|
|
49290
|
+
if (output["nextToken"] !== undefined) {
|
|
49291
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
49292
|
+
}
|
|
49283
49293
|
return contents;
|
|
49284
49294
|
};
|
|
49285
49295
|
const deserializeAws_ec2DescribeImportImageTasksResult = (output, context) => {
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -1088,7 +1088,7 @@ export declare class EC2 extends EC2Client {
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more
|
|
1090
1090
|
* information, see <a href="https://docs.aws.amazon.com/">Cancel having an AMI shared with your Amazon Web Services account</a>
|
|
1091
|
-
* in the <i>Amazon
|
|
1091
|
+
* in the <i>Amazon EC2 User Guide</i>.</p>
|
|
1092
1092
|
*/
|
|
1093
1093
|
cancelImageLaunchPermission(args: CancelImageLaunchPermissionCommandInput, options?: __HttpHandlerOptions): Promise<CancelImageLaunchPermissionCommandOutput>;
|
|
1094
1094
|
cancelImageLaunchPermission(args: CancelImageLaunchPermissionCommandInput, cb: (err: any, data?: CancelImageLaunchPermissionCommandOutput) => void): void;
|
|
@@ -1161,9 +1161,9 @@ export declare class EC2 extends EC2Client {
|
|
|
1161
1161
|
* encryption key for the Region, or a different key that you specify in the request using
|
|
1162
1162
|
* <b>KmsKeyId</b>. Outposts do not support unencrypted
|
|
1163
1163
|
* snapshots. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami">
|
|
1164
|
-
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon
|
|
1164
|
+
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
1165
1165
|
* <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</a> in the
|
|
1166
|
-
* <i>Amazon
|
|
1166
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
1167
1167
|
*/
|
|
1168
1168
|
copyImage(args: CopyImageCommandInput, options?: __HttpHandlerOptions): Promise<CopyImageCommandOutput>;
|
|
1169
1169
|
copyImage(args: CopyImageCommandInput, cb: (err: any, data?: CopyImageCommandOutput) => void): void;
|
|
@@ -1720,9 +1720,9 @@ export declare class EC2 extends EC2Client {
|
|
|
1720
1720
|
* <p>Starts a task that restores an AMI from an Amazon S3 object that was previously created by using
|
|
1721
1721
|
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a>.</p>
|
|
1722
1722
|
* <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
|
|
1723
|
-
* <i>Amazon
|
|
1723
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
1724
1724
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
|
|
1725
|
-
* Amazon S3</a> in the <i>Amazon
|
|
1725
|
+
* Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
1726
1726
|
*/
|
|
1727
1727
|
createRestoreImageTask(args: CreateRestoreImageTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateRestoreImageTaskCommandOutput>;
|
|
1728
1728
|
createRestoreImageTask(args: CreateRestoreImageTaskCommandInput, cb: (err: any, data?: CreateRestoreImageTaskCommandOutput) => void): void;
|
|
@@ -1841,9 +1841,9 @@ export declare class EC2 extends EC2Client {
|
|
|
1841
1841
|
/**
|
|
1842
1842
|
* <p>Stores an AMI as a single object in an Amazon S3 bucket.</p>
|
|
1843
1843
|
* <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
|
|
1844
|
-
* <i>Amazon
|
|
1844
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
1845
1845
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
|
|
1846
|
-
* Amazon S3</a> in the <i>Amazon
|
|
1846
|
+
* Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
1847
1847
|
*/
|
|
1848
1848
|
createStoreImageTask(args: CreateStoreImageTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateStoreImageTaskCommandOutput>;
|
|
1849
1849
|
createStoreImageTask(args: CreateStoreImageTaskCommandInput, cb: (err: any, data?: CreateStoreImageTaskCommandOutput) => void): void;
|
|
@@ -2786,7 +2786,7 @@ export declare class EC2 extends EC2Client {
|
|
|
2786
2786
|
* launch new instances.</p>
|
|
2787
2787
|
* <p>If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained
|
|
2788
2788
|
* in the Recycle Bin for the specified retention period. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in
|
|
2789
|
-
* the <i>Amazon
|
|
2789
|
+
* the <i>Amazon EC2 User Guide</i>.</p>
|
|
2790
2790
|
* <p>When you deregister an AMI, it doesn't affect any instances that you've already
|
|
2791
2791
|
* launched from the AMI. You'll continue to incur usage costs for those instances until
|
|
2792
2792
|
* you terminate them.</p>
|
|
@@ -3813,9 +3813,9 @@ export declare class EC2 extends EC2Client {
|
|
|
3813
3813
|
* <p>Tasks are listed in reverse chronological order. Currently, only tasks from the past 31
|
|
3814
3814
|
* days can be viewed.</p>
|
|
3815
3815
|
* <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
|
|
3816
|
-
* <i>Amazon
|
|
3816
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
3817
3817
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
|
|
3818
|
-
* Amazon S3</a> in the <i>Amazon
|
|
3818
|
+
* Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
3819
3819
|
*/
|
|
3820
3820
|
describeStoreImageTasks(args: DescribeStoreImageTasksCommandInput, options?: __HttpHandlerOptions): Promise<DescribeStoreImageTasksCommandOutput>;
|
|
3821
3821
|
describeStoreImageTasks(args: DescribeStoreImageTasksCommandInput, cb: (err: any, data?: DescribeStoreImageTasksCommandOutput) => void): void;
|
|
@@ -4232,7 +4232,7 @@ export declare class EC2 extends EC2Client {
|
|
|
4232
4232
|
/**
|
|
4233
4233
|
* <p>Cancels the deprecation of the specified AMI.</p>
|
|
4234
4234
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the
|
|
4235
|
-
* <i>Amazon
|
|
4235
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
4236
4236
|
*/
|
|
4237
4237
|
disableImageDeprecation(args: DisableImageDeprecationCommandInput, options?: __HttpHandlerOptions): Promise<DisableImageDeprecationCommandOutput>;
|
|
4238
4238
|
disableImageDeprecation(args: DisableImageDeprecationCommandInput, cb: (err: any, data?: DisableImageDeprecationCommandOutput) => void): void;
|
|
@@ -4461,7 +4461,7 @@ export declare class EC2 extends EC2Client {
|
|
|
4461
4461
|
enableFastSnapshotRestores(args: EnableFastSnapshotRestoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableFastSnapshotRestoresCommandOutput) => void): void;
|
|
4462
4462
|
/**
|
|
4463
4463
|
* <p>Enables deprecation of the specified AMI at the specified date and time.</p>
|
|
4464
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the <i>Amazon
|
|
4464
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
4465
4465
|
*/
|
|
4466
4466
|
enableImageDeprecation(args: EnableImageDeprecationCommandInput, options?: __HttpHandlerOptions): Promise<EnableImageDeprecationCommandOutput>;
|
|
4467
4467
|
enableImageDeprecation(args: EnableImageDeprecationCommandInput, cb: (err: any, data?: EnableImageDeprecationCommandOutput) => void): void;
|
|
@@ -4985,7 +4985,7 @@ export declare class EC2 extends EC2Client {
|
|
|
4985
4985
|
/**
|
|
4986
4986
|
* <p>Lists one or more AMIs that are currently in the Recycle Bin. For more information,
|
|
4987
4987
|
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle
|
|
4988
|
-
* Bin</a> in the Amazon
|
|
4988
|
+
* Bin</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
4989
4989
|
*/
|
|
4990
4990
|
listImagesInRecycleBin(args: ListImagesInRecycleBinCommandInput, options?: __HttpHandlerOptions): Promise<ListImagesInRecycleBinCommandOutput>;
|
|
4991
4991
|
listImagesInRecycleBin(args: ListImagesInRecycleBinCommandInput, cb: (err: any, data?: ListImagesInRecycleBinCommandOutput) => void): void;
|
|
@@ -5900,7 +5900,7 @@ export declare class EC2 extends EC2Client {
|
|
|
5900
5900
|
* billing product code. If you purchase a Reserved Instance without the matching billing product
|
|
5901
5901
|
* code, the Reserved Instance will not be applied to the On-Demand Instance. For information
|
|
5902
5902
|
* about how to obtain the platform details and billing information of an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understand AMI
|
|
5903
|
-
* billing information</a> in the <i>Amazon
|
|
5903
|
+
* billing information</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
5904
5904
|
*/
|
|
5905
5905
|
registerImage(args: RegisterImageCommandInput, options?: __HttpHandlerOptions): Promise<RegisterImageCommandOutput>;
|
|
5906
5906
|
registerImage(args: RegisterImageCommandInput, cb: (err: any, data?: RegisterImageCommandOutput) => void): void;
|
|
@@ -6198,7 +6198,7 @@ export declare class EC2 extends EC2Client {
|
|
|
6198
6198
|
restoreAddressToClassic(args: RestoreAddressToClassicCommandInput, cb: (err: any, data?: RestoreAddressToClassicCommandOutput) => void): void;
|
|
6199
6199
|
restoreAddressToClassic(args: RestoreAddressToClassicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreAddressToClassicCommandOutput) => void): void;
|
|
6200
6200
|
/**
|
|
6201
|
-
* <p>Restores an AMI from the Recycle Bin. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in the Amazon
|
|
6201
|
+
* <p>Restores an AMI from the Recycle Bin. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
6202
6202
|
*/
|
|
6203
6203
|
restoreImageFromRecycleBin(args: RestoreImageFromRecycleBinCommandInput, options?: __HttpHandlerOptions): Promise<RestoreImageFromRecycleBinCommandOutput>;
|
|
6204
6204
|
restoreImageFromRecycleBin(args: RestoreImageFromRecycleBinCommandInput, cb: (err: any, data?: RestoreImageFromRecycleBinCommandOutput) => void): void;
|
|
@@ -10,7 +10,7 @@ export interface CancelImageLaunchPermissionCommandOutput extends CancelImageLau
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more
|
|
12
12
|
* information, see <a href="https://docs.aws.amazon.com/">Cancel having an AMI shared with your Amazon Web Services account</a>
|
|
13
|
-
* in the <i>Amazon
|
|
13
|
+
* in the <i>Amazon EC2 User Guide</i>.</p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|
|
@@ -24,9 +24,9 @@ export interface CopyImageCommandOutput extends CopyImageResult, __MetadataBeare
|
|
|
24
24
|
* encryption key for the Region, or a different key that you specify in the request using
|
|
25
25
|
* <b>KmsKeyId</b>. Outposts do not support unencrypted
|
|
26
26
|
* snapshots. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami">
|
|
27
|
-
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon
|
|
27
|
+
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
28
28
|
* <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</a> in the
|
|
29
|
-
* <i>Amazon
|
|
29
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
32
|
* ```javascript
|
|
@@ -11,9 +11,9 @@ export interface CreateRestoreImageTaskCommandOutput extends CreateRestoreImageT
|
|
|
11
11
|
* <p>Starts a task that restores an AMI from an Amazon S3 object that was previously created by using
|
|
12
12
|
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a>.</p>
|
|
13
13
|
* <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
|
|
14
|
-
* <i>Amazon
|
|
14
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
15
15
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
|
|
16
|
-
* Amazon S3</a> in the <i>Amazon
|
|
16
|
+
* Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
17
17
|
* @example
|
|
18
18
|
* Use a bare-bones client and the command you need to make an API call.
|
|
19
19
|
* ```javascript
|
|
@@ -10,9 +10,9 @@ export interface CreateStoreImageTaskCommandOutput extends CreateStoreImageTaskR
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Stores an AMI as a single object in an Amazon S3 bucket.</p>
|
|
12
12
|
* <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
|
|
13
|
-
* <i>Amazon
|
|
13
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
14
14
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
|
|
15
|
-
* Amazon S3</a> in the <i>Amazon
|
|
15
|
+
* Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
16
16
|
* @example
|
|
17
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
18
18
|
* ```javascript
|
|
@@ -12,7 +12,7 @@ export interface DeregisterImageCommandOutput extends __MetadataBearer {
|
|
|
12
12
|
* launch new instances.</p>
|
|
13
13
|
* <p>If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained
|
|
14
14
|
* in the Recycle Bin for the specified retention period. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in
|
|
15
|
-
* the <i>Amazon
|
|
15
|
+
* the <i>Amazon EC2 User Guide</i>.</p>
|
|
16
16
|
* <p>When you deregister an AMI, it doesn't affect any instances that you've already
|
|
17
17
|
* launched from the AMI. You'll continue to incur usage costs for those instances until
|
|
18
18
|
* you terminate them.</p>
|
|
@@ -17,9 +17,9 @@ export interface DescribeStoreImageTasksCommandOutput extends DescribeStoreImage
|
|
|
17
17
|
* <p>Tasks are listed in reverse chronological order. Currently, only tasks from the past 31
|
|
18
18
|
* days can be viewed.</p>
|
|
19
19
|
* <p>To use this API, you must have the required permissions. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions for storing and restoring AMIs using Amazon S3</a> in the
|
|
20
|
-
* <i>Amazon
|
|
20
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
21
21
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
|
|
22
|
-
* Amazon S3</a> in the <i>Amazon
|
|
22
|
+
* Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
23
23
|
* @example
|
|
24
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
25
|
* ```javascript
|
|
@@ -10,7 +10,7 @@ export interface DisableImageDeprecationCommandOutput extends DisableImageDeprec
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Cancels the deprecation of the specified AMI.</p>
|
|
12
12
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the
|
|
13
|
-
* <i>Amazon
|
|
13
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|
|
@@ -9,7 +9,7 @@ export interface EnableImageDeprecationCommandOutput extends EnableImageDeprecat
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Enables deprecation of the specified AMI at the specified date and time.</p>
|
|
12
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the <i>Amazon
|
|
12
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
15
|
* ```javascript
|
|
@@ -10,7 +10,7 @@ export interface ListImagesInRecycleBinCommandOutput extends ListImagesInRecycle
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Lists one or more AMIs that are currently in the Recycle Bin. For more information,
|
|
12
12
|
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle
|
|
13
|
-
* Bin</a> in the Amazon
|
|
13
|
+
* Bin</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|