Skip to content

Commit 5b52d8f

Browse files
author
awstools
committed
feat(client-ec2): Release to support Elastic VMware Service (Amazon EVS) Subnet and Amazon EVS Network Interface Types.
1 parent 4a8e853 commit 5b52d8f

16 files changed

+191
-19
lines changed

clients/client-ec2/src/commands/AttachVolumeCommand.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ export interface AttachVolumeCommandInput extends AttachVolumeRequest {}
2828
export interface AttachVolumeCommandOutput extends VolumeAttachment, __MetadataBearer {}
2929

3030
/**
31-
* <p>Attaches an EBS volume to a running or stopped instance and exposes it to the instance
32-
* with the specified device name.</p>
33-
* <p>Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For
34-
* more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html">Amazon EBS encryption</a> in the <i>Amazon EBS User Guide</i>.</p>
35-
* <p>After you attach an EBS volume, you must make it available. For more information, see
36-
* <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-using-volumes.html">Make an EBS volume available for use</a>.</p>
31+
* <p>Attaches an Amazon EBS volume to a <code>running</code> or <code>stopped</code>
32+
* instance, and exposes it to the instance with the specified device name.</p>
33+
* <note>
34+
* <p>The maximum number of Amazon EBS volumes that you can attach to an instance depends on the
35+
* instance type. If you exceed the volume attachment limit for an instance type, the attachment
36+
* request fails with the <code>AttachmentLimitExceeded</code> error. For more information,
37+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html">Instance
38+
* volume limits</a>.</p>
39+
* </note>
40+
* <p>After you attach an EBS volume, you must make it available for use. For more information,
41+
* see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-using-volumes.html">Make an
42+
* EBS volume available for use</a>.</p>
3743
* <p>If a volume has an Amazon Web Services Marketplace product code:</p>
3844
* <ul>
3945
* <li>

clients/client-ec2/src/commands/CreateDefaultSubnetCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ export interface CreateDefaultSubnetCommandOutput extends CreateDefaultSubnetRes
8383
* // BlockPublicAccessStates: { // BlockPublicAccessStates
8484
* // InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress",
8585
* // },
86+
* // Type: "STRING_VALUE",
8687
* // SubnetId: "STRING_VALUE",
87-
* // State: "pending" || "available" || "unavailable",
88+
* // State: "pending" || "available" || "unavailable" || "failed" || "failed-insufficient-capacity",
8889
* // VpcId: "STRING_VALUE",
8990
* // CidrBlock: "STRING_VALUE",
9091
* // AvailableIpAddressCount: Number("int"),

clients/client-ec2/src/commands/CreateNetworkInterfaceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ export interface CreateNetworkInterfaceCommandOutput extends CreateNetworkInterf
205205
* // Managed: true || false,
206206
* // Principal: "STRING_VALUE",
207207
* // },
208+
* // AssociatedSubnets: [ // AssociatedSubnetList
209+
* // "STRING_VALUE",
210+
* // ],
208211
* // },
209212
* // ClientToken: "STRING_VALUE",
210213
* // };

clients/client-ec2/src/commands/CreateSubnetCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ export interface CreateSubnetCommandOutput extends CreateSubnetResult, __Metadat
116116
* // BlockPublicAccessStates: { // BlockPublicAccessStates
117117
* // InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress",
118118
* // },
119+
* // Type: "STRING_VALUE",
119120
* // SubnetId: "STRING_VALUE",
120-
* // State: "pending" || "available" || "unavailable",
121+
* // State: "pending" || "available" || "unavailable" || "failed" || "failed-insufficient-capacity",
121122
* // VpcId: "STRING_VALUE",
122123
* // CidrBlock: "STRING_VALUE",
123124
* // AvailableIpAddressCount: Number("int"),

clients/client-ec2/src/commands/DescribeAddressesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface DescribeAddressesCommandOutput extends DescribeAddressesResult,
7474
* // CustomerOwnedIp: "STRING_VALUE",
7575
* // CustomerOwnedIpv4Pool: "STRING_VALUE",
7676
* // CarrierIp: "STRING_VALUE",
77+
* // SubnetId: "STRING_VALUE",
7778
* // ServiceManaged: "alb" || "nlb" || "rnat",
7879
* // InstanceId: "STRING_VALUE",
7980
* // PublicIp: "STRING_VALUE",

clients/client-ec2/src/commands/DescribeNetworkInterfacesCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export interface DescribeNetworkInterfacesCommandOutput extends DescribeNetworkI
170170
* // Managed: true || false,
171171
* // Principal: "STRING_VALUE",
172172
* // },
173+
* // AssociatedSubnets: [ // AssociatedSubnetList
174+
* // "STRING_VALUE",
175+
* // ],
173176
* // },
174177
* // ],
175178
* // NextToken: "STRING_VALUE",

clients/client-ec2/src/commands/DescribeSubnetsCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ export interface DescribeSubnetsCommandOutput extends DescribeSubnetsResult, __M
9797
* // BlockPublicAccessStates: { // BlockPublicAccessStates
9898
* // InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress",
9999
* // },
100+
* // Type: "STRING_VALUE",
100101
* // SubnetId: "STRING_VALUE",
101-
* // State: "pending" || "available" || "unavailable",
102+
* // State: "pending" || "available" || "unavailable" || "failed" || "failed-insufficient-capacity",
102103
* // VpcId: "STRING_VALUE",
103104
* // CidrBlock: "STRING_VALUE",
104105
* // AvailableIpAddressCount: Number("int"),

clients/client-ec2/src/commands/ModifyNetworkInterfaceAttributeCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export interface ModifyNetworkInterfaceAttributeCommandOutput extends __Metadata
5454
* UdpTimeout: Number("int"),
5555
* },
5656
* AssociatePublicIpAddress: true || false,
57+
* AssociatedSubnetIds: [ // SubnetIdList
58+
* "STRING_VALUE",
59+
* ],
5760
* DryRun: true || false,
5861
* NetworkInterfaceId: "STRING_VALUE", // required
5962
* Description: { // AttributeValue

clients/client-ec2/src/models/models_0.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,6 +3042,12 @@ export interface Address {
30423042
*/
30433043
CarrierIp?: string | undefined;
30443044

