Skip to content

chore(client-ec2): use spread operator for Command endpoint params when necessary #6451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ export class AcceptAddressTransferCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ export class AcceptReservedInstancesExchangeQuoteCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ export class AcceptTransitGatewayMulticastDomainAssociationsCommand extends $Com
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export class AcceptTransitGatewayPeeringAttachmentCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ export class AcceptTransitGatewayVpcAttachmentCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export class AcceptVpcEndpointConnectionsCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ export class AcceptVpcPeeringConnectionCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ export class AdvertiseByoipCidrCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
4 changes: 1 addition & 3 deletions clients/client-ec2/src/commands/AllocateAddressCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ export class AllocateAddressCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
4 changes: 1 addition & 3 deletions clients/client-ec2/src/commands/AllocateHostsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ export class AllocateHostsCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ export class AllocateIpamPoolCidrCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ export class ApplySecurityGroupsToClientVpnTargetNetworkCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ export class AssignIpv6AddressesCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ export class AssignPrivateIpAddressesCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ export class AssignPrivateNatGatewayAddressCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ export class AssociateAddressCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ export class AssociateClientVpnTargetNetworkCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ export class AssociateDhcpOptionsCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ export class AssociateEnclaveCertificateIamRoleCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export class AssociateIamInstanceProfileCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ export class AssociateInstanceEventWindowCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export class AssociateIpamByoasnCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ export class AssociateIpamResourceDiscoveryCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ export class AssociateNatGatewayAddressCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ export class AssociateRouteTableCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export class AssociateSubnetCidrBlockCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ export class AssociateTransitGatewayMulticastDomainCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export class AssociateTransitGatewayPolicyTableCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export class AssociateTransitGatewayRouteTableCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ export class AssociateTrunkInterfaceCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ export class AssociateVpcCidrBlockCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export class AttachClassicLinkVpcCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export class AttachInternetGatewayCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ export class AttachNetworkInterfaceCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ export class AttachVerifiedAccessTrustProviderCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
4 changes: 1 addition & 3 deletions clients/client-ec2/src/commands/AttachVolumeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ export class AttachVolumeCommand extends $Command
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
Expand Down
Loading
Loading