Skip to content

Commit

Permalink
feat(client-ec2): Add serviceManaged field to DescribeAddresses API r…
Browse files Browse the repository at this point in the history
…esponse.
  • Loading branch information
awstools committed Mar 7, 2025
1 parent 28c9d3b commit 23d9c73
Show file tree
Hide file tree
Showing 16 changed files with 311 additions and 259 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateLocalGatewayRouteRequest, CreateLocalGatewayRouteResult } from "../models/models_1";
import { CreateLocalGatewayRouteRequest } from "../models/models_1";
import { CreateLocalGatewayRouteResult } from "../models/models_2";
import { de_CreateLocalGatewayRouteCommand, se_CreateLocalGatewayRouteCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface DescribeAddressesCommandOutput extends DescribeAddressesResult,
* // CustomerOwnedIp: "STRING_VALUE",
* // CustomerOwnedIpv4Pool: "STRING_VALUE",
* // CarrierIp: "STRING_VALUE",
* // ServiceManaged: "alb" || "nlb",
* // InstanceId: "STRING_VALUE",
* // PublicIp: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DisassociateSubnetCidrBlockRequest, DisassociateSubnetCidrBlockResult } from "../models/models_5";
import { DisassociateSubnetCidrBlockRequest } from "../models/models_5";
import { DisassociateSubnetCidrBlockResult } from "../models/models_6";
import { de_DisassociateSubnetCidrBlockCommand, se_DisassociateSubnetCidrBlockCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import {
ModifyInstanceCapacityReservationAttributesRequest,
ModifyInstanceCapacityReservationAttributesResult,
} from "../models/models_6";
import { ModifyInstanceCapacityReservationAttributesRequest } from "../models/models_6";
import { ModifyInstanceCapacityReservationAttributesResult } from "../models/models_7";
import {
de_ModifyInstanceCapacityReservationAttributesCommand,
se_ModifyInstanceCapacityReservationAttributesCommand,
Expand Down
3 changes: 1 addition & 2 deletions clients/client-ec2/src/commands/StopInstancesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { StopInstancesRequest } from "../models/models_7";
import { StopInstancesResult } from "../models/models_8";
import { StopInstancesRequest, StopInstancesResult } from "../models/models_8";
import { de_StopInstancesCommand, se_StopInstancesCommand } from "../protocols/Aws_ec2";

/**
Expand Down
38 changes: 23 additions & 15 deletions clients/client-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,20 @@ export const DomainType = {
*/
export type DomainType = (typeof DomainType)[keyof typeof DomainType];

/**
* @public
* @enum
*/
export const ServiceManaged = {
alb: "alb",
nlb: "nlb",
} as const;

/**
* @public
*/
export type ServiceManaged = (typeof ServiceManaged)[keyof typeof ServiceManaged];

/**
* <p>Describes an Elastic IP address, or a carrier IP address.</p>
* @public
Expand Down Expand Up @@ -2932,6 +2946,15 @@ export interface Address {
*/
CarrierIp?: string | undefined;

/**
* <p>The service that manages the elastic IP address.</p>
* <note>
* <p>The only option supported today is <code>alb</code>.</p>
* </note>
* @public
*/
ServiceManaged?: ServiceManaged | undefined;

/**
* <p>The ID of the instance that the address is associated with (if any).</p>
* @public
Expand Down Expand Up @@ -8551,21 +8574,6 @@ export interface CopySnapshotResult {
SnapshotId?: string | undefined;
}

/**
* @public
* @enum
*/
export const CapacityReservationDeliveryPreference = {
FIXED: "fixed",
INCREMENTAL: "incremental",
} as const;

/**
* @public
*/
export type CapacityReservationDeliveryPreference =
(typeof CapacityReservationDeliveryPreference)[keyof typeof CapacityReservationDeliveryPreference];

/**
* @internal
*/
Expand Down
27 changes: 15 additions & 12 deletions clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
AddressFamily,
AllocationType,
AttachmentStatus,
CapacityReservationDeliveryPreference,
CapacityReservationFleetState,
InstanceEventWindow,
ResourceType,
Expand All @@ -26,6 +25,21 @@ import {
WeekDay,
} from "./models_0";

/**
* @public
* @enum
*/
export const CapacityReservationDeliveryPreference = {
FIXED: "fixed",
INCREMENTAL: "incremental",
} as const;

/**
* @public
*/
export type CapacityReservationDeliveryPreference =
(typeof CapacityReservationDeliveryPreference)[keyof typeof CapacityReservationDeliveryPreference];

/**
* @public
* @enum
Expand Down Expand Up @@ -12481,17 +12495,6 @@ export interface LocalGatewayRoute {
DestinationPrefixListId?: string | undefined;
}

/**
* @public
*/
export interface CreateLocalGatewayRouteResult {
/**
* <p>Information about the route.</p>
* @public
*/
Route?: LocalGatewayRoute | undefined;
}

/**
* @internal
*/
Expand Down
59 changes: 14 additions & 45 deletions clients/client-ec2/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
InstanceIpv6Address,
Ipv4PrefixSpecificationRequest,
Ipv6PrefixSpecificationRequest,
LocalGatewayRoute,
OperatorRequest,
OperatorResponse,
PrivateIpAddressSpecification,
Expand All @@ -49,6 +50,17 @@ import {
Vpc,
} from "./models_1";

/**
* @public
*/
export interface CreateLocalGatewayRouteResult {
/**
* <p>Information about the route.</p>
* @public
*/
Route?: LocalGatewayRoute | undefined;
}

/**
* @public
* @enum
Expand Down Expand Up @@ -3352,8 +3364,8 @@ export interface CreateSecurityGroupRequest {
Description: string | undefined;

/**
* <p>The name of the security group.</p>
* <p>Constraints: Up to 255 characters in length. Cannot start with <code>sg-</code>.</p>
* <p>The name of the security group. Names are case-insensitive and must be unique within the VPC.</p>
* <p>Constraints: Up to 255 characters in length. Can't start with <code>sg-</code>.</p>
* <p>Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;\{\}!$*</p>
* @public
*/
Expand Down Expand Up @@ -10411,49 +10423,6 @@ export const TelemetryStatus = {
*/
export type TelemetryStatus = (typeof TelemetryStatus)[keyof typeof TelemetryStatus];

/**
* <p>Describes telemetry for a VPN tunnel.</p>
* @public
*/
export interface VgwTelemetry {
/**
* <p>The number of accepted routes.</p>
* @public
*/
AcceptedRouteCount?: number | undefined;

/**
* <p>The date and time of the last change in status. This field is updated when changes in IKE (Phase 1), IPSec (Phase 2), or BGP status are detected.</p>
* @public
*/
LastStatusChange?: Date | undefined;

/**
* <p>The Internet-routable IP address of the virtual private gateway's outside
* interface.</p>
* @public
*/
OutsideIpAddress?: string | undefined;

/**
* <p>The status of the VPN tunnel.</p>
* @public
*/
Status?: TelemetryStatus | undefined;

/**
* <p>If an error occurs, a description of the error.</p>
* @public
*/
StatusMessage?: string | undefined;

/**
* <p>The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.</p>
* @public
*/
CertificateArn?: string | undefined;
}

/**
* @internal
*/
Expand Down
59 changes: 44 additions & 15 deletions clients/client-ec2/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import {
LocalGatewayRouteTableVpcAssociation,
ManagedPrefixList,
SubnetCidrReservation,
TelemetryStatus,
TransitGateway,
TransitGatewayConnect,
TransitGatewayConnectPeer,
Expand All @@ -75,14 +76,56 @@ import {
TransitGatewayRouteTableAnnouncement,
VerifiedAccessEndpoint,
VerifiedAccessGroup,
VgwTelemetry,
VpcBlockPublicAccessExclusion,
VpnConnectionOptions,
VpnConnectionOptionsFilterSensitiveLog,
VpnState,
VpnStaticRoute,
} from "./models_2";

/**
* <p>Describes telemetry for a VPN tunnel.</p>
* @public
*/
export interface VgwTelemetry {
/**
* <p>The number of accepted routes.</p>
* @public
*/
AcceptedRouteCount?: number | undefined;

/**
* <p>The date and time of the last change in status. This field is updated when changes in IKE (Phase 1), IPSec (Phase 2), or BGP status are detected.</p>
* @public
*/
LastStatusChange?: Date | undefined;

/**
* <p>The Internet-routable IP address of the virtual private gateway's outside
* interface.</p>
* @public
*/
OutsideIpAddress?: string | undefined;

/**
* <p>The status of the VPN tunnel.</p>
* @public
*/
Status?: TelemetryStatus | undefined;

/**
* <p>If an error occurs, a description of the error.</p>
* @public
*/
StatusMessage?: string | undefined;

/**
* <p>The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.</p>
* @public
*/
CertificateArn?: string | undefined;
}

/**
* <p>Describes a VPN connection.</p>
* @public
Expand Down Expand Up @@ -7665,20 +7708,6 @@ export const FastLaunchResourceType = {
*/
export type FastLaunchResourceType = (typeof FastLaunchResourceType)[keyof typeof FastLaunchResourceType];

/**
* <p>Configuration settings for creating and managing pre-provisioned snapshots for a Windows
* fast launch enabled Windows AMI.</p>
* @public
*/
export interface FastLaunchSnapshotConfigurationResponse {
/**
* <p>The number of pre-provisioned snapshots requested to keep on hand for a Windows fast
* launch enabled AMI.</p>
* @public
*/
TargetResourceCount?: number | undefined;
}

/**
* @internal
*/
Expand Down
33 changes: 14 additions & 19 deletions clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,26 @@ import {
Byoasn,
FastLaunchLaunchTemplateSpecificationResponse,
FastLaunchResourceType,
FastLaunchSnapshotConfigurationResponse,
Filter,
FleetStateCode,
IdFormat,
InstanceTagNotificationAttribute,
} from "./models_3";

/**
* <p>Configuration settings for creating and managing pre-provisioned snapshots for a Windows
* fast launch enabled Windows AMI.</p>
* @public
*/
export interface FastLaunchSnapshotConfigurationResponse {
/**
* <p>The number of pre-provisioned snapshots requested to keep on hand for a Windows fast
* launch enabled AMI.</p>
* @public
*/
TargetResourceCount?: number | undefined;
}

/**
* @public
* @enum
Expand Down Expand Up @@ -12661,24 +12674,6 @@ export interface DescribePrincipalIdFormatRequest {
NextToken?: string | undefined;
}

/**
* <p>PrincipalIdFormat description</p>
* @public
*/
export interface PrincipalIdFormat {
/**
* <p>PrincipalIdFormatARN description</p>
* @public
*/
Arn?: string | undefined;

/**
* <p>PrincipalIdFormatStatuses description</p>
* @public
*/
Statuses?: IdFormat[] | undefined;
}

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 23d9c73

Please sign in to comment.