3045+
/**
3046+
* <p>The ID of the subnet where the IP address is allocated.</p>
3047+
* @public
3048+
*/
3049+
SubnetId?: string | undefined;
3050+
30453051
/**
30463052
* <p>The service that manages the elastic IP address.</p>
30473053
* <note>

clients/client-ec2/src/models/models_1.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,6 +3535,8 @@ export interface PrivateDnsNameOptionsOnLaunch {
35353535
*/
35363536
export const SubnetState = {
35373537
available: "available",
3538+
failed: "failed",
3539+
failed_insufficient_capacity: "failed-insufficient-capacity",
35383540
pending: "pending",
35393541
unavailable: "unavailable",
35403542
} as const;
@@ -3641,6 +3643,17 @@ export interface Subnet {
36413643
*/
36423644
BlockPublicAccessStates?: BlockPublicAccessStates | undefined;
36433645

3646+
/**
3647+
* <p>Indicates if this is a subnet used with Amazon Elastic VMware Service (EVS).
3648+
* Possible values are <code>Elastic VMware Service</code> or no value. For more
3649+
* information about Amazon EVS, see <a href="https://docs.aws.amazon.com/evs/latest/APIReference/Welcome.html">
3650+
* <i>Amazon Elastic VMware Service
3651+
* API Reference</i>
3652+
* </a>.</p>
3653+
* @public
3654+
*/
3655+
Type?: string | undefined;
3656+
36443657
/**
36453658
* <p>The ID of the subnet.</p>
36463659
* @public
@@ -3649,6 +3662,18 @@ export interface Subnet {
36493662

36503663
/**
36513664
* <p>The current state of the subnet.</p>
3665+
* <ul>
3666+
* <li>
3667+
* <p>
3668+
* <code>failed</code>: The underlying infrastructure to support the subnet failed to provision
3669+
* as expected.</p>
3670+
* </li>
3671+
* <li>
3672+
* <p>
3673+
* <code>failed-insufficient-capacity</code>: The underlying infrastructure to support the subnet
3674+
* failed to provision due to a shortage of EC2 instance capacity.</p>
3675+
* </li>
3676+
* </ul>
36523677
* @public
36533678
*/
36543679
State?: SubnetState | undefined;

0 commit comments

Comments
 (0)