Skip to content

Commit

Permalink
feat(client-ec2): This release adds GroupId to the response for Delet…
Browse files Browse the repository at this point in the history
…eSecurityGroup.
  • Loading branch information
awstools committed Dec 13, 2024
1 parent 50cf29a commit 537aeca
Show file tree
Hide file tree
Showing 15 changed files with 280 additions and 218 deletions.
11 changes: 7 additions & 4 deletions clients/client-ec2/src/commands/DeleteSecurityGroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteSecurityGroupRequest } from "../models/models_3";
import { DeleteSecurityGroupRequest, DeleteSecurityGroupResult } from "../models/models_3";
import { de_DeleteSecurityGroupCommand, se_DeleteSecurityGroupCommand } from "../protocols/Aws_ec2";

/**
Expand All @@ -25,7 +25,7 @@ export interface DeleteSecurityGroupCommandInput extends DeleteSecurityGroupRequ
*
* The output of {@link DeleteSecurityGroupCommand}.
*/
export interface DeleteSecurityGroupCommandOutput extends __MetadataBearer {}
export interface DeleteSecurityGroupCommandOutput extends DeleteSecurityGroupResult, __MetadataBearer {}

/**
* <p>Deletes a security group.</p>
Expand All @@ -45,7 +45,10 @@ export interface DeleteSecurityGroupCommandOutput extends __MetadataBearer {}
* };
* const command = new DeleteSecurityGroupCommand(input);
* const response = await client.send(command);
* // {};
* // { // DeleteSecurityGroupResult
* // Return: true || false,
* // GroupId: "STRING_VALUE",
* // };
*
* ```
*
Expand Down Expand Up @@ -96,7 +99,7 @@ export class DeleteSecurityGroupCommand extends $Command
protected declare static __types: {
api: {
input: DeleteSecurityGroupRequest;
output: {};
output: DeleteSecurityGroupResult;
};
sdk: {
input: DeleteSecurityGroupCommandInput;
Expand Down
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 { DescribeFleetInstancesRequest } from "../models/models_3";
import { DescribeFleetInstancesResult } from "../models/models_4";
import { DescribeFleetInstancesRequest, DescribeFleetInstancesResult } from "../models/models_4";
import { de_DescribeFleetInstancesCommand, se_DescribeFleetInstancesCommand } from "../protocols/Aws_ec2";

/**
Expand Down
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 { DescribeReservedInstancesRequest } from "../models/models_4";
import { DescribeReservedInstancesResult } from "../models/models_5";
import { DescribeReservedInstancesRequest, DescribeReservedInstancesResult } from "../models/models_5";
import { de_DescribeReservedInstancesCommand, se_DescribeReservedInstancesCommand } from "../protocols/Aws_ec2";

/**
Expand Down
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 { EnableAllowedImagesSettingsRequest } from "../models/models_5";
import { EnableAllowedImagesSettingsResult } from "../models/models_6";
import { EnableAllowedImagesSettingsRequest, EnableAllowedImagesSettingsResult } from "../models/models_6";
import { de_EnableAllowedImagesSettingsCommand, se_EnableAllowedImagesSettingsCommand } from "../protocols/Aws_ec2";

/**
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 { ModifyInstanceEventWindowRequest, ModifyInstanceEventWindowResult } from "../models/models_6";
import { ModifyInstanceEventWindowRequest } from "../models/models_6";
import { ModifyInstanceEventWindowResult } from "../models/models_7";
import { de_ModifyInstanceEventWindowCommand, se_ModifyInstanceEventWindowCommand } from "../protocols/Aws_ec2";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export interface StartDeclarativePoliciesReportCommandOutput
* </li>
* <li>
* <p>An S3 bucket must be available before generating the report (you can create a
* new one or use an existing one), and it must have an appropriate bucket policy.
* For a sample S3 policy, see <i>Sample Amazon S3 policy</i> under
* .</p>
* new one or use an existing one), it must be in the same Region where the report
* generation request is made, and it must have an appropriate bucket policy. For a
* sample S3 policy, see <i>Sample Amazon S3 policy</i> under .</p>
* </li>
* <li>
* <p>Trusted access must be enabled for the service for which the declarative
Expand Down
3 changes: 2 additions & 1 deletion clients/client-ec2/src/commands/UnlockSnapshotCommand.ts
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 { UnlockSnapshotRequest, UnlockSnapshotResult } from "../models/models_7";
import { UnlockSnapshotRequest } from "../models/models_7";
import { UnlockSnapshotResult } from "../models/models_8";
import { de_UnlockSnapshotCommand, se_UnlockSnapshotCommand } from "../protocols/Aws_ec2";

/**
Expand Down
63 changes: 18 additions & 45 deletions clients/client-ec2/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,23 @@ export interface DeleteSecurityGroupRequest {
DryRun?: boolean | undefined;
}

/**
* @public
*/
export interface DeleteSecurityGroupResult {
/**
* <p>Returns <code>true</code> if the request succeeds; otherwise, returns an error.</p>
* @public
*/
Return?: boolean | undefined;

/**
* <p>The ID of the deleted security group.</p>
* @public
*/
GroupId?: string | undefined;
}

