Skip to content

Commit 76ceacb

Browse files
authored
chore(clients): use spread operator for command endpoint params when necessary (#6458)
1 parent 2b517a4 commit 76ceacb

File tree

15,458 files changed

+15458
-46372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,458 files changed

+15458
-46372
lines changed

clients/client-accessanalyzer/src/commands/ApplyArchiveRuleCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ export class ApplyArchiveRuleCommand extends $Command
8181
ServiceInputTypes,
8282
ServiceOutputTypes
8383
>()
84-
.ep({
85-
...commonParams,
86-
})
84+
.ep(commonParams)
8785
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8886
return [
8987
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CancelPolicyGenerationCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ export class CancelPolicyGenerationCommand extends $Command
7575
ServiceInputTypes,
7676
ServiceOutputTypes
7777
>()
78-
.ep({
79-
...commonParams,
80-
})
78+
.ep(commonParams)
8179
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8280
return [
8381
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CheckAccessNotGrantedCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ export class CheckAccessNotGrantedCommand extends $Command
188188
ServiceInputTypes,
189189
ServiceOutputTypes
190190
>()
191-
.ep({
192-
...commonParams,
193-
})
191+
.ep(commonParams)
194192
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
195193
return [
196194
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CheckNoNewAccessCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ export class CheckNoNewAccessCommand extends $Command
102102
ServiceInputTypes,
103103
ServiceOutputTypes
104104
>()
105-
.ep({
106-
...commonParams,
107-
})
105+
.ep(commonParams)
108106
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
109107
return [
110108
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CheckNoPublicAccessCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ export class CheckNoPublicAccessCommand extends $Command
140140
ServiceInputTypes,
141141
ServiceOutputTypes
142142
>()
143-
.ep({
144-
...commonParams,
145-
})
143+
.ep(commonParams)
146144
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
147145
return [
148146
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CreateAccessPreviewCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ export class CreateAccessPreviewCommand extends $Command
203203
ServiceInputTypes,
204204
ServiceOutputTypes
205205
>()
206-
.ep({
207-
...commonParams,
208-
})
206+
.ep(commonParams)
209207
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
210208
return [
211209
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CreateAnalyzerCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ export class CreateAnalyzerCommand extends $Command
112112
ServiceInputTypes,
113113
ServiceOutputTypes
114114
>()
115-
.ep({
116-
...commonParams,
117-
})
115+
.ep(commonParams)
118116
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
119117
return [
120118
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/CreateArchiveRuleCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ export class CreateArchiveRuleCommand extends $Command
102102
ServiceInputTypes,
103103
ServiceOutputTypes
104104
>()
105-
.ep({
106-
...commonParams,
107-
})
105+
.ep(commonParams)
108106
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
109107
return [
110108
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/DeleteAnalyzerCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ export class DeleteAnalyzerCommand extends $Command
8181
ServiceInputTypes,
8282
ServiceOutputTypes
8383
>()
84-
.ep({
85-
...commonParams,
86-
})
84+
.ep(commonParams)
8785
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8886
return [
8987
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/DeleteArchiveRuleCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export class DeleteArchiveRuleCommand extends $Command
8080
ServiceInputTypes,
8181
ServiceOutputTypes
8282
>()
83-
.ep({
84-
...commonParams,
85-
})
83+
.ep(commonParams)
8684
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8785
return [
8886
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GenerateFindingRecommendationCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ export class GenerateFindingRecommendationCommand extends $Command
103103
ServiceInputTypes,
104104
ServiceOutputTypes
105105
>()
106-
.ep({
107-
...commonParams,
108-
})
106+
.ep(commonParams)
109107
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
110108
return [
111109
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetAccessPreviewCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ export class GetAccessPreviewCommand extends $Command
204204
ServiceInputTypes,
205205
ServiceOutputTypes
206206
>()
207-
.ep({
208-
...commonParams,
209-
})
207+
.ep(commonParams)
210208
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
211209
return [
212210
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetAnalyzedResourceCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ export class GetAnalyzedResourceCommand extends $Command
9797
ServiceInputTypes,
9898
ServiceOutputTypes
9999
>()
100-
.ep({
101-
...commonParams,
102-
})
100+
.ep(commonParams)
103101
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
104102
return [
105103
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetAnalyzerCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ export class GetAnalyzerCommand extends $Command
9999
ServiceInputTypes,
100100
ServiceOutputTypes
101101
>()
102-
.ep({
103-
...commonParams,
104-
})
102+
.ep(commonParams)
105103
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
106104
return [
107105
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetArchiveRuleCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export class GetArchiveRuleCommand extends $Command
100100
ServiceInputTypes,
101101
ServiceOutputTypes
102102
>()
103-
.ep({
104-
...commonParams,
105-
})
103+
.ep(commonParams)
106104
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
107105
return [
108106
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetFindingCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ export class GetFindingCommand extends $Command
113113
ServiceInputTypes,
114114
ServiceOutputTypes
115115
>()
116-
.ep({
117-
...commonParams,
118-
})
116+
.ep(commonParams)
119117
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
120118
return [
121119
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetFindingRecommendationCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ export class GetFindingRecommendationCommand extends $Command
199199
ServiceInputTypes,
200200
ServiceOutputTypes
201201
>()
202-
.ep({
203-
...commonParams,
204-
})
202+
.ep(commonParams)
205203
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
206204
return [
207205
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetFindingV2Command.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ export class GetFindingV2Command extends $Command
141141
ServiceInputTypes,
142142
ServiceOutputTypes
143143
>()
144-
.ep({
145-
...commonParams,
146-
})
144+
.ep(commonParams)
147145
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
148146
return [
149147
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/GetGeneratedPolicyCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ export class GetGeneratedPolicyCommand extends $Command
113113
ServiceInputTypes,
114114
ServiceOutputTypes
115115
>()
116-
.ep({
117-
...commonParams,
118-
})
116+
.ep(commonParams)
119117
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
120118
return [
121119
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListAccessPreviewFindingsCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ export class ListAccessPreviewFindingsCommand extends $Command
134134
ServiceInputTypes,
135135
ServiceOutputTypes
136136
>()
137-
.ep({
138-
...commonParams,
139-
})
137+
.ep(commonParams)
140138
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
141139
return [
142140
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListAccessPreviewsCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ export class ListAccessPreviewsCommand extends $Command
9393
ServiceInputTypes,
9494
ServiceOutputTypes
9595
>()
96-
.ep({
97-
...commonParams,
98-
})
96+
.ep(commonParams)
9997
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
10098
return [
10199
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListAnalyzedResourcesCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ export class ListAnalyzedResourcesCommand extends $Command
9292
ServiceInputTypes,
9393
ServiceOutputTypes
9494
>()
95-
.ep({
96-
...commonParams,
97-
})
95+
.ep(commonParams)
9896
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
9997
return [
10098
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListAnalyzersCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export class ListAnalyzersCommand extends $Command
101101
ServiceInputTypes,
102102
ServiceOutputTypes
103103
>()
104-
.ep({
105-
...commonParams,
106-
})
104+
.ep(commonParams)
107105
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
108106
return [
109107
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListArchiveRulesCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export class ListArchiveRulesCommand extends $Command
100100
ServiceInputTypes,
101101
ServiceOutputTypes
102102
>()
103-
.ep({
104-
...commonParams,
105-
})
103+
.ep(commonParams)
106104
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
107105
return [
108106
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListFindingsCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ export class ListFindingsCommand extends $Command
136136
ServiceInputTypes,
137137
ServiceOutputTypes
138138
>()
139-
.ep({
140-
...commonParams,
141-
})
139+
.ep(commonParams)
142140
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
143141
return [
144142
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListFindingsV2Command.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ export class ListFindingsV2Command extends $Command
118118
ServiceInputTypes,
119119
ServiceOutputTypes
120120
>()
121-
.ep({
122-
...commonParams,
123-
})
121+
.ep(commonParams)
124122
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
125123
return [
126124
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListPolicyGenerationsCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ export class ListPolicyGenerationsCommand extends $Command
8888
ServiceInputTypes,
8989
ServiceOutputTypes
9090
>()
91-
.ep({
92-
...commonParams,
93-
})
91+
.ep(commonParams)
9492
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
9593
return [
9694
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ListTagsForResourceCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ export class ListTagsForResourceCommand extends $Command
8282
ServiceInputTypes,
8383
ServiceOutputTypes
8484
>()
85-
.ep({
86-
...commonParams,
87-
})
85+
.ep(commonParams)
8886
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8987
return [
9088
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/StartPolicyGenerationCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export class StartPolicyGenerationCommand extends $Command
100100
ServiceInputTypes,
101101
ServiceOutputTypes
102102
>()
103-
.ep({
104-
...commonParams,
105-
})
103+
.ep(commonParams)
106104
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
107105
return [
108106
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/StartResourceScanCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export class StartResourceScanCommand extends $Command
8080
ServiceInputTypes,
8181
ServiceOutputTypes
8282
>()
83-
.ep({
84-
...commonParams,
85-
})
83+
.ep(commonParams)
8684
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8785
return [
8886
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/TagResourceCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ export class TagResourceCommand extends $Command
8181
ServiceInputTypes,
8282
ServiceOutputTypes
8383
>()
84-
.ep({
85-
...commonParams,
86-
})
84+
.ep(commonParams)
8785
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8886
return [
8987
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/UntagResourceCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ export class UntagResourceCommand extends $Command
8181
ServiceInputTypes,
8282
ServiceOutputTypes
8383
>()
84-
.ep({
85-
...commonParams,
86-
})
84+
.ep(commonParams)
8785
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
8886
return [
8987
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/UpdateArchiveRuleCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ export class UpdateArchiveRuleCommand extends $Command
9494
ServiceInputTypes,
9595
ServiceOutputTypes
9696
>()
97-
.ep({
98-
...commonParams,
99-
})
97+
.ep(commonParams)
10098
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
10199
return [
102100
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/UpdateFindingsCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ export class UpdateFindingsCommand extends $Command
8484
ServiceInputTypes,
8585
ServiceOutputTypes
8686
>()
87-
.ep({
88-
...commonParams,
89-
})
87+
.ep(commonParams)
9088
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
9189
return [
9290
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-accessanalyzer/src/commands/ValidatePolicyCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ export class ValidatePolicyCommand extends $Command
119119
ServiceInputTypes,
120120
ServiceOutputTypes
121121
>()
122-
.ep({
123-
...commonParams,
124-
})
122+
.ep(commonParams)
125123
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
126124
return [
127125
getSerdePlugin(config, this.serialize, this.deserialize),

clients/client-account/src/commands/AcceptPrimaryEmailUpdateCommand.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ export class AcceptPrimaryEmailUpdateCommand extends $Command
9595
ServiceInputTypes,
9696
ServiceOutputTypes
9797
>()
98-
.ep({
99-
...commonParams,
100-
})
98+
.ep(commonParams)
10199
.m(function (this: any, Command: any, cs: any, config: AccountClientResolvedConfig, o: any) {
102100
return [
103101
getSerdePlugin(config, this.serialize, this.deserialize),

0 commit comments

Comments
 (0)