From 537aeca538d1256bb1583fc2a7574b7729fed159 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 13 Dec 2024 19:26:10 +0000 Subject: [PATCH] feat(client-ec2): This release adds GroupId to the response for DeleteSecurityGroup. --- .../commands/DeleteSecurityGroupCommand.ts | 11 +- .../commands/DescribeFleetInstancesCommand.ts | 3 +- .../DescribeReservedInstancesCommand.ts | 3 +- .../EnableAllowedImagesSettingsCommand.ts | 3 +- .../ModifyInstanceEventWindowCommand.ts | 3 +- .../StartDeclarativePoliciesReportCommand.ts | 6 +- .../src/commands/UnlockSnapshotCommand.ts | 3 +- clients/client-ec2/src/models/models_3.ts | 63 +++----- clients/client-ec2/src/models/models_4.ts | 147 ++++++------------ clients/client-ec2/src/models/models_5.ts | 124 ++++++++++++--- clients/client-ec2/src/models/models_6.ts | 33 ++-- clients/client-ec2/src/models/models_7.ts | 26 ++-- clients/client-ec2/src/models/models_8.ts | 11 ++ clients/client-ec2/src/protocols/Aws_ec2.ts | 30 +++- codegen/sdk-codegen/aws-models/ec2.json | 32 +++- 15 files changed, 280 insertions(+), 218 deletions(-) diff --git a/clients/client-ec2/src/commands/DeleteSecurityGroupCommand.ts b/clients/client-ec2/src/commands/DeleteSecurityGroupCommand.ts index 9be29c403df8..a2a706bfdc7b 100644 --- a/clients/client-ec2/src/commands/DeleteSecurityGroupCommand.ts +++ b/clients/client-ec2/src/commands/DeleteSecurityGroupCommand.ts @@ -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"; /** @@ -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 {} /** *

Deletes a security group.

