@aws-sdk/client-ec2 3.876.0 → 3.878.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/index.js +11 -0
- package/dist-es/protocols/Aws_ec2.js +11 -0
- package/dist-types/commands/CopyImageCommand.d.ts +91 -9
- package/dist-types/commands/CopySnapshotCommand.d.ts +23 -7
- package/dist-types/commands/CreateImageUsageReportCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImageUsageReportCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImageReferencesCommand.d.ts +3 -3
- package/dist-types/commands/DescribeImageUsageReportEntriesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImageUsageReportsCommand.d.ts +1 -1
- package/dist-types/models/models_1.d.ts +53 -19
- package/dist-types/ts3.4/models/models_1.d.ts +3 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -19349,6 +19349,12 @@ var se_CopyImageRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
19349
19349
|
if (input[_SCCDM] != null) {
|
|
19350
19350
|
entries[_SCCDM] = input[_SCCDM];
|
|
19351
19351
|
}
|
|
19352
|
+
if (input[_DAZe] != null) {
|
|
19353
|
+
entries[_DAZe] = input[_DAZe];
|
|
19354
|
+
}
|
|
19355
|
+
if (input[_DAZI] != null) {
|
|
19356
|
+
entries[_DAZI] = input[_DAZI];
|
|
19357
|
+
}
|
|
19352
19358
|
if (input[_DRr] != null) {
|
|
19353
19359
|
entries[_DRr] = input[_DRr];
|
|
19354
19360
|
}
|
|
@@ -19390,6 +19396,9 @@ var se_CopySnapshotRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
19390
19396
|
if (input[_CDM] != null) {
|
|
19391
19397
|
entries[_CDM] = input[_CDM];
|
|
19392
19398
|
}
|
|
19399
|
+
if (input[_DAZe] != null) {
|
|
19400
|
+
entries[_DAZe] = input[_DAZe];
|
|
19401
|
+
}
|
|
19393
19402
|
if (input[_DRr] != null) {
|
|
19394
19403
|
entries[_DRr] = input[_DRr];
|
|
19395
19404
|
}
|
|
@@ -64645,6 +64654,8 @@ var _DAT = "DescribeAddressTransfers";
|
|
|
64645
64654
|
var _DATi = "DisableAddressTransfer";
|
|
64646
64655
|
var _DATis = "DisableApiTermination";
|
|
64647
64656
|
var _DAZ = "DescribeAvailabilityZones";
|
|
64657
|
+
var _DAZI = "DestinationAvailabilityZoneId";
|
|
64658
|
+
var _DAZe = "DestinationAvailabilityZone";
|
|
64648
64659
|
var _DAe = "DeprecateAt";
|
|
64649
64660
|
var _DAep = "DeprovisionedAddresses";
|
|
64650
64661
|
var _DAes = "DestinationAddresses";
|
|
@@ -17741,6 +17741,12 @@ const se_CopyImageRequest = (input, context) => {
|
|
|
17741
17741
|
if (input[_SCCDM] != null) {
|
|
17742
17742
|
entries[_SCCDM] = input[_SCCDM];
|
|
17743
17743
|
}
|
|
17744
|
+
if (input[_DAZe] != null) {
|
|
17745
|
+
entries[_DAZe] = input[_DAZe];
|
|
17746
|
+
}
|
|
17747
|
+
if (input[_DAZI] != null) {
|
|
17748
|
+
entries[_DAZI] = input[_DAZI];
|
|
17749
|
+
}
|
|
17744
17750
|
if (input[_DRr] != null) {
|
|
17745
17751
|
entries[_DRr] = input[_DRr];
|
|
17746
17752
|
}
|
|
@@ -17782,6 +17788,9 @@ const se_CopySnapshotRequest = (input, context) => {
|
|
|
17782
17788
|
if (input[_CDM] != null) {
|
|
17783
17789
|
entries[_CDM] = input[_CDM];
|
|
17784
17790
|
}
|
|
17791
|
+
if (input[_DAZe] != null) {
|
|
17792
|
+
entries[_DAZe] = input[_DAZe];
|
|
17793
|
+
}
|
|
17785
17794
|
if (input[_DRr] != null) {
|
|
17786
17795
|
entries[_DRr] = input[_DRr];
|
|
17787
17796
|
}
|
|
@@ -64586,6 +64595,8 @@ const _DAT = "DescribeAddressTransfers";
|
|
|
64586
64595
|
const _DATi = "DisableAddressTransfer";
|
|
64587
64596
|
const _DATis = "DisableApiTermination";
|
|
64588
64597
|
const _DAZ = "DescribeAvailabilityZones";
|
|
64598
|
+
const _DAZI = "DestinationAvailabilityZoneId";
|
|
64599
|
+
const _DAZe = "DestinationAvailabilityZone";
|
|
64589
64600
|
const _DAe = "DeprecateAt";
|
|
64590
64601
|
const _DAep = "DeprovisionedAddresses";
|
|
64591
64602
|
const _DAes = "DestinationAddresses";
|
|
@@ -27,16 +27,96 @@ declare const CopyImageCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Initiates an AMI copy operation. You
|
|
31
|
-
*
|
|
32
|
-
* another, or within the same Outpost. To copy an AMI to another partition, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a>.</p>
|
|
33
|
-
* <p>When you copy an AMI from one Region to another, the destination Region is the current
|
|
30
|
+
* <p>Initiates an AMI copy operation. You must specify the source AMI ID and both the source
|
|
31
|
+
* and destination locations. The copy operation must be initiated in the destination
|
|
34
32
|
* Region.</p>
|
|
35
|
-
* <p>
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
33
|
+
* <p class="title">
|
|
34
|
+
* <b>CopyImage supports the following source to destination copies:</b>
|
|
35
|
+
* </p>
|
|
36
|
+
* <ul>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>Region to Region</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>Region to Outpost</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>Parent Region to Local Zone</p>
|
|
45
|
+
* </li>
|
|
46
|
+
* <li>
|
|
47
|
+
* <p>Local Zone to parent Region</p>
|
|
48
|
+
* </li>
|
|
49
|
+
* <li>
|
|
50
|
+
* <p>Between Local Zones with the same parent Region (only supported for certain Local
|
|
51
|
+
* Zones)</p>
|
|
52
|
+
* </li>
|
|
53
|
+
* </ul>
|
|
54
|
+
* <p class="title">
|
|
55
|
+
* <b>CopyImage does not support the following source to destination copies:</b>
|
|
56
|
+
* </p>
|
|
57
|
+
* <ul>
|
|
58
|
+
* <li>
|
|
59
|
+
* <p>Local Zone to non-parent Regions</p>
|
|
60
|
+
* </li>
|
|
61
|
+
* <li>
|
|
62
|
+
* <p>Between Local Zones with different parent Regions</p>
|
|
63
|
+
* </li>
|
|
64
|
+
* <li>
|
|
65
|
+
* <p>Local Zone to Outpost</p>
|
|
66
|
+
* </li>
|
|
67
|
+
* <li>
|
|
68
|
+
* <p>Outpost to Local Zone</p>
|
|
69
|
+
* </li>
|
|
70
|
+
* <li>
|
|
71
|
+
* <p>Outpost to Region</p>
|
|
72
|
+
* </li>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>Between Outposts</p>
|
|
75
|
+
* </li>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>Within same Outpost</p>
|
|
78
|
+
* </li>
|
|
79
|
+
* <li>
|
|
80
|
+
* <p>Cross-partition copies (use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html">CreateStoreImageTask</a> instead)</p>
|
|
81
|
+
* </li>
|
|
82
|
+
* </ul>
|
|
83
|
+
* <p class="title">
|
|
84
|
+
* <b>Destination specification</b>
|
|
85
|
+
* </p>
|
|
86
|
+
* <ul>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>Region to Region: The destination Region is the Region in which you initiate the copy
|
|
89
|
+
* operation.</p>
|
|
90
|
+
* </li>
|
|
91
|
+
* <li>
|
|
92
|
+
* <p>Region to Outpost: Specify the destination using the
|
|
93
|
+
* <code>DestinationOutpostArn</code> parameter (the ARN of the Outpost)</p>
|
|
94
|
+
* </li>
|
|
95
|
+
* <li>
|
|
96
|
+
* <p>Region to Local Zone, and Local Zone to Local Zone copies: Specify the destination
|
|
97
|
+
* using the <code>DestinationAvailabilityZone</code> parameter (the name of the destination
|
|
98
|
+
* Local Zone) or <code>DestinationAvailabilityZoneId</code> parameter (the ID of the
|
|
99
|
+
* destination Local Zone).</p>
|
|
100
|
+
* </li>
|
|
101
|
+
* </ul>
|
|
102
|
+
* <p class="title">
|
|
103
|
+
* <b>Snapshot encryption</b>
|
|
104
|
+
* </p>
|
|
105
|
+
* <ul>
|
|
106
|
+
* <li>
|
|
107
|
+
* <p>Region to Outpost: Backing snapshots copied to an Outpost are encrypted by default
|
|
108
|
+
* using the default encryption key for the Region or the key that you specify. Outposts do
|
|
109
|
+
* not support unencrypted snapshots.</p>
|
|
110
|
+
* </li>
|
|
111
|
+
* <li>
|
|
112
|
+
* <p>Region to Local Zone, and Local Zone to Local Zone: Not all Local Zones require
|
|
113
|
+
* encrypted snapshots. In Local Zones that require encrypted snapshots, backing snapshots
|
|
114
|
+
* are automatically encrypted during copy. In Local Zones where encryption is not required,
|
|
115
|
+
* snapshots retain their original encryption state (encrypted or unencrypted) by
|
|
116
|
+
* default.</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* </ul>
|
|
119
|
+
* <p>For more information, including the required permissions for copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an Amazon EC2 AMI</a> in the
|
|
40
120
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
41
121
|
* @example
|
|
42
122
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -66,6 +146,8 @@ declare const CopyImageCommand_base: {
|
|
|
66
146
|
* },
|
|
67
147
|
* ],
|
|
68
148
|
* SnapshotCopyCompletionDurationMinutes: Number("long"),
|
|
149
|
+
* DestinationAvailabilityZone: "STRING_VALUE",
|
|
150
|
+
* DestinationAvailabilityZoneId: "STRING_VALUE",
|
|
69
151
|
* DryRun: true || false,
|
|
70
152
|
* };
|
|
71
153
|
* const command = new CopyImageCommand(input);
|
|
@@ -27,11 +27,24 @@ declare const CopySnapshotCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
30
|
+
* <p>Creates an exact copy of an Amazon EBS snapshot.</p>
|
|
31
|
+
* <p>The location of the source snapshot determines whether you can copy it or not,
|
|
32
|
+
* and the allowed destinations for the snapshot copy.</p>
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>If the source snapshot is in a Region, you can copy it within that Region,
|
|
36
|
+
* to another Region, to an Outpost associated with that Region, or to a Local
|
|
37
|
+
* Zone in that Region.</p>
|
|
38
|
+
* </li>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>If the source snapshot is in a Local Zone, you can copy it within that Local Zone,
|
|
41
|
+
* to another Local Zone in the same zone group, or to the parent Region of the Local
|
|
42
|
+
* Zone.</p>
|
|
43
|
+
* </li>
|
|
44
|
+
* <li>
|
|
45
|
+
* <p>If the source snapshot is on an Outpost, you can't copy it.</p>
|
|
46
|
+
* </li>
|
|
47
|
+
* </ul>
|
|
35
48
|
* <p>When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted.
|
|
36
49
|
* Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the
|
|
37
50
|
* snapshot copy operation. By default, encrypted snapshot copies use the default KMS key;
|
|
@@ -42,8 +55,10 @@ declare const CopySnapshotCommand_base: {
|
|
|
42
55
|
* for the Region, or a different key that you specify in the request using <b>KmsKeyId</b>. Outposts do not support unencrypted snapshots. For more information,
|
|
43
56
|
* see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">Amazon EBS
|
|
44
57
|
* local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
|
|
45
|
-
* <
|
|
46
|
-
*
|
|
58
|
+
* <note>
|
|
59
|
+
* <p>Snapshots copies have an arbitrary source volume ID. Do not use this volume ID for
|
|
60
|
+
* any purpose.</p>
|
|
61
|
+
* </note>
|
|
47
62
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html">Copy an Amazon EBS snapshot</a> in the
|
|
48
63
|
* <i>Amazon EBS User Guide</i>.</p>
|
|
49
64
|
* @example
|
|
@@ -73,6 +88,7 @@ declare const CopySnapshotCommand_base: {
|
|
|
73
88
|
* },
|
|
74
89
|
* ],
|
|
75
90
|
* CompletionDurationMinutes: Number("int"),
|
|
91
|
+
* DestinationAvailabilityZone: "STRING_VALUE",
|
|
76
92
|
* DryRun: true || false,
|
|
77
93
|
* };
|
|
78
94
|
* const command = new CopySnapshotCommand(input);
|
|
@@ -30,7 +30,7 @@ declare const CreateImageUsageReportCommand_base: {
|
|
|
30
30
|
* <p>Creates a report that shows how your image is used across other Amazon Web Services accounts. The report
|
|
31
31
|
* provides visibility into which accounts are using the specified image, and how many resources
|
|
32
32
|
* (EC2 instances or launch templates) are referencing it.</p>
|
|
33
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-usage.html">View your AMI usage</a> in the
|
|
33
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/your-ec2-ami-usage.html">View your AMI usage</a> in the
|
|
34
34
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -28,7 +28,7 @@ declare const DeleteImageUsageReportCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Deletes the specified image usage report.</p>
|
|
31
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-usage.html">View your AMI usage</a> in the
|
|
31
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/your-ec2-ami-usage.html">View your AMI usage</a> in the
|
|
32
32
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -27,9 +27,9 @@ declare const DescribeImageReferencesCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Describes your Amazon Web Services resources that are referencing the specified images
|
|
31
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-references.html">
|
|
32
|
-
*
|
|
30
|
+
* <p>Describes your Amazon Web Services resources that are referencing the specified images.</p>
|
|
31
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-references.html">Identify your resources referencing
|
|
32
|
+
* specified AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
35
|
* ```javascript
|
|
@@ -29,7 +29,7 @@ declare const DescribeImageUsageReportEntriesCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Describes the entries in image usage reports, showing how your images are used across
|
|
31
31
|
* other Amazon Web Services accounts.</p>
|
|
32
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-usage.html">View your AMI usage</a> in the
|
|
32
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/your-ec2-ami-usage.html">View your AMI usage</a> in the
|
|
33
33
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -29,7 +29,7 @@ declare const DescribeImageUsageReportsCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Describes the configuration and status of image usage reports, filtered by report IDs or
|
|
31
31
|
* image IDs.</p>
|
|
32
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-usage.html">View your AMI usage</a> in the
|
|
32
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/your-ec2-ami-usage.html">View your AMI usage</a> in the
|
|
33
33
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -61,15 +61,15 @@ export interface CopyImageRequest {
|
|
|
61
61
|
*/
|
|
62
62
|
ClientToken?: string | undefined;
|
|
63
63
|
/**
|
|
64
|
-
* <p>A description for the new AMI
|
|
64
|
+
* <p>A description for the new AMI.</p>
|
|
65
65
|
* @public
|
|
66
66
|
*/
|
|
67
67
|
Description?: string | undefined;
|
|
68
68
|
/**
|
|
69
|
-
* <p>Specifies whether the
|
|
70
|
-
*
|
|
71
|
-
* encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a
|
|
72
|
-
* Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html">Use encryption with
|
|
69
|
+
* <p>Specifies whether to encrypt the snapshots of the copied image.</p>
|
|
70
|
+
* <p>You can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted
|
|
71
|
+
* copy of an encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a
|
|
72
|
+
* non-default Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html">Use encryption with
|
|
73
73
|
* EBS-backed AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
74
74
|
* @public
|
|
75
75
|
*/
|
|
@@ -101,7 +101,7 @@ export interface CopyImageRequest {
|
|
|
101
101
|
*/
|
|
102
102
|
KmsKeyId?: string | undefined;
|
|
103
103
|
/**
|
|
104
|
-
* <p>The name of the new AMI
|
|
104
|
+
* <p>The name of the new AMI.</p>
|
|
105
105
|
* @public
|
|
106
106
|
*/
|
|
107
107
|
Name: string | undefined;
|
|
@@ -116,18 +116,21 @@ export interface CopyImageRequest {
|
|
|
116
116
|
*/
|
|
117
117
|
SourceRegion: string | undefined;
|
|
118
118
|
/**
|
|
119
|
-
* <p>The Amazon Resource Name (ARN) of the Outpost
|
|
120
|
-
*
|
|
121
|
-
* Region of the destination Outpost. You
|
|
122
|
-
* one Outpost to another, or within the same Outpost.</p>
|
|
119
|
+
* <p>The Amazon Resource Name (ARN) of the Outpost for the new AMI.</p>
|
|
120
|
+
* <p>Only specify this parameter when copying an AMI from an Amazon Web Services Region to an Outpost. The
|
|
121
|
+
* AMI must be in the Region of the destination Outpost. You can't copy an AMI from an Outpost to
|
|
122
|
+
* a Region, from one Outpost to another, or within the same Outpost.</p>
|
|
123
123
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-amis">Copy AMIs from an Amazon Web Services Region
|
|
124
124
|
* to an Outpost</a> in the <i>Amazon EBS User Guide</i>.</p>
|
|
125
|
+
* <p>Only one of <code>DestinationAvailabilityZone</code>,
|
|
126
|
+
* <code>DestinationAvailabilityZoneId</code>, or <code>DestinationOutpostArn</code> can be
|
|
127
|
+
* specified.</p>
|
|
125
128
|
* @public
|
|
126
129
|
*/
|
|
127
130
|
DestinationOutpostArn?: string | undefined;
|
|
128
131
|
/**
|
|
129
|
-
* <p>
|
|
130
|
-
* <p>The following tags
|
|
132
|
+
* <p>Specifies whether to copy your user-defined AMI tags to the new AMI.</p>
|
|
133
|
+
* <p>The following tags are not be copied:</p>
|
|
131
134
|
* <ul>
|
|
132
135
|
* <li>
|
|
133
136
|
* <p>System tags (prefixed with <code>aws:</code>)</p>
|
|
@@ -167,11 +170,31 @@ export interface CopyImageRequest {
|
|
|
167
170
|
* meet the timing target.</p>
|
|
168
171
|
* <p>If you do not specify a value, the AMI copy operation is completed on a best-effort
|
|
169
172
|
* basis.</p>
|
|
173
|
+
* <note>
|
|
174
|
+
* <p>This parameter is not supported when copying an AMI to or from a Local Zone, or to an
|
|
175
|
+
* Outpost.</p>
|
|
176
|
+
* </note>
|
|
170
177
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html">Time-based copies for Amazon EBS snapshots and
|
|
171
178
|
* EBS-backed AMIs</a>.</p>
|
|
172
179
|
* @public
|
|
173
180
|
*/
|
|
174
181
|
SnapshotCopyCompletionDurationMinutes?: number | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* <p>The Local Zone for the new AMI (for example, <code>cn-north-1-pkx-1a</code>).</p>
|
|
184
|
+
* <p>Only one of <code>DestinationAvailabilityZone</code>,
|
|
185
|
+
* <code>DestinationAvailabilityZoneId</code>, or <code>DestinationOutpostArn</code> can be
|
|
186
|
+
* specified.</p>
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
DestinationAvailabilityZone?: string | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* <p>The ID of the Local Zone for the new AMI (for example, <code>cnn1-pkx1-az1</code>).</p>
|
|
192
|
+
* <p>Only one of <code>DestinationAvailabilityZone</code>,
|
|
193
|
+
* <code>DestinationAvailabilityZoneId</code>, or <code>DestinationOutpostArn</code> can be
|
|
194
|
+
* specified.</p>
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
DestinationAvailabilityZoneId?: string | undefined;
|
|
175
198
|
/**
|
|
176
199
|
* <p>Checks whether you have the required permissions for the action, without actually making the request,
|
|
177
200
|
* and provides an error response. If you have the required permissions, the error response is
|
|
@@ -201,14 +224,13 @@ export interface CopySnapshotRequest {
|
|
|
201
224
|
*/
|
|
202
225
|
Description?: string | undefined;
|
|
203
226
|
/**
|
|
204
|
-
* <p>The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* Outpost.</p>
|
|
227
|
+
* <p>The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot.</p>
|
|
228
|
+
* <note>
|
|
229
|
+
* <p>Only supported when copying a snapshot to an Outpost.</p>
|
|
230
|
+
* </note>
|
|
209
231
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-snapshots">
|
|
210
232
|
* Copy snapshots from an Amazon Web Services Region to an Outpost</a> in the
|
|
211
|
-
*
|
|
233
|
+
* <i>Amazon EBS User Guide</i>.</p>
|
|
212
234
|
* @public
|
|
213
235
|
*/
|
|
214
236
|
DestinationOutpostArn?: string | undefined;
|
|
@@ -289,7 +311,10 @@ export interface CopySnapshotRequest {
|
|
|
289
311
|
*/
|
|
290
312
|
TagSpecifications?: TagSpecification[] | undefined;
|
|
291
313
|
/**
|
|
292
|
-
* <
|
|
314
|
+
* <note>
|
|
315
|
+
* <p>Not supported when copying snapshots to or from Local Zones or Outposts.</p>
|
|
316
|
+
* </note>
|
|
317
|
+
* <p>Specify a completion duration, in 15 minute increments, to initiate a time-based snapshot
|
|
293
318
|
* copy. Time-based snapshot copy operations complete within the specified duration. For more
|
|
294
319
|
* information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html">
|
|
295
320
|
* Time-based copies</a>.</p>
|
|
@@ -298,6 +323,15 @@ export interface CopySnapshotRequest {
|
|
|
298
323
|
* @public
|
|
299
324
|
*/
|
|
300
325
|
CompletionDurationMinutes?: number | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* <p>The Local Zone, for example, <code>cn-north-1-pkx-1a</code> to which to copy the
|
|
328
|
+
* snapshot.</p>
|
|
329
|
+
* <note>
|
|
330
|
+
* <p>Only supported when copying a snapshot to a Local Zone.</p>
|
|
331
|
+
* </note>
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
DestinationAvailabilityZone?: string | undefined;
|
|
301
335
|
/**
|
|
302
336
|
* <p>Checks whether you have the required permissions for the action, without actually making the request,
|
|
303
337
|
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
|
|
@@ -44,6 +44,8 @@ export interface CopyImageRequest {
|
|
|
44
44
|
CopyImageTags?: boolean | undefined;
|
|
45
45
|
TagSpecifications?: TagSpecification[] | undefined;
|
|
46
46
|
SnapshotCopyCompletionDurationMinutes?: number | undefined;
|
|
47
|
+
DestinationAvailabilityZone?: string | undefined;
|
|
48
|
+
DestinationAvailabilityZoneId?: string | undefined;
|
|
47
49
|
DryRun?: boolean | undefined;
|
|
48
50
|
}
|
|
49
51
|
export interface CopyImageResult {
|
|
@@ -60,6 +62,7 @@ export interface CopySnapshotRequest {
|
|
|
60
62
|
SourceSnapshotId: string | undefined;
|
|
61
63
|
TagSpecifications?: TagSpecification[] | undefined;
|
|
62
64
|
CompletionDurationMinutes?: number | undefined;
|
|
65
|
+
DestinationAvailabilityZone?: string | undefined;
|
|
63
66
|
DryRun?: boolean | undefined;
|
|
64
67
|
}
|
|
65
68
|
export interface CopySnapshotResult {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.878.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ec2",
|