/**
* @public
*/
Expand Down Expand Up @@ -3133,6 +3150,7 @@ export interface DescribeAccountAttributesResult {
* Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.</p>
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only
* results that match all of the specified filters.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Filtering.html#Filtering_Resources_CLI">List and filter using the CLI and API</a> in the <i>Amazon EC2 User Guide</i>.</p>
* @public
*/
export interface Filter {
Expand Down Expand Up @@ -7868,51 +7886,6 @@ export interface DescribeFleetHistoryResult {
StartTime?: Date | undefined;
}

/**
* @public
*/
export interface DescribeFleetInstancesRequest {
/**
* <p>Checks whether you have the required permissions for the action, without actually making the request,
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
* @public
*/
DryRun?: boolean | undefined;

/**
* <p>The maximum number of items to return for this request.
* To get the next page of items, make another request with the token returned in the output.
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
* @public
*/
MaxResults?: number | undefined;

/**
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
* @public
*/
NextToken?: string | undefined;

/**
* <p>The ID of the EC2 Fleet.</p>
* @public
*/
FleetId: string | undefined;

/**
* <p>The filters.</p>
* <ul>
* <li>
* <p>
* <code>instance-type</code> - The instance type.</p>
* </li>
* </ul>
* @public
*/
Filters?: Filter[] | undefined;
}

/**
* @internal
*/
Expand Down
147 changes: 45 additions & 102 deletions clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,51 @@ import {

import { Byoasn, Filter, FleetStateCode, IdFormat, InstanceTagNotificationAttribute } from "./models_3";

/**
* @public
*/
export interface DescribeFleetInstancesRequest {
/**
* <p>Checks whether you have the required permissions for the action, without actually making the request,
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
* @public
*/
DryRun?: boolean | undefined;

/**
* <p>The maximum number of items to return for this request.
* To get the next page of items, make another request with the token returned in the output.
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
* @public
*/
MaxResults?: number | undefined;

/**
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
* @public
*/
NextToken?: string | undefined;

/**
* <p>The ID of the EC2 Fleet.</p>
* @public
*/
FleetId: string | undefined;

/**
* <p>The filters.</p>
* <ul>
* <li>
* <p>
* <code>instance-type</code> - The instance type.</p>
* </li>
* </ul>
* @public
*/
Filters?: Filter[] | undefined;
}

/**
* @public
*/
Expand Down Expand Up @@ -12394,108 +12439,6 @@ export const OfferingTypeValues = {
*/
export type OfferingTypeValues = (typeof OfferingTypeValues)[keyof typeof OfferingTypeValues];

/**
* <p>Contains the parameters for DescribeReservedInstances.</p>
* @public
*/
export interface DescribeReservedInstancesRequest {
/**
* <p>Describes whether the Reserved Instance is Standard or Convertible.</p>
* @public
*/
OfferingClass?: OfferingClassType | undefined;

/**
* <p>One or more Reserved Instance IDs.</p>
* <p>Default: Describes all your Reserved Instances, or only those otherwise specified.</p>
* @public
*/
ReservedInstancesIds?: string[] | undefined;

/**
* <p>Checks whether you have the required permissions for the action, without actually making the request,
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
* @public
*/
DryRun?: boolean | undefined;

/**
* <p>One or more filters.</p>
* <ul>
* <li>
* <p>
* <code>availability-zone</code> - The Availability Zone where the Reserved Instance can be used.</p>
* </li>
* <li>
* <p>
* <code>duration</code> - The duration of the Reserved Instance (one year or three years), in seconds (<code>31536000</code> | <code>94608000</code>).</p>
* </li>
* <li>
* <p>
* <code>end</code> - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).</p>
* </li>
* <li>
* <p>
* <code>fixed-price</code> - The purchase price of the Reserved Instance (for example, 9800.0).</p>
* </li>
* <li>
* <p>
* <code>instance-type</code> - The instance type that is covered by the reservation.</p>
* </li>
* <li>
* <p>
* <code>scope</code> - The scope of the Reserved Instance (<code>Region</code> or <code>Availability Zone</code>).</p>
* </li>
* <li>
* <p>
* <code>product-description</code> - The Reserved Instance product platform description
* (<code>Linux/UNIX</code> | <code>Linux with SQL Server Standard</code> |
* <code>Linux with SQL Server Web</code> | <code>Linux with SQL Server Enterprise</code> |
* <code>SUSE Linux</code> |
* <code>Red Hat Enterprise Linux</code> | <code>Red Hat Enterprise Linux with HA</code> |
* <code>Windows</code> | <code>Windows with SQL Server Standard</code> |
* <code>Windows with SQL Server Web</code> | <code>Windows with SQL Server Enterprise</code>).</p>
* </li>
* <li>
* <p>
* <code>reserved-instances-id</code> - The ID of the Reserved Instance.</p>
* </li>
* <li>
* <p>
* <code>start</code> - The time at which the Reserved Instance purchase request was placed (for example, 2014-08-07T11:54:42.000Z).</p>
* </li>
* <li>
* <p>
* <code>state</code> - The state of the Reserved Instance (<code>payment-pending</code> | <code>active</code> | <code>payment-failed</code> | <code>retired</code>).</p>
* </li>
* <li>
* <p>
* <code>tag:<key></code> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.
* For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>
* </li>
* <li>
* <p>
* <code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p>
* </li>
* <li>
* <p>
* <code>usage-price</code> - The usage price of the Reserved Instance, per hour (for example, 0.84).</p>
* </li>
* </ul>
* @public
*/
Filters?: Filter[] | undefined;

/**
* <p>The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API
* version, you only have access to the <code>Medium Utilization</code> Reserved Instance
* offering type.</p>
* @public
*/
OfferingType?: OfferingTypeValues | undefined;
}

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 537aeca

Please sign in to comment.