@@ -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", + * // }; * * ``` * @@ -96,7 +99,7 @@ export class DeleteSecurityGroupCommand extends $Command protected declare static __types: { api: { input: DeleteSecurityGroupRequest; - output: {}; + output: DeleteSecurityGroupResult; }; sdk: { input: DeleteSecurityGroupCommandInput; diff --git a/clients/client-ec2/src/commands/DescribeFleetInstancesCommand.ts b/clients/client-ec2/src/commands/DescribeFleetInstancesCommand.ts index a62a35ca1de0..57be3c6d6849 100644 --- a/clients/client-ec2/src/commands/DescribeFleetInstancesCommand.ts +++ b/clients/client-ec2/src/commands/DescribeFleetInstancesCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/commands/DescribeReservedInstancesCommand.ts b/clients/client-ec2/src/commands/DescribeReservedInstancesCommand.ts index 74077166eadb..cde7e78522da 100644 --- a/clients/client-ec2/src/commands/DescribeReservedInstancesCommand.ts +++ b/clients/client-ec2/src/commands/DescribeReservedInstancesCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/commands/EnableAllowedImagesSettingsCommand.ts b/clients/client-ec2/src/commands/EnableAllowedImagesSettingsCommand.ts index 2140b29b34af..9c7858961faa 100644 --- a/clients/client-ec2/src/commands/EnableAllowedImagesSettingsCommand.ts +++ b/clients/client-ec2/src/commands/EnableAllowedImagesSettingsCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/commands/ModifyInstanceEventWindowCommand.ts b/clients/client-ec2/src/commands/ModifyInstanceEventWindowCommand.ts index 8fe4177f1376..1398f8e9c723 100644 --- a/clients/client-ec2/src/commands/ModifyInstanceEventWindowCommand.ts +++ b/clients/client-ec2/src/commands/ModifyInstanceEventWindowCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/commands/StartDeclarativePoliciesReportCommand.ts b/clients/client-ec2/src/commands/StartDeclarativePoliciesReportCommand.ts index 8528aa8042f0..88a783dadfe0 100644 --- a/clients/client-ec2/src/commands/StartDeclarativePoliciesReportCommand.ts +++ b/clients/client-ec2/src/commands/StartDeclarativePoliciesReportCommand.ts @@ -56,9 +56,9 @@ export interface StartDeclarativePoliciesReportCommandOutput * *
  • *

    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 Sample Amazon S3 policy under - * .

    + * 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 Sample Amazon S3 policy under .

    *
  • *
  • *

    Trusted access must be enabled for the service for which the declarative diff --git a/clients/client-ec2/src/commands/UnlockSnapshotCommand.ts b/clients/client-ec2/src/commands/UnlockSnapshotCommand.ts index 7217fc4a69e5..0247763fdff6 100644 --- a/clients/client-ec2/src/commands/UnlockSnapshotCommand.ts +++ b/clients/client-ec2/src/commands/UnlockSnapshotCommand.ts @@ -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"; /** diff --git a/clients/client-ec2/src/models/models_3.ts b/clients/client-ec2/src/models/models_3.ts index fdea21033850..2b8fd6aa08f3 100644 --- a/clients/client-ec2/src/models/models_3.ts +++ b/clients/client-ec2/src/models/models_3.ts @@ -1618,6 +1618,23 @@ export interface DeleteSecurityGroupRequest { DryRun?: boolean | undefined; } +/** + * @public + */ +export interface DeleteSecurityGroupResult { + /** + *

    Returns true if the request succeeds; otherwise, returns an error.

    + * @public + */ + Return?: boolean | undefined; + + /** + *

    The ID of the deleted security group.

    + * @public + */ + GroupId?: string | undefined; +} + /** * @public */ @@ -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.

    *

    If you specify multiple filters, the filters are joined with an AND, and the request returns only * results that match all of the specified filters.

    + *

    For more information, see List and filter using the CLI and API in the Amazon EC2 User Guide.

    * @public */ export interface Filter { @@ -7868,51 +7886,6 @@ export interface DescribeFleetHistoryResult { StartTime?: Date | undefined; } -/** - * @public - */ -export interface DescribeFleetInstancesRequest { - /** - *

    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 DryRunOperation. - * Otherwise, it is UnauthorizedOperation.

    - * @public - */ - DryRun?: boolean | undefined; - - /** - *

    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 Pagination.

    - * @public - */ - MaxResults?: number | undefined; - - /** - *

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

    - * @public - */ - NextToken?: string | undefined; - - /** - *

    The ID of the EC2 Fleet.

    - * @public - */ - FleetId: string | undefined; - - /** - *

    The filters.

    - * - * @public - */ - Filters?: Filter[] | undefined; -} - /** * @internal */ diff --git a/clients/client-ec2/src/models/models_4.ts b/clients/client-ec2/src/models/models_4.ts index f59c9edf9e57..3c555b321e6c 100644 --- a/clients/client-ec2/src/models/models_4.ts +++ b/clients/client-ec2/src/models/models_4.ts @@ -83,6 +83,51 @@ import { import { Byoasn, Filter, FleetStateCode, IdFormat, InstanceTagNotificationAttribute } from "./models_3"; +/** + * @public + */ +export interface DescribeFleetInstancesRequest { + /** + *

    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 DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

    + * @public + */ + DryRun?: boolean | undefined; + + /** + *

    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 Pagination.

    + * @public + */ + MaxResults?: number | undefined; + + /** + *

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

    + * @public + */ + NextToken?: string | undefined; + + /** + *

    The ID of the EC2 Fleet.

    + * @public + */ + FleetId: string | undefined; + + /** + *

    The filters.

    + * + * @public + */ + Filters?: Filter[] | undefined; +} + /** * @public */ @@ -12394,108 +12439,6 @@ export const OfferingTypeValues = { */ export type OfferingTypeValues = (typeof OfferingTypeValues)[keyof typeof OfferingTypeValues]; -/** - *

    Contains the parameters for DescribeReservedInstances.

    - * @public - */ -export interface DescribeReservedInstancesRequest { - /** - *

    Describes whether the Reserved Instance is Standard or Convertible.

    - * @public - */ - OfferingClass?: OfferingClassType | undefined; - - /** - *

    One or more Reserved Instance IDs.

    - *

    Default: Describes all your Reserved Instances, or only those otherwise specified.

    - * @public - */ - ReservedInstancesIds?: string[] | undefined; - - /** - *

    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 DryRunOperation. - * Otherwise, it is UnauthorizedOperation.

    - * @public - */ - DryRun?: boolean | undefined; - - /** - *

    One or more filters.

    - * - * @public - */ - Filters?: Filter[] | undefined; - - /** - *

    The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API - * version, you only have access to the Medium Utilization Reserved Instance - * offering type.

    - * @public - */ - OfferingType?: OfferingTypeValues | undefined; -} - /** * @internal */ diff --git a/clients/client-ec2/src/models/models_5.ts b/clients/client-ec2/src/models/models_5.ts index b373a917ad86..c869a172595c 100644 --- a/clients/client-ec2/src/models/models_5.ts +++ b/clients/client-ec2/src/models/models_5.ts @@ -7,7 +7,6 @@ import { AddressTransfer, AllocationStrategy, AllowedImagesSettingsDisabledState, - AllowedImagesSettingsEnabledState, AllowedPrincipal, AsnAssociation, AssociationStatus, @@ -117,6 +116,108 @@ import { import { AttributeBooleanValue, OfferingClassType, OfferingTypeValues, PermissionGroup, ProductCode } from "./models_4"; +/** + *

    Contains the parameters for DescribeReservedInstances.

    + * @public + */ +export interface DescribeReservedInstancesRequest { + /** + *

    Describes whether the Reserved Instance is Standard or Convertible.

    + * @public + */ + OfferingClass?: OfferingClassType | undefined; + + /** + *

    One or more Reserved Instance IDs.

    + *

    Default: Describes all your Reserved Instances, or only those otherwise specified.

    + * @public + */ + ReservedInstancesIds?: string[] | undefined; + + /** + *

    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 DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

    + * @public + */ + DryRun?: boolean | undefined; + + /** + *

    One or more filters.

    + * + * @public + */ + Filters?: Filter[] | undefined; + + /** + *

    The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API + * version, you only have access to the Medium Utilization Reserved Instance + * offering type.

    + * @public + */ + OfferingType?: OfferingTypeValues | undefined; +} + /** * @public * @enum @@ -10974,27 +11075,6 @@ export interface EnableAddressTransferResult { AddressTransfer?: AddressTransfer | undefined; } -/** - * @public - */ -export interface EnableAllowedImagesSettingsRequest { - /** - *

    Specify enabled to apply the image criteria specified by the Allowed AMIs - * settings. Specify audit-mode so that you can check which AMIs will be allowed or - * not allowed by the image criteria.

    - * @public - */ - AllowedImagesSettingsState: AllowedImagesSettingsEnabledState | undefined; - - /** - *

    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 - * DryRunOperation. Otherwise, it is UnauthorizedOperation.

    - * @public - */ - DryRun?: boolean | undefined; -} - /** * @internal */ diff --git a/clients/client-ec2/src/models/models_6.ts b/clients/client-ec2/src/models/models_6.ts index 45c5e86c6c15..bfb522d8d62a 100644 --- a/clients/client-ec2/src/models/models_6.ts +++ b/clients/client-ec2/src/models/models_6.ts @@ -10,7 +10,6 @@ import { DeviceTrustProviderType, HostMaintenance, HostRecovery, - InstanceEventWindow, IpamPoolAllocation, SubnetAssociation, Tag, @@ -106,6 +105,27 @@ import { TransitGatewayPropagationState, } from "./models_5"; +/** + * @public + */ +export interface EnableAllowedImagesSettingsRequest { + /** + *

    Specify enabled to apply the image criteria specified by the Allowed AMIs + * settings. Specify audit-mode so that you can check which AMIs will be allowed or + * not allowed by the image criteria.

    + * @public + */ + AllowedImagesSettingsState: AllowedImagesSettingsEnabledState | undefined; + + /** + *

    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 + * DryRunOperation. Otherwise, it is UnauthorizedOperation.

    + * @public + */ + DryRun?: boolean | undefined; +} + /** * @public */ @@ -9015,17 +9035,6 @@ export interface ModifyInstanceEventWindowRequest { CronExpression?: string | undefined; } -/** - * @public - */ -export interface ModifyInstanceEventWindowResult { - /** - *

    Information about the event window.

    - * @public - */ - InstanceEventWindow?: InstanceEventWindow | undefined; -} - /** * @internal */ diff --git a/clients/client-ec2/src/models/models_7.ts b/clients/client-ec2/src/models/models_7.ts index 67197fe19043..a998c5bfa369 100644 --- a/clients/client-ec2/src/models/models_7.ts +++ b/clients/client-ec2/src/models/models_7.ts @@ -17,6 +17,7 @@ import { EnaSrdSpecification, IamInstanceProfileAssociation, IamInstanceProfileSpecification, + InstanceEventWindow, IpPermission, Ipv6SupportValue, NatGatewayAddress, @@ -158,6 +159,17 @@ import { import { CapacityReservationSpecification, IpamResourceCidr, OperationType, Purchase } from "./models_6"; +/** + * @public + */ +export interface ModifyInstanceEventWindowResult { + /** + *

    Information about the event window.

    + * @public + */ + InstanceEventWindow?: InstanceEventWindow | undefined; +} + /** * @public */ @@ -8927,7 +8939,8 @@ export interface StartDeclarativePoliciesReportRequest { DryRun?: boolean | undefined; /** - *

    The name of the S3 bucket where the report will be saved.

    + *

    The name of the S3 bucket where the report will be saved. The bucket must be in the + * same Region where the report generation request is made.

    * @public */ S3Bucket: string | undefined; @@ -9464,17 +9477,6 @@ export interface UnlockSnapshotRequest { DryRun?: boolean | undefined; } -/** - * @public - */ -export interface UnlockSnapshotResult { - /** - *

    The ID of the snapshot.

    - * @public - */ - SnapshotId?: string | undefined; -} - /** * @internal */ diff --git a/clients/client-ec2/src/models/models_8.ts b/clients/client-ec2/src/models/models_8.ts index 3d9e67a1494b..939aba257535 100644 --- a/clients/client-ec2/src/models/models_8.ts +++ b/clients/client-ec2/src/models/models_8.ts @@ -3,6 +3,17 @@ import { ByoipCidr, IpPermission } from "./models_0"; import { InstanceMonitoring } from "./models_7"; +/** + * @public + */ +export interface UnlockSnapshotResult { + /** + *

    The ID of the snapshot.

    + * @public + */ + SnapshotId?: string | undefined; +} + /** * @public */ diff --git a/clients/client-ec2/src/protocols/Aws_ec2.ts b/clients/client-ec2/src/protocols/Aws_ec2.ts index f9576236b57d..2394cabd050a 100644 --- a/clients/client-ec2/src/protocols/Aws_ec2.ts +++ b/clients/client-ec2/src/protocols/Aws_ec2.ts @@ -3080,6 +3080,7 @@ import { DeleteRouteRequest, DeleteRouteTableRequest, DeleteSecurityGroupRequest, + DeleteSecurityGroupResult, DeleteSnapshotRequest, DeleteSpotDatafeedSubscriptionRequest, DeleteSubnetCidrReservationRequest, @@ -3225,7 +3226,6 @@ import { DescribeFastSnapshotRestoreSuccessItem, DescribeFleetHistoryRequest, DescribeFleetHistoryResult, - DescribeFleetInstancesRequest, DirectoryServiceAuthentication, DiskImageDescription, DiskImageVolumeDescription, @@ -3266,6 +3266,7 @@ import { ConnectionTrackingSpecificationResponse, CpuOptions, DescribeFleetError, + DescribeFleetInstancesRequest, DescribeFleetInstancesResult, DescribeFleetsInstances, DescribeFleetsRequest, @@ -3390,7 +3391,6 @@ import { DescribeRegionsResult, DescribeReplaceRootVolumeTasksRequest, DescribeReplaceRootVolumeTasksResult, - DescribeReservedInstancesRequest, DestinationOptionsResponse, DiskInfo, EbsInfo, @@ -3518,6 +3518,7 @@ import { DescribeReservedInstancesModificationsResult, DescribeReservedInstancesOfferingsRequest, DescribeReservedInstancesOfferingsResult, + DescribeReservedInstancesRequest, DescribeReservedInstancesResult, DescribeRouteTablesRequest, DescribeRouteTablesResult, @@ -3718,7 +3719,6 @@ import { DisassociateVpcCidrBlockResult, EnableAddressTransferRequest, EnableAddressTransferResult, - EnableAllowedImagesSettingsRequest, HistoryRecord, InstanceEventWindowDisassociationRequest, InstanceNetworkInterfaceSpecification, @@ -3801,6 +3801,7 @@ import { DiskImageDetail, DnsServersOptionsModifyStructure, EbsInstanceBlockDeviceSpecification, + EnableAllowedImagesSettingsRequest, EnableAllowedImagesSettingsResult, EnableAwsNetworkPerformanceMetricSubscriptionRequest, EnableAwsNetworkPerformanceMetricSubscriptionResult, @@ -4034,7 +4035,6 @@ import { ModifyInstanceEventStartTimeRequest, ModifyInstanceEventStartTimeResult, ModifyInstanceEventWindowRequest, - ModifyInstanceEventWindowResult, PrefixListAssociation, PrefixListEntry, Purchase, @@ -4084,6 +4084,7 @@ import { IpamCidrAuthorizationContext, LaunchTemplateSpecification, LicenseConfigurationRequest, + ModifyInstanceEventWindowResult, ModifyInstanceMaintenanceOptionsRequest, ModifyInstanceMaintenanceOptionsResult, ModifyInstanceMetadataDefaultsRequest, @@ -4350,7 +4351,6 @@ import { UnassignPrivateNatGatewayAddressRequest, UnassignPrivateNatGatewayAddressResult, UnlockSnapshotRequest, - UnlockSnapshotResult, VerifiedAccessLogCloudWatchLogsDestinationOptions, VerifiedAccessLogKinesisDataFirehoseDestinationOptions, VerifiedAccessLogOptions, @@ -4358,6 +4358,7 @@ import { } from "../models/models_7"; import { SecurityGroupRuleDescription, + UnlockSnapshotResult, UnmonitorInstancesRequest, UnmonitorInstancesResult, UpdateSecurityGroupRuleDescriptionsEgressRequest, @@ -19216,9 +19217,12 @@ export const de_DeleteSecurityGroupCommand = async ( if (output.statusCode >= 300) { return de_CommandError(output, context); } - await collectBody(output.body, context); + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DeleteSecurityGroupResult(data, context); const response: DeleteSecurityGroupCommandOutput = { $metadata: deserializeMetadata(output), + ...contents, }; return response; }; @@ -62618,6 +62622,20 @@ const de_DeleteQueuedReservedInstancesResult = ( return contents; }; +/** + * deserializeAws_ec2DeleteSecurityGroupResult + */ +const de_DeleteSecurityGroupResult = (output: any, context: __SerdeContext): DeleteSecurityGroupResult => { + const contents: any = {}; + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); + } + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); + } + return contents; +}; + /** * deserializeAws_ec2DeleteSubnetCidrReservationResult */ diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index 2a71cc001a5f..2d5e76f06c4e 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -26456,7 +26456,7 @@ "target": "com.amazonaws.ec2#DeleteSecurityGroupRequest" }, "output": { - "target": "smithy.api#Unit" + "target": "com.amazonaws.ec2#DeleteSecurityGroupResult" }, "traits": { "smithy.api#documentation": "

    Deletes a security group.

    \n

    If you attempt to delete a security group that is associated with an instance or network interface, is\n\t\t\t referenced by another security group in the same VPC, or has a VPC association, the operation fails with\n\t\t\t\tDependencyViolation.

    ", @@ -26500,6 +26500,30 @@ "smithy.api#input": {} } }, + "com.amazonaws.ec2#DeleteSecurityGroupResult": { + "type": "structure", + "members": { + "Return": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "Return", + "smithy.api#documentation": "

    Returns true if the request succeeds; otherwise, returns an error.

    ", + "smithy.api#xmlName": "return" + } + }, + "GroupId": { + "target": "com.amazonaws.ec2#SecurityGroupId", + "traits": { + "aws.protocols#ec2QueryName": "GroupId", + "smithy.api#documentation": "

    The ID of the deleted security group.

    ", + "smithy.api#xmlName": "groupId" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.ec2#DeleteSnapshot": { "type": "operation", "input": { @@ -52141,7 +52165,7 @@ } }, "traits": { - "smithy.api#documentation": "

    A filter name and value pair that is used to return a more specific list of results from a describe operation. \n Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    \n

    If you specify multiple filters, the filters are joined with an AND, and the request returns only \n results that match all of the specified filters.

    " + "smithy.api#documentation": "

    A filter name and value pair that is used to return a more specific list of results from a describe operation. \n Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    \n

    If you specify multiple filters, the filters are joined with an AND, and the request returns only \n results that match all of the specified filters.

    \n

    For more information, see List and filter using the CLI and API in the Amazon EC2 User Guide.

    " } }, "com.amazonaws.ec2#FilterList": { @@ -102737,7 +102761,7 @@ "target": "com.amazonaws.ec2#StartDeclarativePoliciesReportResult" }, "traits": { - "smithy.api#documentation": "

    Generates an account status report. The report is generated asynchronously, and can\n take several hours to complete.

    \n

    The report provides the current status of all attributes supported by declarative\n policies for the accounts within the specified scope. The scope is determined by the\n specified TargetId, which can represent an individual account, or all the\n accounts that fall under the specified organizational unit (OU) or root (the entire\n Amazon Web Services Organization).

    \n

    The report is saved to your specified S3 bucket, using the following path structure\n (with the italicized placeholders representing your specific\n values):

    \n

    \n s3://amzn-s3-demo-bucket/your-optional-s3-prefix/ec2_targetId_reportId_yyyyMMddThhmmZ.csv\n

    \n

    \n Prerequisites for generating a report\n

    \n \n

    For more information, including the required IAM permissions to run this API, see\n Generating the account status report for declarative policies in the\n Amazon Web Services Organizations User Guide.

    " + "smithy.api#documentation": "

    Generates an account status report. The report is generated asynchronously, and can\n take several hours to complete.

    \n

    The report provides the current status of all attributes supported by declarative\n policies for the accounts within the specified scope. The scope is determined by the\n specified TargetId, which can represent an individual account, or all the\n accounts that fall under the specified organizational unit (OU) or root (the entire\n Amazon Web Services Organization).

    \n

    The report is saved to your specified S3 bucket, using the following path structure\n (with the italicized placeholders representing your specific\n values):

    \n

    \n s3://amzn-s3-demo-bucket/your-optional-s3-prefix/ec2_targetId_reportId_yyyyMMddThhmmZ.csv\n

    \n

    \n Prerequisites for generating a report\n

    \n \n

    For more information, including the required IAM permissions to run this API, see\n Generating the account status report for declarative policies in the\n Amazon Web Services Organizations User Guide.

    " } }, "com.amazonaws.ec2#StartDeclarativePoliciesReportRequest": { @@ -102753,7 +102777,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

    The name of the S3 bucket where the report will be saved.

    ", + "smithy.api#documentation": "

    The name of the S3 bucket where the report will be saved. The bucket must be in the\n same Region where the report generation request is made.

    ", "smithy.api#required": {} } },