@aws-sdk/client-ec2 3.80.0 → 3.83.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.83.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.82.0...v3.83.0) (2022-05-03)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-ec2:** Adds support for allocating Dedicated Hosts on AWS Outposts. The AllocateHosts API now accepts an OutpostArn request parameter, and the DescribeHosts API now includes an OutpostArn response parameter. ([75a68fd](https://github.com/aws/aws-sdk-js-v3/commit/75a68fd0fa8a44060c46771f323083d9e25c17f3))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.82.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.81.0...v3.82.0) (2022-05-02)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-ec2
20
+
21
+
22
+
23
+
24
+
25
+ # [3.81.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.80.0...v3.81.0) (2022-04-29)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-ec2
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
7
34
 
8
35
 
@@ -24203,6 +24203,9 @@ const serializeAws_ec2AllocateHostsRequest = (input, context) => {
24203
24203
  if (input.HostRecovery !== undefined && input.HostRecovery !== null) {
24204
24204
  entries["HostRecovery"] = input.HostRecovery;
24205
24205
  }
24206
+ if (input.OutpostArn !== undefined && input.OutpostArn !== null) {
24207
+ entries["OutpostArn"] = input.OutpostArn;
24208
+ }
24206
24209
  return entries;
24207
24210
  };
24208
24211
  const serializeAws_ec2AllocateIpamPoolCidrRequest = (input, context) => {
@@ -51476,6 +51479,7 @@ const deserializeAws_ec2Host = (output, context) => {
51476
51479
  OwnerId: undefined,
51477
51480
  AvailabilityZoneId: undefined,
51478
51481
  MemberOfServiceLinkedResourceGroup: undefined,
51482
+ OutpostArn: undefined,
51479
51483
  };
51480
51484
  if (output["autoPlacement"] !== undefined) {
51481
51485
  contents.AutoPlacement = (0, smithy_client_1.expectString)(output["autoPlacement"]);
@@ -51534,6 +51538,9 @@ const deserializeAws_ec2Host = (output, context) => {
51534
51538
  if (output["memberOfServiceLinkedResourceGroup"] !== undefined) {
51535
51539
  contents.MemberOfServiceLinkedResourceGroup = (0, smithy_client_1.parseBoolean)(output["memberOfServiceLinkedResourceGroup"]);
51536
51540
  }
51541
+ if (output["outpostArn"] !== undefined) {
51542
+ contents.OutpostArn = (0, smithy_client_1.expectString)(output["outpostArn"]);
51543
+ }
51537
51544
  return contents;
51538
51545
  };
51539
51546
  const deserializeAws_ec2HostInstance = (output, context) => {
@@ -29136,6 +29136,9 @@ var serializeAws_ec2AllocateHostsRequest = function (input, context) {
29136
29136
  if (input.HostRecovery !== undefined && input.HostRecovery !== null) {
29137
29137
  entries["HostRecovery"] = input.HostRecovery;
29138
29138
  }
29139
+ if (input.OutpostArn !== undefined && input.OutpostArn !== null) {
29140
+ entries["OutpostArn"] = input.OutpostArn;
29141
+ }
29139
29142
  return entries;
29140
29143
  };
29141
29144
  var serializeAws_ec2AllocateIpamPoolCidrRequest = function (input, context) {
@@ -59585,6 +59588,7 @@ var deserializeAws_ec2Host = function (output, context) {
59585
59588
  OwnerId: undefined,
59586
59589
  AvailabilityZoneId: undefined,
59587
59590
  MemberOfServiceLinkedResourceGroup: undefined,
59591
+ OutpostArn: undefined,
59588
59592
  };
59589
59593
  if (output["autoPlacement"] !== undefined) {
59590
59594
  contents.AutoPlacement = __expectString(output["autoPlacement"]);
@@ -59643,6 +59647,9 @@ var deserializeAws_ec2Host = function (output, context) {
59643
59647
  if (output["memberOfServiceLinkedResourceGroup"] !== undefined) {
59644
59648
  contents.MemberOfServiceLinkedResourceGroup = __parseBoolean(output["memberOfServiceLinkedResourceGroup"]);
59645
59649
  }
59650
+ if (output["outpostArn"] !== undefined) {
59651
+ contents.OutpostArn = __expectString(output["outpostArn"]);
59652
+ }
59646
59653
  return contents;
59647
59654
  };
59648
59655
  var deserializeAws_ec2HostInstance = function (output, context) {
@@ -5948,7 +5948,8 @@ export declare class EC2 extends EC2Client {
5948
5948
  startVpcEndpointServicePrivateDnsVerification(args: StartVpcEndpointServicePrivateDnsVerificationCommandInput, cb: (err: any, data?: StartVpcEndpointServicePrivateDnsVerificationCommandOutput) => void): void;
5949
5949
  startVpcEndpointServicePrivateDnsVerification(args: StartVpcEndpointServicePrivateDnsVerificationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartVpcEndpointServicePrivateDnsVerificationCommandOutput) => void): void;
5950
5950
  /**
5951
- * <p>Stops an Amazon EBS-backed instance.</p>
5951
+ * <p>Stops an Amazon EBS-backed instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stop and start
5952
+ * your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
5952
5953
  * <p>You can use the Stop action to hibernate an instance if the instance is <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation">enabled for
5953
5954
  * hibernation</a> and it meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites">hibernation
5954
5955
  * prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the
@@ -7,7 +7,8 @@ export interface StopInstancesCommandInput extends StopInstancesRequest {
7
7
  export interface StopInstancesCommandOutput extends StopInstancesResult, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Stops an Amazon EBS-backed instance.</p>
10
+ * <p>Stops an Amazon EBS-backed instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stop and start
11
+ * your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
11
12
  * <p>You can use the Stop action to hibernate an instance if the instance is <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation">enabled for
12
13
  * hibernation</a> and it meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites">hibernation
13
14
  * prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the
@@ -1831,6 +1831,10 @@ export interface AllocateHostsRequest {
1831
1831
  * </p>
1832
1832
  */
1833
1833
  HostRecovery?: HostRecovery | string;
1834
+ /**
1835
+ * <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.</p>
1836
+ */
1837
+ OutpostArn?: string;
1834
1838
  }
1835
1839
  export declare namespace AllocateHostsRequest {
1836
1840
  /**
@@ -3019,6 +3019,10 @@ export interface Host {
3019
3019
  * <code>true</code>, the host is in a host resource group; otherwise, it is not.</p>
3020
3020
  */
3021
3021
  MemberOfServiceLinkedResourceGroup?: boolean;
3022
+ /**
3023
+ * <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.</p>
3024
+ */
3025
+ OutpostArn?: string;
3022
3026
  }
3023
3027
  export declare namespace Host {
3024
3028
  /**
@@ -990,6 +990,8 @@ export interface AllocateHostsRequest {
990
990
  TagSpecifications?: TagSpecification[];
991
991
 
992
992
  HostRecovery?: HostRecovery | string;
993
+
994
+ OutpostArn?: string;
993
995
  }
994
996
  export declare namespace AllocateHostsRequest {
995
997
 
@@ -1276,6 +1276,8 @@ export interface Host {
1276
1276
  AvailabilityZoneId?: string;
1277
1277
 
1278
1278
  MemberOfServiceLinkedResourceGroup?: boolean;
1279
+
1280
+ OutpostArn?: string;
1279
1281
  }
1280
1282
  export declare namespace Host {
1281
1283
 
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.80.0",
4
+ "version": "3.83.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.80.0",
21
+ "@aws-sdk/client-sts": "3.82.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.80.0",
23
+ "@aws-sdk/credential-provider-node": "3.82.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
@@ -34,7 +34,7 @@
34
34
  "@aws-sdk/middleware-stack": "3.78.0",
35
35
  "@aws-sdk/middleware-user-agent": "3.78.0",
36
36
  "@aws-sdk/node-config-provider": "3.80.0",
37
- "@aws-sdk/node-http-handler": "3.78.0",
37
+ "@aws-sdk/node-http-handler": "3.82.0",
38
38
  "@aws-sdk/protocol-http": "3.78.0",
39
39
  "@aws-sdk/smithy-client": "3.78.0",
40
40
  "@aws-sdk/types": "3.78.0",
@@ -44,7 +44,7 @@
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
46
  "@aws-sdk/util-defaults-mode-browser": "3.78.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.80.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.81.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.78.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.80.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.55.0",