Skip to content

Commit

Permalink
feat(client-ec2): With this release customers can turn host maintenan…
Browse files Browse the repository at this point in the history
…ce on or off when allocating or modifying a supported dedicated host. Host maintenance is turned on by default for supported hosts.
  • Loading branch information
awstools committed Feb 14, 2023
1 parent 7ff83c4 commit 62c8b91
Show file tree
Hide file tree
Showing 12 changed files with 541 additions and 443 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "
import {
DeleteTrafficMirrorSessionRequest,
DeleteTrafficMirrorSessionRequestFilterSensitiveLog,
} from "../models/models_2";
import {
DeleteTrafficMirrorSessionResult,
DeleteTrafficMirrorSessionResultFilterSensitiveLog,
} from "../models/models_2";
} from "../models/models_3";
import {
deserializeAws_ec2DeleteTrafficMirrorSessionCommand,
serializeAws_ec2DeleteTrafficMirrorSessionCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ import {
} from "@aws-sdk/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { UnassignIpv6AddressesRequest, UnassignIpv6AddressesRequestFilterSensitiveLog } from "../models/models_6";
import { UnassignIpv6AddressesResult, UnassignIpv6AddressesResultFilterSensitiveLog } from "../models/models_7";
import {
UnassignIpv6AddressesRequest,
UnassignIpv6AddressesRequestFilterSensitiveLog,
UnassignIpv6AddressesResult,
UnassignIpv6AddressesResultFilterSensitiveLog,
} from "../models/models_7";
import {
deserializeAws_ec2UnassignIpv6AddressesCommand,
serializeAws_ec2UnassignIpv6AddressesCommand,
Expand Down
19 changes: 14 additions & 5 deletions clients/client-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2264,6 +2264,11 @@ export enum AutoPlacement {
on = "on",
}

export enum HostMaintenance {
off = "off",
on = "on",
}

export enum HostRecovery {
off = "off",
on = "on",
Expand Down Expand Up @@ -2335,6 +2340,15 @@ export interface AllocateHostsRequest {
* the Dedicated Host.</p>
*/
OutpostArn?: string;

/**
* <p>Indicates whether to enable or disable host maintenance for the Dedicated Host. For
* more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html"> Host
* maintenance</a> in the <i>Amazon EC2 User Guide</i>.</p>
* <p>Default: <code>on</code>
* </p>
*/
HostMaintenance?: HostMaintenance | string;
}

/**
Expand Down Expand Up @@ -7347,11 +7361,6 @@ export interface ConnectionLogOptions {
CloudwatchLogStream?: string;
}

export enum SelfServicePortal {
disabled = "disabled",
enabled = "enabled",
}

/**
* @internal
*/
Expand Down
49 changes: 5 additions & 44 deletions clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import {
Protocol,
ReservedInstancesListing,
ResourceType,
RouteTableAssociationState,
SelfServicePortal,
SubnetIpv6CidrBlockAssociation,
Tag,
TagSpecification,
Expand All @@ -39,6 +37,11 @@ import {
WeekDay,
} from "./models_0";

export enum SelfServicePortal {
disabled = "disabled",
enabled = "enabled",
}

export enum TransportProtocol {
tcp = "tcp",
udp = "udp",
Expand Down Expand Up @@ -8812,41 +8815,6 @@ export interface CreateRouteTableRequest {
TagSpecifications?: TagSpecification[];
}

/**
* <p>Describes an association between a route table and a subnet or gateway.</p>
*/
export interface RouteTableAssociation {
/**
* <p>Indicates whether this is the main route table.</p>
*/
Main?: boolean;

/**
* <p>The ID of the association.</p>
*/
RouteTableAssociationId?: string;

/**
* <p>The ID of the route table.</p>
*/
RouteTableId?: string;

/**
* <p>The ID of the subnet. A subnet ID is not returned for an implicit association.</p>
*/
SubnetId?: string;

/**
* <p>The ID of the internet gateway or virtual private gateway.</p>
*/
GatewayId?: string;

/**
* <p>The state of the association.</p>
*/
AssociationState?: RouteTableAssociationState;
}

/**
* @internal
*/
Expand Down Expand Up @@ -10543,10 +10511,3 @@ export const CreateRouteResultFilterSensitiveLog = (obj: CreateRouteResult): any
export const CreateRouteTableRequestFilterSensitiveLog = (obj: CreateRouteTableRequest): any => ({
...obj,
});

/**
* @internal
*/
export const RouteTableAssociationFilterSensitiveLog = (obj: RouteTableAssociation): any => ({
...obj,
});
56 changes: 42 additions & 14 deletions clients/client-ec2/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
DynamicRoutingValue,
InstanceEventWindowState,
Ipv6SupportValue,
RouteTableAssociationState,
Tag,
TagSpecification,
TransitGatewayAttachmentResourceType,
Expand Down Expand Up @@ -38,13 +39,47 @@ import {
LocalGatewayRouteTableVirtualInterfaceGroupAssociation,
LocalGatewayRouteTableVpcAssociation,
ManagedPrefixList,
RouteTableAssociation,
Subnet,
Tenancy,
VolumeType,
Vpc,
} from "./models_1";

/**
* <p>Describes an association between a route table and a subnet or gateway.</p>
*/
export interface RouteTableAssociation {
/**
* <p>Indicates whether this is the main route table.</p>
*/
Main?: boolean;

/**
* <p>The ID of the association.</p>
*/
RouteTableAssociationId?: string;

/**
* <p>The ID of the route table.</p>
*/
RouteTableId?: string;

/**
* <p>The ID of the subnet. A subnet ID is not returned for an implicit association.</p>
*/
SubnetId?: string;

/**
* <p>The ID of the internet gateway or virtual private gateway.</p>
*/
GatewayId?: string;

/**
* <p>The state of the association.</p>
*/
AssociationState?: RouteTableAssociationState;
}

/**
* <p>Describes a virtual private gateway propagating route.</p>
*/
Expand Down Expand Up @@ -6424,12 +6459,12 @@ export interface DeleteTrafficMirrorSessionRequest {
DryRun?: boolean;
}

export interface DeleteTrafficMirrorSessionResult {
/**
* <p>The ID of the deleted Traffic Mirror session.</p>
*/
TrafficMirrorSessionId?: string;
}
/**
* @internal
*/
export const RouteTableAssociationFilterSensitiveLog = (obj: RouteTableAssociation): any => ({
...obj,
});

/**
* @internal
Expand Down Expand Up @@ -8277,10 +8312,3 @@ export const DeleteTrafficMirrorFilterRuleResultFilterSensitiveLog = (
export const DeleteTrafficMirrorSessionRequestFilterSensitiveLog = (obj: DeleteTrafficMirrorSessionRequest): any => ({
...obj,
});

/**
* @internal
*/
export const DeleteTrafficMirrorSessionResultFilterSensitiveLog = (obj: DeleteTrafficMirrorSessionResult): any => ({
...obj,
});
Loading

0 comments on commit 62c8b91

Please sign in to comment.