Skip to content

Commit 9119ae6

Browse files
authored
chore(middleware-sdk-s3): update s3 status 200 error handling (#6232)
* chore(middleware-sdk-s3): update s3 status 200 error handling * fix(middleware-sdk-s3): only check tail bytes in s3-200-errors * chore(middleware-sdk-s3): use splitStream utility function to inspect 200-error
1 parent 9ca8bae commit 9119ae6

File tree

61 files changed

+276
-46
lines changed

Some content is hidden

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

61 files changed

+276
-46
lines changed

clients/client-s3/src/commands/AbortMultipartUploadCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -164,6 +165,7 @@ export class AbortMultipartUploadCommand extends $Command
164165
return [
165166
getSerdePlugin(config, this.serialize, this.deserialize),
166167
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
168+
getThrow200ExceptionsPlugin(config),
167169
];
168170
})
169171
.s("AmazonS3", "AbortMultipartUpload", {})

clients/client-s3/src/commands/CreateBucketCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// smithy-typescript generated code
22
import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
3+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
34
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
45
import { getSerdePlugin } from "@smithy/middleware-serde";
56
import { Command as $Command } from "@smithy/smithy-client";
@@ -272,6 +273,7 @@ export class CreateBucketCommand extends $Command
272273
return [
273274
getSerdePlugin(config, this.serialize, this.deserialize),
274275
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
276+
getThrow200ExceptionsPlugin(config),
275277
getLocationConstraintPlugin(config),
276278
];
277279
})

clients/client-s3/src/commands/CreateMultipartUploadCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
34
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
45
import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -358,6 +359,7 @@ export class CreateMultipartUploadCommand extends $Command
358359
return [
359360
getSerdePlugin(config, this.serialize, this.deserialize),
360361
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
362+
getThrow200ExceptionsPlugin(config),
361363
getSsecPlugin(config),
362364
];
363365
})

clients/client-s3/src/commands/CreateSessionCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -146,6 +147,7 @@ export class CreateSessionCommand extends $Command
146147
return [
147148
getSerdePlugin(config, this.serialize, this.deserialize),
148149
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
150+
getThrow200ExceptionsPlugin(config),
149151
];
150152
})
151153
.s("AmazonS3", "CreateSession", {})

clients/client-s3/src/commands/DeleteObjectCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -204,6 +205,7 @@ export class DeleteObjectCommand extends $Command
204205
return [
205206
getSerdePlugin(config, this.serialize, this.deserialize),
206207
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
208+
getThrow200ExceptionsPlugin(config),
207209
];
208210
})
209211
.s("AmazonS3", "DeleteObject", {})

clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -133,6 +134,7 @@ export class DeleteObjectTaggingCommand extends $Command
133134
return [
134135
getSerdePlugin(config, this.serialize, this.deserialize),
135136
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
137+
getThrow200ExceptionsPlugin(config),
136138
];
137139
})
138140
.s("AmazonS3", "DeleteObjectTagging", {})

clients/client-s3/src/commands/DeleteObjectsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// smithy-typescript generated code
22
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
3+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
34
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
45
import { getSerdePlugin } from "@smithy/middleware-serde";
56
import { Command as $Command } from "@smithy/smithy-client";
@@ -305,6 +306,7 @@ export class DeleteObjectsCommand extends $Command
305306
return [
306307
getSerdePlugin(config, this.serialize, this.deserialize),
307308
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
309+
getThrow200ExceptionsPlugin(config),
308310
getFlexibleChecksumsPlugin(config, {
309311
input: this.input,
310312
requestAlgorithmMember: "ChecksumAlgorithm",

clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -110,6 +111,7 @@ export class GetBucketAccelerateConfigurationCommand extends $Command
110111
return [
111112
getSerdePlugin(config, this.serialize, this.deserialize),
112113
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
114+
getThrow200ExceptionsPlugin(config),
113115
];
114116
})
115117
.s("AmazonS3", "GetBucketAccelerateConfiguration", {})

clients/client-s3/src/commands/GetBucketAclCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -118,6 +119,7 @@ export class GetBucketAclCommand extends $Command
118119
return [
119120
getSerdePlugin(config, this.serialize, this.deserialize),
120121
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
122+
getThrow200ExceptionsPlugin(config),
121123
];
122124
})
123125
.s("AmazonS3", "GetBucketAcl", {})

clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -143,6 +144,7 @@ export class GetBucketAnalyticsConfigurationCommand extends $Command
143144
return [
144145
getSerdePlugin(config, this.serialize, this.deserialize),
145146
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
147+
getThrow200ExceptionsPlugin(config),
146148
];
147149
})
148150
.s("AmazonS3", "GetBucketAnalyticsConfiguration", {})

clients/client-s3/src/commands/GetBucketCorsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -148,6 +149,7 @@ export class GetBucketCorsCommand extends $Command
148149
return [
149150
getSerdePlugin(config, this.serialize, this.deserialize),
150151
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
152+
getThrow200ExceptionsPlugin(config),
151153
];
152154
})
153155
.s("AmazonS3", "GetBucketCors", {})

clients/client-s3/src/commands/GetBucketEncryptionCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -113,6 +114,7 @@ export class GetBucketEncryptionCommand extends $Command
113114
return [
114115
getSerdePlugin(config, this.serialize, this.deserialize),
115116
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
117+
getThrow200ExceptionsPlugin(config),
116118
];
117119
})
118120
.s("AmazonS3", "GetBucketEncryption", {})

clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -133,6 +134,7 @@ export class GetBucketIntelligentTieringConfigurationCommand extends $Command
133134
return [
134135
getSerdePlugin(config, this.serialize, this.deserialize),
135136
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
137+
getThrow200ExceptionsPlugin(config),
136138
];
137139
})
138140
.s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {})

clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -141,6 +142,7 @@ export class GetBucketInventoryConfigurationCommand extends $Command
141142
return [
142143
getSerdePlugin(config, this.serialize, this.deserialize),
143144
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
145+
getThrow200ExceptionsPlugin(config),
144146
];
145147
})
146148
.s("AmazonS3", "GetBucketInventoryConfiguration", {})

clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -216,6 +217,7 @@ export class GetBucketLifecycleConfigurationCommand extends $Command
216217
return [
217218
getSerdePlugin(config, this.serialize, this.deserialize),
218219
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
220+
getThrow200ExceptionsPlugin(config),
219221
];
220222
})
221223
.s("AmazonS3", "GetBucketLifecycleConfiguration", {})

clients/client-s3/src/commands/GetBucketLocationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -119,6 +120,7 @@ export class GetBucketLocationCommand extends $Command
119120
return [
120121
getSerdePlugin(config, this.serialize, this.deserialize),
121122
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
123+
getThrow200ExceptionsPlugin(config),
122124
];
123125
})
124126
.s("AmazonS3", "GetBucketLocation", {})

clients/client-s3/src/commands/GetBucketLoggingCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -113,6 +114,7 @@ export class GetBucketLoggingCommand extends $Command
113114
return [
114115
getSerdePlugin(config, this.serialize, this.deserialize),
115116
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
117+
getThrow200ExceptionsPlugin(config),
116118
];
117119
})
118120
.s("AmazonS3", "GetBucketLogging", {})

clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -136,6 +137,7 @@ export class GetBucketMetricsConfigurationCommand extends $Command
136137
return [
137138
getSerdePlugin(config, this.serialize, this.deserialize),
138139
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
140+
getThrow200ExceptionsPlugin(config),
139141
];
140142
})
141143
.s("AmazonS3", "GetBucketMetricsConfiguration", {})

clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -160,6 +161,7 @@ export class GetBucketNotificationConfigurationCommand extends $Command
160161
return [
161162
getSerdePlugin(config, this.serialize, this.deserialize),
162163
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
164+
getThrow200ExceptionsPlugin(config),
163165
];
164166
})
165167
.s("AmazonS3", "GetBucketNotificationConfiguration", {})

clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -102,6 +103,7 @@ export class GetBucketOwnershipControlsCommand extends $Command
102103
return [
103104
getSerdePlugin(config, this.serialize, this.deserialize),
104105
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
106+
getThrow200ExceptionsPlugin(config),
105107
];
106108
})
107109
.s("AmazonS3", "GetBucketOwnershipControls", {})

clients/client-s3/src/commands/GetBucketPolicyCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -152,6 +153,7 @@ export class GetBucketPolicyCommand extends $Command
152153
return [
153154
getSerdePlugin(config, this.serialize, this.deserialize),
154155
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
156+
getThrow200ExceptionsPlugin(config),
155157
];
156158
})
157159
.s("AmazonS3", "GetBucketPolicy", {})

clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -108,6 +109,7 @@ export class GetBucketPolicyStatusCommand extends $Command
108109
return [
109110
getSerdePlugin(config, this.serialize, this.deserialize),
110111
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
112+
getThrow200ExceptionsPlugin(config),
111113
];
112114
})
113115
.s("AmazonS3", "GetBucketPolicyStatus", {})

clients/client-s3/src/commands/GetBucketReplicationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -198,6 +199,7 @@ export class GetBucketReplicationCommand extends $Command
198199
return [
199200
getSerdePlugin(config, this.serialize, this.deserialize),
200201
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
202+
getThrow200ExceptionsPlugin(config),
201203
];
202204
})
203205
.s("AmazonS3", "GetBucketReplication", {})

clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -104,6 +105,7 @@ export class GetBucketRequestPaymentCommand extends $Command
104105
return [
105106
getSerdePlugin(config, this.serialize, this.deserialize),
106107
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
108+
getThrow200ExceptionsPlugin(config),
107109
];
108110
})
109111
.s("AmazonS3", "GetBucketRequestPayment", {})

clients/client-s3/src/commands/GetBucketTaggingCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -137,6 +138,7 @@ export class GetBucketTaggingCommand extends $Command
137138
return [
138139
getSerdePlugin(config, this.serialize, this.deserialize),
139140
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
141+
getThrow200ExceptionsPlugin(config),
140142
];
141143
})
142144
.s("AmazonS3", "GetBucketTagging", {})

clients/client-s3/src/commands/GetBucketVersioningCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -118,6 +119,7 @@ export class GetBucketVersioningCommand extends $Command
118119
return [
119120
getSerdePlugin(config, this.serialize, this.deserialize),
120121
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
122+
getThrow200ExceptionsPlugin(config),
121123
];
122124
})
123125
.s("AmazonS3", "GetBucketVersioning", {})

clients/client-s3/src/commands/GetBucketWebsiteCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -142,6 +143,7 @@ export class GetBucketWebsiteCommand extends $Command
142143
return [
143144
getSerdePlugin(config, this.serialize, this.deserialize),
144145
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
146+
getThrow200ExceptionsPlugin(config),
145147
];
146148
})
147149
.s("AmazonS3", "GetBucketWebsite", {})

clients/client-s3/src/commands/GetObjectAclCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
23
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
34
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
@@ -192,6 +193,7 @@ export class GetObjectAclCommand extends $Command
192193
return [
193194
getSerdePlugin(config, this.serialize, this.deserialize),
194195
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
196+
getThrow200ExceptionsPlugin(config),
195197
];
196198
})
197199
.s("AmazonS3", "GetObjectAcl", {})

0 commit comments

Comments
 (0)