Skip to content

Commit

Permalink
feat(client-ec2): EC2 adds API updates to enable ENA Express at insta…
Browse files Browse the repository at this point in the history
…nce launch time.
  • Loading branch information
awstools committed Nov 10, 2023
1 parent b8924ba commit b4b5fdd
Show file tree
Hide file tree
Showing 37 changed files with 1,518 additions and 993 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
* ],
* Ipv6PrefixCount: Number("int"),
* PrimaryIpv6: true || false,
* EnaSrdSpecification: { // EnaSrdSpecificationRequest
* EnaSrdEnabled: true || false,
* EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* EnaSrdUdpEnabled: true || false,
* },
* },
* },
* ],
* ImageId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* ],
* Ipv6PrefixCount: Number("int"),
* PrimaryIpv6: true || false,
* EnaSrdSpecification: { // EnaSrdSpecificationRequest
* EnaSrdEnabled: true || false,
* EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* EnaSrdUdpEnabled: true || false,
* },
* },
* },
* ],
* ImageId: "STRING_VALUE",
Expand Down Expand Up @@ -380,6 +386,12 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* // ],
* // Ipv6PrefixCount: Number("int"),
* // PrimaryIpv6: true || false,
* // EnaSrdSpecification: { // LaunchTemplateEnaSrdSpecification
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // LaunchTemplateEnaSrdUdpSpecification
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // ],
* // ImageId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { CreatePlacementGroupRequest } from "../models/models_1";
import { CreatePlacementGroupResult } from "../models/models_2";
import { CreatePlacementGroupRequest, CreatePlacementGroupResult } from "../models/models_2";
import { de_CreatePlacementGroupCommand, se_CreatePlacementGroupCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DeleteNetworkInterfaceRequest } from "../models/models_2";
import { DeleteNetworkInterfaceRequest } from "../models/models_3";
import { de_DeleteNetworkInterfaceCommand, se_DeleteNetworkInterfaceCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DeleteNetworkInterfacePermissionRequest, DeleteNetworkInterfacePermissionResult } from "../models/models_2";
import { DeleteNetworkInterfacePermissionRequest, DeleteNetworkInterfacePermissionResult } from "../models/models_3";
import {
de_DeleteNetworkInterfacePermissionCommand,
se_DeleteNetworkInterfacePermissionCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DeletePlacementGroupRequest } from "../models/models_2";
import { DeletePlacementGroupRequest } from "../models/models_3";
import { de_DeletePlacementGroupCommand, se_DeletePlacementGroupCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "
import {
DescribeInstanceEventNotificationAttributesRequest,
DescribeInstanceEventNotificationAttributesResult,
} from "../models/models_3";
} from "../models/models_4";
import {
de_DescribeInstanceEventNotificationAttributesCommand,
se_DescribeInstanceEventNotificationAttributesCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DescribeInstanceEventWindowsRequest, DescribeInstanceEventWindowsResult } from "../models/models_3";
import { DescribeInstanceEventWindowsRequest, DescribeInstanceEventWindowsResult } from "../models/models_4";
import { de_DescribeInstanceEventWindowsCommand, se_DescribeInstanceEventWindowsCommand } from "../protocols/Aws_ec2";

