Skip to content

Commit

Permalink
fix(client-ec2): update ec2 model (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored Jan 29, 2021
1 parent ebd7b2b commit 599725a
Show file tree
Hide file tree
Showing 60 changed files with 3,120 additions and 3,299 deletions.
207 changes: 46 additions & 161 deletions clients/client-ec2/EC2.ts

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions clients/client-ec2/EC2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,6 @@ import {
DescribeAccountAttributesCommandInput,
DescribeAccountAttributesCommandOutput,
} from "./commands/DescribeAccountAttributesCommand";
import {
DescribeAddressesAttributeCommandInput,
DescribeAddressesAttributeCommandOutput,
} from "./commands/DescribeAddressesAttributeCommand";
import { DescribeAddressesCommandInput, DescribeAddressesCommandOutput } from "./commands/DescribeAddressesCommand";
import {
DescribeAggregateIdFormatCommandInput,
Expand Down Expand Up @@ -1117,10 +1113,6 @@ import { ImportInstanceCommandInput, ImportInstanceCommandOutput } from "./comma
import { ImportKeyPairCommandInput, ImportKeyPairCommandOutput } from "./commands/ImportKeyPairCommand";
import { ImportSnapshotCommandInput, ImportSnapshotCommandOutput } from "./commands/ImportSnapshotCommand";
import { ImportVolumeCommandInput, ImportVolumeCommandOutput } from "./commands/ImportVolumeCommand";
import {
ModifyAddressAttributeCommandInput,
ModifyAddressAttributeCommandOutput,
} from "./commands/ModifyAddressAttributeCommand";
import {
ModifyAvailabilityZoneGroupCommandInput,
ModifyAvailabilityZoneGroupCommandOutput,
Expand Down Expand Up @@ -1353,10 +1345,6 @@ import {
RequestSpotInstancesCommandInput,
RequestSpotInstancesCommandOutput,
} from "./commands/RequestSpotInstancesCommand";
import {
ResetAddressAttributeCommandInput,
ResetAddressAttributeCommandOutput,
} from "./commands/ResetAddressAttributeCommand";
import {
ResetEbsDefaultKmsKeyIdCommandInput,
ResetEbsDefaultKmsKeyIdCommandOutput,
Expand Down Expand Up @@ -1669,7 +1657,6 @@ export type ServiceInputTypes =
| DeregisterTransitGatewayMulticastGroupMembersCommandInput
| DeregisterTransitGatewayMulticastGroupSourcesCommandInput
| DescribeAccountAttributesCommandInput
| DescribeAddressesAttributeCommandInput
| DescribeAddressesCommandInput
| DescribeAggregateIdFormatCommandInput
| DescribeAvailabilityZonesCommandInput
Expand Down Expand Up @@ -1846,7 +1833,6 @@ export type ServiceInputTypes =
| ImportKeyPairCommandInput
| ImportSnapshotCommandInput
| ImportVolumeCommandInput
| ModifyAddressAttributeCommandInput
| ModifyAvailabilityZoneGroupCommandInput
| ModifyCapacityReservationCommandInput
| ModifyClientVpnEndpointCommandInput
Expand Down Expand Up @@ -1917,7 +1903,6 @@ export type ServiceInputTypes =
| ReportInstanceStatusCommandInput
| RequestSpotFleetCommandInput
| RequestSpotInstancesCommandInput
| ResetAddressAttributeCommandInput
| ResetEbsDefaultKmsKeyIdCommandInput
| ResetFpgaImageAttributeCommandInput
| ResetImageAttributeCommandInput
Expand Down Expand Up @@ -2111,7 +2096,6 @@ export type ServiceOutputTypes =
| DeregisterTransitGatewayMulticastGroupMembersCommandOutput
| DeregisterTransitGatewayMulticastGroupSourcesCommandOutput
| DescribeAccountAttributesCommandOutput
| DescribeAddressesAttributeCommandOutput
| DescribeAddressesCommandOutput
| DescribeAggregateIdFormatCommandOutput
| DescribeAvailabilityZonesCommandOutput
Expand Down Expand Up @@ -2288,7 +2272,6 @@ export type ServiceOutputTypes =
| ImportKeyPairCommandOutput
| ImportSnapshotCommandOutput
| ImportVolumeCommandOutput
| ModifyAddressAttributeCommandOutput
| ModifyAvailabilityZoneGroupCommandOutput
| ModifyCapacityReservationCommandOutput
| ModifyClientVpnEndpointCommandOutput
Expand Down Expand Up @@ -2359,7 +2342,6 @@ export type ServiceOutputTypes =
| ReportInstanceStatusCommandOutput
| RequestSpotFleetCommandOutput
| RequestSpotInstancesCommandOutput
| ResetAddressAttributeCommandOutput
| ResetEbsDefaultKmsKeyIdCommandOutput
| ResetFpgaImageAttributeCommandOutput
| ResetImageAttributeCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type CancelReservedInstancesListingCommandOutput = CancelReservedInstance
* <p>Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html">Reserved Instance Marketplace</a>
* in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class CancelReservedInstancesListingCommand extends $Command<
CancelReservedInstancesListingCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type CreateCapacityReservationCommandOutput = CreateCapacityReservationRe
* <p>Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This
* gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage.
* By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it.
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html">Capacity Reservations</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html">Capacity Reservations</a> in the <i>Amazon EC2 User Guide</i>.</p>
*
* <p>Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to
* fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try
Expand All @@ -37,7 +37,7 @@ export type CreateCapacityReservationCommandOutput = CreateCapacityReservationRe
* limit for the selected instance type. If your request fails due to limit constraints,
* increase your On-Demand Instance limit for the required instance type and try again. For
* more information about increasing your instance limits, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html">Amazon EC2 Service
* Limits</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* Quotas</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class CreateCapacityReservationCommand extends $Command<
CreateCapacityReservationCommandInput,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/commands/CreateFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type CreateFleetCommandOutput = CreateFleetResult & __MetadataBearer;
* <p>Launches an EC2 Fleet.</p>
* <p>You can create a single EC2 Fleet that includes multiple launch specifications that vary by
* instance type, AMI, Availability Zone, or subnet.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html">Launching an EC2 Fleet</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html">Launching an EC2 Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class CreateFleetCommand extends $Command<
CreateFleetCommandInput,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/commands/CreatePlacementGroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type CreatePlacementGroupCommandOutput = CreatePlacementGroupResult & __M
* partitions, where instances in one partition do not share the same hardware with
* instances in another partition.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement groups</a> in the
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* <i>Amazon EC2 User Guide</i>.</p>
*/
export class CreatePlacementGroupCommand extends $Command<
CreatePlacementGroupCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type CreateReservedInstancesListingCommandOutput = CreateReservedInstance
* view the details of your Standard Reserved Instance listing, you can use the
* <a>DescribeReservedInstancesListings</a> operation.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html">Reserved Instance Marketplace</a> in the
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* <i>Amazon EC2 User Guide</i>.</p>
*/
export class CreateReservedInstancesListingCommand extends $Command<
CreateReservedInstancesListingCommandInput,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/commands/DeleteFleetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type DeleteFleetsCommandOutput = DeleteFleetsResult & __MetadataBearer;
* </ul>
*
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#delete-fleet">Deleting an EC2
* Fleet</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DeleteFleetsCommand extends $Command<
DeleteFleetsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DeleteNetworkInsightsAnalysisRequest } from "../models/models_1";
import { DeleteNetworkInsightsAnalysisResult } from "../models/models_2";
import { DeleteNetworkInsightsAnalysisRequest, DeleteNetworkInsightsAnalysisResult } from "../models/models_1";
import {
deserializeAws_ec2DeleteNetworkInsightsAnalysisCommand,
serializeAws_ec2DeleteNetworkInsightsAnalysisCommand,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { DeleteNetworkInsightsPathRequest, DeleteNetworkInsightsPathResult } from "../models/models_2";
import { DeleteNetworkInsightsPathRequest, DeleteNetworkInsightsPathResult } from "../models/models_1";
import {
deserializeAws_ec2DeleteNetworkInsightsPathCommand,
serializeAws_ec2DeleteNetworkInsightsPathCommand,
Expand Down
3 changes: 1 addition & 2 deletions clients/client-ec2/commands/DeletePlacementGroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export type DeletePlacementGroupCommandOutput = __MetadataBearer;
/**
* <p>Deletes the specified placement group. You must terminate all instances in the
* placement group before you can delete the placement group. For more information, see
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement groups</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement groups</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DeletePlacementGroupCommand extends $Command<
DeletePlacementGroupCommandInput,
Expand Down
80 changes: 0 additions & 80 deletions clients/client-ec2/commands/DescribeAddressesAttributeCommand.ts

This file was deleted.

1 change: 1 addition & 0 deletions clients/client-ec2/commands/DescribeFleetHistoryCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type DescribeFleetHistoryCommandOutput = DescribeFleetHistoryResult & __M
* <p>EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures
* that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events
* are available for 48 hours.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html#monitor-ec2-fleet">Monitoring your EC2 Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DescribeFleetHistoryCommand extends $Command<
DescribeFleetHistoryCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type DescribeFleetInstancesCommandOutput = DescribeFleetInstancesResult &

/**
* <p>Describes the running instances for the specified EC2 Fleet.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html#monitor-ec2-fleet">Monitoring your EC2 Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DescribeFleetInstancesCommand extends $Command<
DescribeFleetInstancesCommandInput,
Expand Down
1 change: 1 addition & 0 deletions clients/client-ec2/commands/DescribeFleetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type DescribeFleetsCommandOutput = DescribeFleetsResult & __MetadataBeare

/**
* <p>Describes the specified EC2 Fleets or all of your EC2 Fleets.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html#monitor-ec2-fleet">Monitoring your EC2 Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DescribeFleetsCommand extends $Command<
DescribeFleetsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export type DescribeHostReservationOfferingsCommandOutput = DescribeHostReservat
* offerings that might not match the instance family and Region of your Dedicated Hosts.
* When purchasing an offering, ensure that the instance family and Region of the offering
* matches that of the Dedicated Hosts with which it is to be associated. For more
* information about supported instance types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html">Dedicated Hosts
* Overview</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>. </p>
* information about supported instance types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html">Dedicated Hosts</a>
* in the <i>Amazon EC2 User Guide</i>. </p>
*/
export class DescribeHostReservationOfferingsCommand extends $Command<
DescribeHostReservationOfferingsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export type DescribeInstanceCreditSpecificationsCommandOutput = DescribeInstance
* IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If
* you specify only instance IDs in an unaffected zone, the call works normally.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html">Burstable
* performance instances</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
* performance instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DescribeInstanceCreditSpecificationsCommand extends $Command<
DescribeInstanceCreditSpecificationsCommandInput,
Expand Down
9 changes: 3 additions & 6 deletions clients/client-ec2/commands/DescribeInstanceStatusCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,21 @@ export type DescribeInstanceStatusCommandOutput = DescribeInstanceStatusResult &
* <b>Status checks</b> - Amazon EC2 performs status
* checks on running EC2 instances to identify hardware and software issues. For
* more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html">Status checks for your instances</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html">Troubleshooting
* instances with failed status checks</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.</p>
* instances with failed status checks</a> in the <i>Amazon EC2 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Scheduled events</b> - Amazon EC2 can schedule
* events (such as reboot, stop, or terminate) for your instances related to
* hardware issues, software updates, or system maintenance. For more information,
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html">Scheduled events for your instances</a> in the <i>Amazon Elastic
* Compute Cloud User Guide</i>.</p>
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html">Scheduled events for your instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Instance state</b> - You can manage your instances
* from the moment you launch them through their termination. For more information,
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html">Instance
* lifecycle</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
* lifecycle</a> in the <i>Amazon EC2 User Guide</i>.</p>
* </li>
* </ul>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type DescribePlacementGroupsCommandOutput = DescribePlacementGroupsResult
/**
* <p>Describes the specified placement groups or all of your placement groups. For more
* information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement groups</a> in the
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* <i>Amazon EC2 User Guide</i>.</p>
*/
export class DescribePlacementGroupsCommand extends $Command<
DescribePlacementGroupsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type DescribeReservedInstancesCommandOutput = DescribeReservedInstancesRe
/**
* <p>Describes one or more of the Reserved Instances that you purchased.</p>
* <p>For more information about Reserved Instances, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html">Reserved
* Instances</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
* Instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
*/
export class DescribeReservedInstancesCommand extends $Command<
DescribeReservedInstancesCommandInput,
Expand Down
Loading

0 comments on commit 599725a

Please sign in to comment.