@aws-sdk/client-ec2 3.637.0 → 3.645.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 +5 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/models/models_6.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +3 -0
- package/dist-types/commands/AllocateAddressCommand.d.ts +1 -0
- package/dist-types/commands/AllocateIpamPoolCidrCommand.d.ts +1 -1
- package/dist-types/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +1 -1
- package/dist-types/commands/GetIpamPoolAllocationsCommand.d.ts +1 -1
- package/dist-types/commands/RegisterImageCommand.d.ts +17 -22
- package/dist-types/models/models_0.d.ts +6 -0
- package/dist-types/models/models_6.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/models/models_6.d.ts +1 -0
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -16049,6 +16049,9 @@ var se_AllocateAddressRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
16049
16049
|
entries[loc] = value;
|
|
16050
16050
|
});
|
|
16051
16051
|
}
|
|
16052
|
+
if (input[_IPI] != null) {
|
|
16053
|
+
entries[_IPI] = input[_IPI];
|
|
16054
|
+
}
|
|
16052
16055
|
return entries;
|
|
16053
16056
|
}, "se_AllocateAddressRequest");
|
|
16054
16057
|
var se_AllocateHostsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -62237,6 +62240,7 @@ var HostRecovery = {
|
|
|
62237
62240
|
var IpamPoolAllocationResourceType = {
|
|
62238
62241
|
custom: "custom",
|
|
62239
62242
|
ec2_public_ipv4_pool: "ec2-public-ipv4-pool",
|
|
62243
|
+
eip: "eip",
|
|
62240
62244
|
ipam_pool: "ipam-pool",
|
|
62241
62245
|
subnet: "subnet",
|
|
62242
62246
|
vpc: "vpc"
|
|
@@ -71510,6 +71514,7 @@ var IpamDiscoveryFailureCode = {
|
|
|
71510
71514
|
unauthorized_failure: "unauthorized-failure"
|
|
71511
71515
|
};
|
|
71512
71516
|
var IpamPublicAddressType = {
|
|
71517
|
+
AMAZON_OWNED_CONTIG: "amazon-owned-contig",
|
|
71513
71518
|
AMAZON_OWNED_EIP: "amazon-owned-eip",
|
|
71514
71519
|
BYOIP: "byoip",
|
|
71515
71520
|
EC2_PUBLIC_IP: "ec2-public-ip",
|
|
@@ -36,6 +36,7 @@ export const IpamDiscoveryFailureCode = {
|
|
|
36
36
|
unauthorized_failure: "unauthorized-failure",
|
|
37
37
|
};
|
|
38
38
|
export const IpamPublicAddressType = {
|
|
39
|
+
AMAZON_OWNED_CONTIG: "amazon-owned-contig",
|
|
39
40
|
AMAZON_OWNED_EIP: "amazon-owned-eip",
|
|
40
41
|
BYOIP: "byoip",
|
|
41
42
|
EC2_PUBLIC_IP: "ec2-public-ip",
|
|
@@ -14595,6 +14595,9 @@ const se_AllocateAddressRequest = (input, context) => {
|
|
|
14595
14595
|
entries[loc] = value;
|
|
14596
14596
|
});
|
|
14597
14597
|
}
|
|
14598
|
+
if (input[_IPI] != null) {
|
|
14599
|
+
entries[_IPI] = input[_IPI];
|
|
14600
|
+
}
|
|
14598
14601
|
return entries;
|
|
14599
14602
|
};
|
|
14600
14603
|
const se_AllocateHostsRequest = (input, context) => {
|
|
@@ -61,7 +61,7 @@ declare const AllocateIpamPoolCidrCommand_base: {
|
|
|
61
61
|
* // IpamPoolAllocationId: "STRING_VALUE",
|
|
62
62
|
* // Description: "STRING_VALUE",
|
|
63
63
|
* // ResourceId: "STRING_VALUE",
|
|
64
|
-
* // ResourceType: "ipam-pool" || "vpc" || "ec2-public-ipv4-pool" || "custom" || "subnet",
|
|
64
|
+
* // ResourceType: "ipam-pool" || "vpc" || "ec2-public-ipv4-pool" || "custom" || "subnet" || "eip",
|
|
65
65
|
* // ResourceRegion: "STRING_VALUE",
|
|
66
66
|
* // ResourceOwner: "STRING_VALUE",
|
|
67
67
|
* // },
|
|
@@ -60,7 +60,7 @@ declare const GetIpamDiscoveredPublicAddressesCommand_base: {
|
|
|
60
60
|
* // AddressOwnerId: "STRING_VALUE",
|
|
61
61
|
* // AddressAllocationId: "STRING_VALUE",
|
|
62
62
|
* // AssociationStatus: "associated" || "disassociated",
|
|
63
|
-
* // AddressType: "service-managed-ip" || "service-managed-byoip" || "amazon-owned-eip" || "byoip" || "ec2-public-ip",
|
|
63
|
+
* // AddressType: "service-managed-ip" || "service-managed-byoip" || "amazon-owned-eip" || "amazon-owned-contig" || "byoip" || "ec2-public-ip",
|
|
64
64
|
* // Service: "nat-gateway" || "database-migration-service" || "redshift" || "elastic-container-service" || "relational-database-service" || "site-to-site-vpn" || "load-balancer" || "global-accelerator" || "other",
|
|
65
65
|
* // ServiceResource: "STRING_VALUE",
|
|
66
66
|
* // VpcId: "STRING_VALUE",
|
|
@@ -61,7 +61,7 @@ declare const GetIpamPoolAllocationsCommand_base: {
|
|
|
61
61
|
* // IpamPoolAllocationId: "STRING_VALUE",
|
|
62
62
|
* // Description: "STRING_VALUE",
|
|
63
63
|
* // ResourceId: "STRING_VALUE",
|
|
64
|
-
* // ResourceType: "ipam-pool" || "vpc" || "ec2-public-ipv4-pool" || "custom" || "subnet",
|
|
64
|
+
* // ResourceType: "ipam-pool" || "vpc" || "ec2-public-ipv4-pool" || "custom" || "subnet" || "eip",
|
|
65
65
|
* // ResourceRegion: "STRING_VALUE",
|
|
66
66
|
* // ResourceOwner: "STRING_VALUE",
|
|
67
67
|
* // },
|
|
@@ -29,16 +29,17 @@ declare const RegisterImageCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Registers an AMI. When you're creating an instance-store backed AMI, registering the AMI
|
|
31
31
|
* is the final step in the creation process. For more information about creating AMIs, see
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html">Create
|
|
33
|
-
*
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot">Create an AMI from a snapshot</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html">Create an instance-store
|
|
33
|
+
* backed AMI</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
34
34
|
* <note>
|
|
35
35
|
* <p>For Amazon EBS-backed instances, <a>CreateImage</a> creates and registers the AMI
|
|
36
36
|
* in a single request, so you don't have to register the AMI yourself. We recommend that you
|
|
37
37
|
* always use <a>CreateImage</a> unless you have a specific reason to use
|
|
38
38
|
* RegisterImage.</p>
|
|
39
39
|
* </note>
|
|
40
|
-
* <p>If needed, you can deregister an AMI at any time. Any modifications you make to an AMI
|
|
41
|
-
*
|
|
40
|
+
* <p>If needed, you can deregister an AMI at any time. Any modifications you make to an AMI
|
|
41
|
+
* backed by an instance store volume invalidates its registration. If you make changes to an
|
|
42
|
+
* image, deregister the previous image and register the new image.</p>
|
|
42
43
|
* <p>
|
|
43
44
|
* <b>Register a snapshot of a root device volume</b>
|
|
44
45
|
* </p>
|
|
@@ -47,29 +48,23 @@ declare const RegisterImageCommand_base: {
|
|
|
47
48
|
* You can't set the encryption state of the volume using the block device mapping. If the
|
|
48
49
|
* snapshot is encrypted, or encryption by default is enabled, the root volume of an instance
|
|
49
50
|
* launched from the AMI is encrypted.</p>
|
|
50
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot">Create
|
|
51
|
-
*
|
|
51
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot">Create an AMI from a snapshot</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html">Use encryption with Amazon EBS-backed
|
|
52
|
+
* AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
52
53
|
* <p>
|
|
53
54
|
* <b>Amazon Web Services Marketplace product codes</b>
|
|
54
55
|
* </p>
|
|
55
56
|
* <p>If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new
|
|
56
57
|
* AMI.</p>
|
|
57
|
-
* <p>
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* <p>Customize the instance.</p>
|
|
68
|
-
* </li>
|
|
69
|
-
* <li>
|
|
70
|
-
* <p>Create an AMI from the instance using <a>CreateImage</a>.</p>
|
|
71
|
-
* </li>
|
|
72
|
-
* </ol>
|
|
58
|
+
* <p>In most cases, AMIs for Windows, RedHat, SUSE, and SQL Server require correct licensing
|
|
59
|
+
* information to be present on the AMI. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understand AMI billing
|
|
60
|
+
* information</a> in the <i>Amazon EC2 User Guide</i>. When creating an AMI from
|
|
61
|
+
* a snapshot, the <code>RegisterImage</code> operation derives the correct billing information
|
|
62
|
+
* from the snapshot's metadata, but this requires the appropriate metadata to be present. To
|
|
63
|
+
* verify if the correct billing information was applied, check the <code>PlatformDetails</code>
|
|
64
|
+
* field on the new AMI. If the field is empty or doesn't match the expected operating system
|
|
65
|
+
* code (for example, Windows, RedHat, SUSE, or SQL), the AMI creation was unsuccessful, and you
|
|
66
|
+
* should discard the AMI and instead create the AMI from an instance using <a>CreateImage</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#how-to-create-ebs-ami">Create an AMI
|
|
67
|
+
* from an instance </a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
73
68
|
* <p>If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched
|
|
74
69
|
* from an AMI with a billing product code, make sure that the Reserved Instance has the matching
|
|
75
70
|
* billing product code. If you purchase a Reserved Instance without the matching billing product
|
|
@@ -2831,6 +2831,11 @@ export interface AllocateAddressRequest {
|
|
|
2831
2831
|
* @public
|
|
2832
2832
|
*/
|
|
2833
2833
|
TagSpecifications?: TagSpecification[];
|
|
2834
|
+
/**
|
|
2835
|
+
* <p>The ID of an IPAM pool.</p>
|
|
2836
|
+
* @public
|
|
2837
|
+
*/
|
|
2838
|
+
IpamPoolId?: string;
|
|
2834
2839
|
}
|
|
2835
2840
|
/**
|
|
2836
2841
|
* @public
|
|
@@ -3109,6 +3114,7 @@ export interface AllocateIpamPoolCidrRequest {
|
|
|
3109
3114
|
export declare const IpamPoolAllocationResourceType: {
|
|
3110
3115
|
readonly custom: "custom";
|
|
3111
3116
|
readonly ec2_public_ipv4_pool: "ec2-public-ipv4-pool";
|
|
3117
|
+
readonly eip: "eip";
|
|
3112
3118
|
readonly ipam_pool: "ipam-pool";
|
|
3113
3119
|
readonly subnet: "subnet";
|
|
3114
3120
|
readonly vpc: "vpc";
|
|
@@ -593,6 +593,7 @@ export interface GetIpamDiscoveredPublicAddressesRequest {
|
|
|
593
593
|
* @enum
|
|
594
594
|
*/
|
|
595
595
|
export declare const IpamPublicAddressType: {
|
|
596
|
+
readonly AMAZON_OWNED_CONTIG: "amazon-owned-contig";
|
|
596
597
|
readonly AMAZON_OWNED_EIP: "amazon-owned-eip";
|
|
597
598
|
readonly BYOIP: "byoip";
|
|
598
599
|
readonly EC2_PUBLIC_IP: "ec2-public-ip";
|
|
@@ -793,6 +793,7 @@ export interface AllocateAddressRequest {
|
|
|
793
793
|
CustomerOwnedIpv4Pool?: string;
|
|
794
794
|
DryRun?: boolean;
|
|
795
795
|
TagSpecifications?: TagSpecification[];
|
|
796
|
+
IpamPoolId?: string;
|
|
796
797
|
}
|
|
797
798
|
export interface AllocateAddressResult {
|
|
798
799
|
PublicIp?: string;
|
|
@@ -850,6 +851,7 @@ export interface AllocateIpamPoolCidrRequest {
|
|
|
850
851
|
export declare const IpamPoolAllocationResourceType: {
|
|
851
852
|
readonly custom: "custom";
|
|
852
853
|
readonly ec2_public_ipv4_pool: "ec2-public-ipv4-pool";
|
|
854
|
+
readonly eip: "eip";
|
|
853
855
|
readonly ipam_pool: "ipam-pool";
|
|
854
856
|
readonly subnet: "subnet";
|
|
855
857
|
readonly vpc: "vpc";
|
|
@@ -280,6 +280,7 @@ export interface GetIpamDiscoveredPublicAddressesRequest {
|
|
|
280
280
|
MaxResults?: number;
|
|
281
281
|
}
|
|
282
282
|
export declare const IpamPublicAddressType: {
|
|
283
|
+
readonly AMAZON_OWNED_CONTIG: "amazon-owned-contig";
|
|
283
284
|
readonly AMAZON_OWNED_EIP: "amazon-owned-eip";
|
|
284
285
|
readonly BYOIP: "byoip";
|
|
285
286
|
readonly EC2_PUBLIC_IP: "ec2-public-ip";
|
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.645.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",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.645.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.645.0",
|
|
25
25
|
"@aws-sdk/core": "3.635.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.645.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
30
30
|
"@aws-sdk/middleware-sdk-ec2": "3.635.0",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.645.0",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
33
33
|
"@aws-sdk/types": "3.609.0",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.645.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
36
36
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
37
37
|
"@smithy/config-resolver": "^3.0.5",
|