Skip to content

Commit 537aeca

Browse files
author
awstools
committed
feat(client-ec2): This release adds GroupId to the response for DeleteSecurityGroup.
1 parent 50cf29a commit 537aeca

15 files changed

+280
-218
lines changed

clients/client-ec2/src/commands/DeleteSecurityGroupCommand.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DeleteSecurityGroupRequest } from "../models/models_3";
9+
import { DeleteSecurityGroupRequest, DeleteSecurityGroupResult } from "../models/models_3";
1010
import { de_DeleteSecurityGroupCommand, se_DeleteSecurityGroupCommand } from "../protocols/Aws_ec2";
1111

1212
/**
@@ -25,7 +25,7 @@ export interface DeleteSecurityGroupCommandInput extends DeleteSecurityGroupRequ
2525
*
2626
* The output of {@link DeleteSecurityGroupCommand}.
2727
*/
28-
export interface DeleteSecurityGroupCommandOutput extends __MetadataBearer {}
28+
export interface DeleteSecurityGroupCommandOutput extends DeleteSecurityGroupResult, __MetadataBearer {}
2929

3030
/**
3131
* <p>Deletes a security group.</p>
@@ -45,7 +45,10 @@ export interface DeleteSecurityGroupCommandOutput extends __MetadataBearer {}
4545
* };
4646
* const command = new DeleteSecurityGroupCommand(input);
4747
* const response = await client.send(command);
48-
* // {};
48+
* // { // DeleteSecurityGroupResult
49+
* // Return: true || false,
50+
* // GroupId: "STRING_VALUE",
51+
* // };
4952
*
5053
* ```
5154
*
@@ -96,7 +99,7 @@ export class DeleteSecurityGroupCommand extends $Command
9699
protected declare static __types: {
97100
api: {
98101
input: DeleteSecurityGroupRequest;
99-
output: {};
102+
output: DeleteSecurityGroupResult;
100103
};
101104
sdk: {
102105
input: DeleteSecurityGroupCommandInput;

clients/client-ec2/src/commands/DescribeFleetInstancesCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeFleetInstancesRequest } from "../models/models_3";
10-
import { DescribeFleetInstancesResult } from "../models/models_4";
9+
import { DescribeFleetInstancesRequest, DescribeFleetInstancesResult } from "../models/models_4";
1110
import { de_DescribeFleetInstancesCommand, se_DescribeFleetInstancesCommand } from "../protocols/Aws_ec2";
1211

1312
/**

clients/client-ec2/src/commands/DescribeReservedInstancesCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeReservedInstancesRequest } from "../models/models_4";
10-
import { DescribeReservedInstancesResult } from "../models/models_5";
9+
import { DescribeReservedInstancesRequest, DescribeReservedInstancesResult } from "../models/models_5";
1110
import { de_DescribeReservedInstancesCommand, se_DescribeReservedInstancesCommand } from "../protocols/Aws_ec2";
1211

1312
/**

clients/client-ec2/src/commands/EnableAllowedImagesSettingsCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { EnableAllowedImagesSettingsRequest } from "../models/models_5";
10-
import { EnableAllowedImagesSettingsResult } from "../models/models_6";
9+
import { EnableAllowedImagesSettingsRequest, EnableAllowedImagesSettingsResult } from "../models/models_6";
1110
import { de_EnableAllowedImagesSettingsCommand, se_EnableAllowedImagesSettingsCommand } from "../protocols/Aws_ec2";
1211

1312
/**

clients/client-ec2/src/commands/ModifyInstanceEventWindowCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ModifyInstanceEventWindowRequest, ModifyInstanceEventWindowResult } from "../models/models_6";
9+
import { ModifyInstanceEventWindowRequest } from "../models/models_6";
10+
import { ModifyInstanceEventWindowResult } from "../models/models_7";
1011
import { de_ModifyInstanceEventWindowCommand, se_ModifyInstanceEventWindowCommand } from "../protocols/Aws_ec2";
1112

1213
/**

clients/client-ec2/src/commands/StartDeclarativePoliciesReportCommand.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ export interface StartDeclarativePoliciesReportCommandOutput
5656
* </li>
5757
* <li>
5858
* <p>An S3 bucket must be available before generating the report (you can create a
59-
* new one or use an existing one), and it must have an appropriate bucket policy.
60-
* For a sample S3 policy, see <i>Sample Amazon S3 policy</i> under
61-
* .</p>
59+
* new one or use an existing one), it must be in the same Region where the report
60+
* generation request is made, and it must have an appropriate bucket policy. For a
61+
* sample S3 policy, see <i>Sample Amazon S3 policy</i> under .</p>
6262
* </li>
6363
* <li>
6464
* <p>Trusted access must be enabled for the service for which the declarative

clients/client-ec2/src/commands/UnlockSnapshotCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { UnlockSnapshotRequest, UnlockSnapshotResult } from "../models/models_7";
9+
import { UnlockSnapshotRequest } from "../models/models_7";
10+
import { UnlockSnapshotResult } from "../models/models_8";
1011
import { de_UnlockSnapshotCommand, se_UnlockSnapshotCommand } from "../protocols/Aws_ec2";
1112

1213
/**

clients/client-ec2/src/models/models_3.ts

+18-45
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,23 @@ export interface DeleteSecurityGroupRequest {
16181618
DryRun?: boolean | undefined;
16191619
}
16201620

1621+
/**
1622+
* @public
1623+
*/
1624+
export interface DeleteSecurityGroupResult {
1625+
/**
1626+
* <p>Returns <code>true</code> if the request succeeds; otherwise, returns an error.</p>
1627+
* @public
1628+
*/
1629+
Return?: boolean | undefined;
1630+
1631+
/**
1632+
* <p>The ID of the deleted security group.</p>
1633+
* @public
1634+
*/
1635+
GroupId?: string | undefined;
1636+
}
1637+
16211638
/**
16221639
* @public
16231640
*/
@@ -3133,6 +3150,7 @@ export interface DescribeAccountAttributesResult {
31333150
* Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.</p>
31343151
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only
31353152
* results that match all of the specified filters.</p>
3153+
* <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>
31363154
* @public
31373155
*/
31383156
export interface Filter {
@@ -7868,51 +7886,6 @@ export interface DescribeFleetHistoryResult {
78687886
StartTime?: Date | undefined;
78697887
}
78707888

7871-
/**
7872-
* @public
7873-
*/
7874-
export interface DescribeFleetInstancesRequest {
7875-
/**
7876-
* <p>Checks whether you have the required permissions for the action, without actually making the request,
7877-
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7878-
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7879-
* @public
7880-
*/
7881-
DryRun?: boolean | undefined;
7882-
7883-
/**
7884-
* <p>The maximum number of items to return for this request.
7885-
* To get the next page of items, make another request with the token returned in the output.
7886-
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
7887-
* @public
7888-
*/
7889-
MaxResults?: number | undefined;
7890-
7891-
/**
7892-
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
7893-
* @public
7894-
*/
7895-
NextToken?: string | undefined;
7896-
7897-
/**
7898-
* <p>The ID of the EC2 Fleet.</p>
7899-
* @public
7900-
*/
7901-
FleetId: string | undefined;
7902-
7903-
/**
7904-
* <p>The filters.</p>
7905-
* <ul>
7906-
* <li>
7907-
* <p>
7908-
* <code>instance-type</code> - The instance type.</p>
7909-
* </li>
7910-
* </ul>
7911-
* @public
7912-
*/
7913-
Filters?: Filter[] | undefined;
7914-
}
7915-
79167889
/**
79177890
* @internal
79187891
*/

clients/client-ec2/src/models/models_4.ts

+45-102
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,51 @@ import {
8383

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

86+
/**
87+
* @public
88+
*/
89+
export interface DescribeFleetInstancesRequest {
90+
/**
91+
* <p>Checks whether you have the required permissions for the action, without actually making the request,
92+
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
93+
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
94+
* @public
95+
*/
96+
DryRun?: boolean | undefined;
97+
98+
/**
99+
* <p>The maximum number of items to return for this request.
100+
* To get the next page of items, make another request with the token returned in the output.
101+
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
102+
* @public
103+
*/
104+
MaxResults?: number | undefined;
105+
106+
/**
107+
* <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
108+
* @public
109+
*/
110+
NextToken?: string | undefined;
111+
112+
/**
113+
* <p>The ID of the EC2 Fleet.</p>
114+
* @public
115+
*/
116+
FleetId: string | undefined;
117+
118+
/**
119+
* <p>The filters.</p>
120+
* <ul>
121+
* <li>
122+
* <p>
123+
* <code>instance-type</code> - The instance type.</p>
124+
* </li>
125+
* </ul>
126+
* @public
127+
*/
128+
Filters?: Filter[] | undefined;
129+
}
130+
86131
/**
87132
* @public
88133
*/
@@ -12394,108 +12439,6 @@ export const OfferingTypeValues = {
1239412439
*/
1239512440
export type OfferingTypeValues = (typeof OfferingTypeValues)[keyof typeof OfferingTypeValues];
1239612441

12397-
/**
12398-
* <p>Contains the parameters for DescribeReservedInstances.</p>
12399-
* @public
12400-
*/
12401-
export interface DescribeReservedInstancesRequest {
12402-
/**
12403-
* <p>Describes whether the Reserved Instance is Standard or Convertible.</p>
12404-
* @public
12405-
*/
12406-
OfferingClass?: OfferingClassType | undefined;
12407-
12408-
/**
12409-
* <p>One or more Reserved Instance IDs.</p>
12410-
* <p>Default: Describes all your Reserved Instances, or only those otherwise specified.</p>
12411-
* @public
12412-
*/
12413-
ReservedInstancesIds?: string[] | undefined;
12414-
12415-
/**
12416-
* <p>Checks whether you have the required permissions for the action, without actually making the request,
12417-
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
12418-
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
12419-
* @public
12420-
*/
12421-
DryRun?: boolean | undefined;
12422-
12423-
/**
12424-
* <p>One or more filters.</p>
12425-
* <ul>
12426-
* <li>
12427-
* <p>
12428-
* <code>availability-zone</code> - The Availability Zone where the Reserved Instance can be used.</p>
12429-
* </li>
12430-
* <li>
12431-
* <p>
12432-
* <code>duration</code> - The duration of the Reserved Instance (one year or three years), in seconds (<code>31536000</code> | <code>94608000</code>).</p>
12433-
* </li>
12434-
* <li>
12435-
* <p>
12436-
* <code>end</code> - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).</p>
12437-
* </li>
12438-
* <li>
12439-
* <p>
12440-
* <code>fixed-price</code> - The purchase price of the Reserved Instance (for example, 9800.0).</p>
12441-
* </li>
12442-
* <li>
12443-
* <p>
12444-
* <code>instance-type</code> - The instance type that is covered by the reservation.</p>
12445-
* </li>
12446-
* <li>
12447-
* <p>
12448-
* <code>scope</code> - The scope of the Reserved Instance (<code>Region</code> or <code>Availability Zone</code>).</p>
12449-
* </li>
12450-
* <li>
12451-
* <p>
12452-
* <code>product-description</code> - The Reserved Instance product platform description
12453-
* (<code>Linux/UNIX</code> | <code>Linux with SQL Server Standard</code> |
12454-
* <code>Linux with SQL Server Web</code> | <code>Linux with SQL Server Enterprise</code> |
12455-
* <code>SUSE Linux</code> |
12456-
* <code>Red Hat Enterprise Linux</code> | <code>Red Hat Enterprise Linux with HA</code> |
12457-
* <code>Windows</code> | <code>Windows with SQL Server Standard</code> |
12458-
* <code>Windows with SQL Server Web</code> | <code>Windows with SQL Server Enterprise</code>).</p>
12459-
* </li>
12460-
* <li>
12461-
* <p>
12462-
* <code>reserved-instances-id</code> - The ID of the Reserved Instance.</p>
12463-
* </li>
12464-
* <li>
12465-
* <p>
12466-
* <code>start</code> - The time at which the Reserved Instance purchase request was placed (for example, 2014-08-07T11:54:42.000Z).</p>
12467-
* </li>
12468-
* <li>
12469-
* <p>
12470-
* <code>state</code> - The state of the Reserved Instance (<code>payment-pending</code> | <code>active</code> | <code>payment-failed</code> | <code>retired</code>).</p>
12471-
* </li>
12472-
* <li>
12473-
* <p>
12474-
* <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.
12475-
* 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>
12476-
* </li>
12477-
* <li>
12478-
* <p>
12479-
* <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>
12480-
* </li>
12481-
* <li>
12482-
* <p>
12483-
* <code>usage-price</code> - The usage price of the Reserved Instance, per hour (for example, 0.84).</p>
12484-
* </li>
12485-
* </ul>
12486-
* @public
12487-
*/
12488-
Filters?: Filter[] | undefined;
12489-
12490-
/**
12491-
* <p>The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API
12492-
* version, you only have access to the <code>Medium Utilization</code> Reserved Instance
12493-
* offering type.</p>
12494-
* @public
12495-
*/
12496-
OfferingType?: OfferingTypeValues | undefined;
12497-
}
12498-
1249912442
/**
1250012443
* @internal
1250112444
*/

0 commit comments

Comments
 (0)