/**
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ec2/src/commands/DescribeInstancesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ export interface DescribeInstancesCommandOutput extends DescribeInstancesResult,
* // DeviceIndex: Number("int"),
* // Status: "attaching" || "attached" || "detaching" || "detached",
* // NetworkCardIndex: Number("int"),
* // EnaSrdSpecification: { // InstanceAttachmentEnaSrdSpecification
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // InstanceAttachmentEnaSrdUdpSpecification
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // Description: "STRING_VALUE",
* // Groups: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ export interface DescribeLaunchTemplateVersionsCommandOutput
* // ],
* // Ipv6PrefixCount: Number("int"),
* // PrimaryIpv6: true || false,
* // EnaSrdSpecification: { // LaunchTemplateEnaSrdSpecification
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // LaunchTemplateEnaSrdUdpSpecification
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // ],
* // ImageId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ export interface DescribeSpotFleetRequestsCommandOutput extends DescribeSpotFlee
* // ],
* // Ipv6PrefixCount: Number("int"),
* // PrimaryIpv6: true || false,
* // EnaSrdSpecification: { // EnaSrdSpecificationRequest
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // ],
* // Placement: { // SpotPlacement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ export interface DescribeSpotInstanceRequestsCommandOutput
* // ],
* // Ipv6PrefixCount: Number("int"),
* // PrimaryIpv6: true || false,
* // EnaSrdSpecification: { // EnaSrdSpecificationRequest
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // ],
* // Placement: { // SpotPlacement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DescribeTransitGatewayRouteTablesRequest, DescribeTransitGatewayRouteTablesResult } from "../models/models_4";
import { DescribeTransitGatewayRouteTablesRequest, DescribeTransitGatewayRouteTablesResult } from "../models/models_5";
import {
de_DescribeTransitGatewayRouteTablesCommand,
se_DescribeTransitGatewayRouteTablesCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "
import {
DescribeTransitGatewayVpcAttachmentsRequest,
DescribeTransitGatewayVpcAttachmentsResult,
} from "../models/models_4";
} from "../models/models_5";
import {
de_DescribeTransitGatewayVpcAttachmentsCommand,
se_DescribeTransitGatewayVpcAttachmentsCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DescribeTransitGatewaysRequest, DescribeTransitGatewaysResult } from "../models/models_4";
import { DescribeTransitGatewaysRequest, DescribeTransitGatewaysResult } from "../models/models_5";
import { de_DescribeTransitGatewaysCommand, se_DescribeTransitGatewaysCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ export interface GetLaunchTemplateDataCommandOutput extends GetLaunchTemplateDat
* // ],
* // Ipv6PrefixCount: Number("int"),
* // PrimaryIpv6: true || false,
* // EnaSrdSpecification: { // LaunchTemplateEnaSrdSpecification
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // LaunchTemplateEnaSrdUdpSpecification
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // ],
* // ImageId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { GetSubnetCidrReservationsRequest, GetSubnetCidrReservationsResult } from "../models/models_5";
import { GetSubnetCidrReservationsRequest } from "../models/models_5";
import { GetSubnetCidrReservationsResult } from "../models/models_6";
import { de_GetSubnetCidrReservationsCommand, se_GetSubnetCidrReservationsCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "
import {
GetTransitGatewayAttachmentPropagationsRequest,
GetTransitGatewayAttachmentPropagationsResult,
} from "../models/models_5";
} from "../models/models_6";
import {
de_GetTransitGatewayAttachmentPropagationsCommand,
se_GetTransitGatewayAttachmentPropagationsCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { GetTransitGatewayMulticastDomainAssociationsRequest } from "../models/models_5";
import { GetTransitGatewayMulticastDomainAssociationsResult } from "../models/models_6";
import {
GetTransitGatewayMulticastDomainAssociationsRequest,
GetTransitGatewayMulticastDomainAssociationsResult,
} from "../models/models_6";
import {
de_GetTransitGatewayMulticastDomainAssociationsCommand,
se_GetTransitGatewayMulticastDomainAssociationsCommand,
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ec2/src/commands/RequestSpotFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
* ],
* Ipv6PrefixCount: Number("int"),
* PrimaryIpv6: true || false,
* EnaSrdSpecification: { // EnaSrdSpecificationRequest
* EnaSrdEnabled: true || false,
* EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* EnaSrdUdpEnabled: true || false,
* },
* },
* },
* ],
* Placement: { // SpotPlacement
Expand Down
12 changes: 12 additions & 0 deletions clients/client-ec2/src/commands/RequestSpotInstancesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
* ],
* Ipv6PrefixCount: Number("int"),
* PrimaryIpv6: true || false,
* EnaSrdSpecification: { // EnaSrdSpecificationRequest
* EnaSrdEnabled: true || false,
* EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* EnaSrdUdpEnabled: true || false,
* },
* },
* },
* ],
* Placement: { // SpotPlacement
Expand Down Expand Up @@ -266,6 +272,12 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
* // ],
* // Ipv6PrefixCount: Number("int"),
* // PrimaryIpv6: true || false,
* // EnaSrdSpecification: { // EnaSrdSpecificationRequest
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // ],
* // Placement: { // SpotPlacement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { ResetImageAttributeRequest } from "../models/models_6";
import { ResetImageAttributeRequest } from "../models/models_7";
import { de_ResetImageAttributeCommand, se_ResetImageAttributeCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { ResetInstanceAttributeRequest } from "../models/models_6";
import { ResetInstanceAttributeRequest } from "../models/models_7";
import { de_ResetInstanceAttributeCommand, se_ResetInstanceAttributeCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { ResetNetworkInterfaceAttributeRequest } from "../models/models_6";
import { ResetNetworkInterfaceAttributeRequest } from "../models/models_7";
import {
de_ResetNetworkInterfaceAttributeCommand,
se_ResetNetworkInterfaceAttributeCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { ResetSnapshotAttributeRequest } from "../models/models_6";
import { ResetSnapshotAttributeRequest } from "../models/models_7";
import { de_ResetSnapshotAttributeCommand, se_ResetSnapshotAttributeCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { RestoreAddressToClassicRequest, RestoreAddressToClassicResult } from "../models/models_6";
import { RestoreAddressToClassicRequest, RestoreAddressToClassicResult } from "../models/models_7";
import { de_RestoreAddressToClassicCommand, se_RestoreAddressToClassicCommand } from "../protocols/Aws_ec2";

/**
Expand Down
12 changes: 12 additions & 0 deletions clients/client-ec2/src/commands/RunInstancesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ export interface RunInstancesCommandOutput extends Reservation, __MetadataBearer
* ],
* Ipv6PrefixCount: Number("int"),
* PrimaryIpv6: true || false,
* EnaSrdSpecification: { // EnaSrdSpecificationRequest
* EnaSrdEnabled: true || false,
* EnaSrdUdpSpecification: { // EnaSrdUdpSpecificationRequest
* EnaSrdUdpEnabled: true || false,
* },
* },
* },
* ],
* PrivateIpAddress: "STRING_VALUE",
Expand Down Expand Up @@ -387,6 +393,12 @@ export interface RunInstancesCommandOutput extends Reservation, __MetadataBearer
* // DeviceIndex: Number("int"),
* // Status: "attaching" || "attached" || "detaching" || "detached",
* // NetworkCardIndex: Number("int"),
* // EnaSrdSpecification: { // InstanceAttachmentEnaSrdSpecification
* // EnaSrdEnabled: true || false,
* // EnaSrdUdpSpecification: { // InstanceAttachmentEnaSrdUdpSpecification
* // EnaSrdUdpEnabled: true || false,
* // },
* // },
* // },
* // Description: "STRING_VALUE",
* // Groups: [
Expand Down
5 changes: 3 additions & 2 deletions clients/client-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5452,7 +5452,7 @@ export interface AttachInternetGatewayRequest {

/**
* @public
* <p>ENA Express is compatible with both TCP and UDP transport protocols. When its enabled, TCP traffic
* <p>ENA Express is compatible with both TCP and UDP transport protocols. When it's enabled, TCP traffic
* automatically uses it. However, some UDP-based applications are designed to handle network packets that are
* out of order, without a need for retransmission, such as live video broadcasting or other near-real-time
* applications. For UDP traffic, you can specify whether to use ENA Express, based on your application
Expand All @@ -5461,7 +5461,8 @@ export interface AttachInternetGatewayRequest {
export interface EnaSrdUdpSpecification {
/**
* @public
* <p>Indicates whether UDP traffic uses ENA Express. To specify this setting, you must first enable ENA Express.</p>
* <p>Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting,
* you must first enable ENA Express.</p>
*/
EnaSrdUdpEnabled?: boolean;
}
Expand Down
Loading

0 comments on commit b4b5fdd

Please sign in to comment.