Skip to content

Commit def968f

Browse files
committed
chore: codegen sync for id&auth
1 parent 1225133 commit def968f

File tree

63 files changed

+269
-105
lines changed

Some content is hidden

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

63 files changed

+269
-105
lines changed

clients/client-cloudwatch/src/commands/PutMetricDataCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export class PutMetricDataCommand extends $Command
152152
return [
153153
getSerdePlugin(config, this.serialize, this.deserialize),
154154
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
155-
getCompressionPlugin(config, { encodings: ["gzip"] }),
155+
getCompressionPlugin(config, {
156+
encodings: ["gzip"],
157+
}),
156158
];
157159
})
158160
.s("GraniteServiceVersion20100801", "PutMetricData", {})

clients/client-lex-runtime-v2/src/models/models_0.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// smithy-typescript generated code
22
import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client";
3+
34
import { StreamingBlobTypes } from "@smithy/types";
45

56
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";

clients/client-rekognitionstreaming/src/commands/StartFaceLivenessSessionCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ export class StartFaceLivenessSessionCommand extends $Command
235235
getSerdePlugin(config, this.serialize, this.deserialize),
236236
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
237237
getEventStreamPlugin(config),
238-
getWebSocketPlugin(config, { headerPrefix: "x-amz-rekognition-streaming-liveness-" }),
238+
getWebSocketPlugin(config, {
239+
headerPrefix: "x-amz-rekognition-streaming-liveness-",
240+
}),
239241
];
240242
})
241243
.s("RekognitionStreamingService", "StartFaceLivenessSession", {

clients/client-s3-control/src/models/models_1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
StorageLensTag,
1717
Tag,
1818
} from "./models_0";
19+
1920
import { S3ControlServiceException as __BaseException } from "./S3ControlServiceException";
2021

2122
/**

clients/client-s3/src/S3Client.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
628628
*/
629629
region?: string | __Provider<string>;
630630

631-
/**
632-
* Whether to escape request path when signing the request.
633-
*/
634-
signingEscapePath?: boolean;
635-
636-
/**
637-
* Whether to override the request region with the region inferred from requested resource's ARN. Defaults to false.
638-
*/
639-
useArnRegion?: boolean | Provider<boolean>;
640631
/**
641632
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
642633
* @internal
@@ -676,6 +667,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
676667
*/
677668
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
678669

670+
/**
671+
* Whether to escape request path when signing the request.
672+
*/
673+
signingEscapePath?: boolean;
674+
675+
/**
676+
* Whether to override the request region with the region inferred from requested resource's ARN. Defaults to false.
677+
*/
678+
useArnRegion?: boolean | Provider<boolean>;
679679
/**
680680
* Value for how many times a request will be made at most in case of retry.
681681
*/
@@ -720,13 +720,13 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
720720
*/
721721
export type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
722722
ClientDefaults &
723-
S3InputConfig &
724723
UserAgentInputConfig &
725724
RetryInputConfig &
726725
RegionInputConfig &
727726
HostHeaderInputConfig &
728727
EndpointInputConfig<EndpointParameters> &
729728
AwsAuthInputConfig &
729+
S3InputConfig &
730730
EventStreamSerdeInputConfig &
731731
ClientInputEndpointParameters;
732732
/**
@@ -742,13 +742,13 @@ export interface S3ClientConfig extends S3ClientConfigType {}
742742
export type S3ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
743743
Required<ClientDefaults> &
744744
RuntimeExtensionsConfig &
745-
S3ResolvedConfig &
746745
UserAgentResolvedConfig &
747746
RetryResolvedConfig &
748747
RegionResolvedConfig &
749748
HostHeaderResolvedConfig &
750749
EndpointResolvedConfig<EndpointParameters> &
751750
AwsAuthResolvedConfig &
751+
S3ResolvedConfig &
752752
EventStreamSerdeResolvedConfig &
753753
ClientResolvedEndpointParameters;
754754
/**
@@ -776,28 +776,28 @@ export class S3Client extends __Client<
776776
constructor(...[configuration]: __CheckOptionalClientConfig<S3ClientConfig>) {
777777
const _config_0 = __getRuntimeConfig(configuration || {});
778778
const _config_1 = resolveClientEndpointParameters(_config_0);
779-
const _config_2 = resolveS3Config(_config_1, { session: [() => this, CreateSessionCommand] });
780-
const _config_3 = resolveUserAgentConfig(_config_2);
781-
const _config_4 = resolveRetryConfig(_config_3);
782-
const _config_5 = resolveRegionConfig(_config_4);
783-
const _config_6 = resolveHostHeaderConfig(_config_5);
784-
const _config_7 = resolveEndpointConfig(_config_6);
785-
const _config_8 = resolveAwsAuthConfig(_config_7);
779+
const _config_2 = resolveUserAgentConfig(_config_1);
780+
const _config_3 = resolveRetryConfig(_config_2);
781+
const _config_4 = resolveRegionConfig(_config_3);
782+
const _config_5 = resolveHostHeaderConfig(_config_4);
783+
const _config_6 = resolveEndpointConfig(_config_5);
784+
const _config_7 = resolveAwsAuthConfig(_config_6);
785+
const _config_8 = resolveS3Config(_config_7, { session: [() => this, CreateSessionCommand] });
786786
const _config_9 = resolveEventStreamSerdeConfig(_config_8);
787787
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
788788
super(_config_10);
789789
this.config = _config_10;
790-
this.middlewareStack.use(getValidateBucketNamePlugin(this.config));
791-
this.middlewareStack.use(getAddExpectContinuePlugin(this.config));
792-
this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config));
793-
this.middlewareStack.use(getS3ExpressPlugin(this.config));
794790
this.middlewareStack.use(getUserAgentPlugin(this.config));
795791
this.middlewareStack.use(getRetryPlugin(this.config));
796792
this.middlewareStack.use(getContentLengthPlugin(this.config));
797793
this.middlewareStack.use(getHostHeaderPlugin(this.config));
798794
this.middlewareStack.use(getLoggerPlugin(this.config));
799795
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
800796
this.middlewareStack.use(getAwsAuthPlugin(this.config));
797+
this.middlewareStack.use(getValidateBucketNamePlugin(this.config));
798+
this.middlewareStack.use(getAddExpectContinuePlugin(this.config));
799+
this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config));
800+
this.middlewareStack.use(getS3ExpressPlugin(this.config));
801801
}
802802

803803
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,12 @@ export class DeleteObjectsCommand extends $Command
306306
return [
307307
getSerdePlugin(config, this.serialize, this.deserialize),
308308
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
309-
getThrow200ExceptionsPlugin(config),
310309
getFlexibleChecksumsPlugin(config, {
311310
input: this.input,
312311
requestAlgorithmMember: "ChecksumAlgorithm",
313312
requestChecksumRequired: true,
314313
}),
314+
getThrow200ExceptionsPlugin(config),
315315
];
316316
})
317317
.s("AmazonS3", "DeleteObjects", {})

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,14 @@ export class GetObjectCommand extends $Command
353353
return [
354354
getSerdePlugin(config, this.serialize, this.deserialize),
355355
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
356-
getSsecPlugin(config),
357-
getS3ExpiresMiddlewarePlugin(config),
358356
getFlexibleChecksumsPlugin(config, {
359357
input: this.input,
360358
requestChecksumRequired: false,
361359
requestValidationModeMember: "ChecksumMode",
362360
responseAlgorithms: ["CRC32", "CRC32C", "SHA256", "SHA1"],
363361
}),
362+
getSsecPlugin(config),
363+
getS3ExpiresMiddlewarePlugin(config),
364364
];
365365
})
366366
.s("AmazonS3", "GetObject", {})

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ export class PutBucketOwnershipControlsCommand extends $Command
103103
return [
104104
getSerdePlugin(config, this.serialize, this.deserialize),
105105
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
106-
getFlexibleChecksumsPlugin(config, { input: this.input, requestChecksumRequired: true }),
106+
getFlexibleChecksumsPlugin(config, {
107+
input: this.input,
108+
requestChecksumRequired: true,
109+
}),
107110
];
108111
})
109112
.s("AmazonS3", "PutBucketOwnershipControls", {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ export class PutObjectAclCommand extends $Command
312312
return [
313313
getSerdePlugin(config, this.serialize, this.deserialize),
314314
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
315-
getThrow200ExceptionsPlugin(config),
316315
getFlexibleChecksumsPlugin(config, {
317316
input: this.input,
318317
requestAlgorithmMember: "ChecksumAlgorithm",
319318
requestChecksumRequired: true,
320319
}),
320+
getThrow200ExceptionsPlugin(config),
321321
];
322322
})
323323
.s("AmazonS3", "PutObjectAcl", {})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,14 +408,14 @@ export class PutObjectCommand extends $Command
408408
return [
409409
getSerdePlugin(config, this.serialize, this.deserialize),
410410
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
411-
getCheckContentLengthHeaderPlugin(config),
412-
getThrow200ExceptionsPlugin(config),
413-
getSsecPlugin(config),
414411
getFlexibleChecksumsPlugin(config, {
415412
input: this.input,
416413
requestAlgorithmMember: "ChecksumAlgorithm",
417414
requestChecksumRequired: false,
418415
}),
416+
getCheckContentLengthHeaderPlugin(config),
417+
getThrow200ExceptionsPlugin(config),
418+
getSsecPlugin(config),
419419
];
420420
})
421421
.s("AmazonS3", "PutObject", {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ export class PutObjectLegalHoldCommand extends $Command
9090
return [
9191
getSerdePlugin(config, this.serialize, this.deserialize),
9292
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
93-
getThrow200ExceptionsPlugin(config),
9493
getFlexibleChecksumsPlugin(config, {
9594
input: this.input,
9695
requestAlgorithmMember: "ChecksumAlgorithm",
9796
requestChecksumRequired: true,
9897
}),
98+
getThrow200ExceptionsPlugin(config),
9999
];
100100
})
101101
.s("AmazonS3", "PutObjectLegalHold", {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ export class PutObjectLockConfigurationCommand extends $Command
113113
return [
114114
getSerdePlugin(config, this.serialize, this.deserialize),
115115
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
116-
getThrow200ExceptionsPlugin(config),
117116
getFlexibleChecksumsPlugin(config, {
118117
input: this.input,
119118
requestAlgorithmMember: "ChecksumAlgorithm",
120119
requestChecksumRequired: true,
121120
}),
121+
getThrow200ExceptionsPlugin(config),
122122
];
123123
})
124124
.s("AmazonS3", "PutObjectLockConfiguration", {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ export class PutObjectRetentionCommand extends $Command
9393
return [
9494
getSerdePlugin(config, this.serialize, this.deserialize),
9595
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
96-
getThrow200ExceptionsPlugin(config),
9796
getFlexibleChecksumsPlugin(config, {
9897
input: this.input,
9998
requestAlgorithmMember: "ChecksumAlgorithm",
10099
requestChecksumRequired: true,
101100
}),
101+
getThrow200ExceptionsPlugin(config),
102102
];
103103
})
104104
.s("AmazonS3", "PutObjectRetention", {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ export class PutObjectTaggingCommand extends $Command
173173
return [
174174
getSerdePlugin(config, this.serialize, this.deserialize),
175175
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
176-
getThrow200ExceptionsPlugin(config),
177176
getFlexibleChecksumsPlugin(config, {
178177
input: this.input,
179178
requestAlgorithmMember: "ChecksumAlgorithm",
180179
requestChecksumRequired: true,
181180
}),
181+
getThrow200ExceptionsPlugin(config),
182182
];
183183
})
184184
.s("AmazonS3", "PutObjectTagging", {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ export class RestoreObjectCommand extends $Command
387387
return [
388388
getSerdePlugin(config, this.serialize, this.deserialize),
389389
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
390-
getThrow200ExceptionsPlugin(config),
391390
getFlexibleChecksumsPlugin(config, {
392391
input: this.input,
393392
requestAlgorithmMember: "ChecksumAlgorithm",
394393
requestChecksumRequired: false,
395394
}),
395+
getThrow200ExceptionsPlugin(config),
396396
];
397397
})
398398
.s("AmazonS3", "RestoreObject", {})

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,13 @@ export class UploadPartCommand extends $Command
293293
return [
294294
getSerdePlugin(config, this.serialize, this.deserialize),
295295
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
296-
getThrow200ExceptionsPlugin(config),
297-
getSsecPlugin(config),
298296
getFlexibleChecksumsPlugin(config, {
299297
input: this.input,
300298
requestAlgorithmMember: "ChecksumAlgorithm",
301299
requestChecksumRequired: false,
302300
}),
301+
getThrow200ExceptionsPlugin(config),
302+
getSsecPlugin(config),
303303
];
304304
})
305305
.s("AmazonS3", "UploadPart", {})

clients/client-sqs/src/SQSClient.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
260260
*/
261261
region?: string | __Provider<string>;
262262

263-
/**
264-
* A constructor for a class implementing the {@link __Checksum} interface
265-
* that computes MD5 hashes, or false to prevent MD5 computation.
266-
*/
267-
md5?: __ChecksumConstructor | __HashConstructor | false;
268-
269263
/**
270264
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
271265
* @internal
@@ -279,6 +273,12 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
279273
*/
280274
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
281275

276+
/**
277+
* A constructor for a class implementing the {@link __Checksum} interface
278+
* that computes MD5 hashes, or false to prevent MD5 computation.
279+
*/
280+
md5?: __ChecksumConstructor | __HashConstructor | false;
281+
282282
/**
283283
* Value for how many times a request will be made at most in case of retry.
284284
*/
@@ -312,12 +312,12 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
312312
*/
313313
export type SQSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
314314
ClientDefaults &
315-
QueueUrlInputConfig &
316315
UserAgentInputConfig &
317316
RetryInputConfig &
318317
RegionInputConfig &
319318
HostHeaderInputConfig &
320319
EndpointInputConfig<EndpointParameters> &
320+
QueueUrlInputConfig &
321321
HttpAuthSchemeInputConfig &
322322
ClientInputEndpointParameters;
323323
/**
@@ -333,12 +333,12 @@ export interface SQSClientConfig extends SQSClientConfigType {}
333333
export type SQSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
334334
Required<ClientDefaults> &
335335
RuntimeExtensionsConfig &
336-
QueueUrlResolvedConfig &
337336
UserAgentResolvedConfig &
338337
RetryResolvedConfig &
339338
RegionResolvedConfig &
340339
HostHeaderResolvedConfig &
341340
EndpointResolvedConfig<EndpointParameters> &
341+
QueueUrlResolvedConfig &
342342
HttpAuthSchemeResolvedConfig &
343343
ClientResolvedEndpointParameters;
344344
/**
@@ -437,23 +437,23 @@ export class SQSClient extends __Client<
437437
constructor(...[configuration]: __CheckOptionalClientConfig<SQSClientConfig>) {
438438
const _config_0 = __getRuntimeConfig(configuration || {});
439439
const _config_1 = resolveClientEndpointParameters(_config_0);
440-
const _config_2 = resolveQueueUrlConfig(_config_1);
441-
const _config_3 = resolveUserAgentConfig(_config_2);
442-
const _config_4 = resolveRetryConfig(_config_3);
443-
const _config_5 = resolveRegionConfig(_config_4);
444-
const _config_6 = resolveHostHeaderConfig(_config_5);
445-
const _config_7 = resolveEndpointConfig(_config_6);
440+
const _config_2 = resolveUserAgentConfig(_config_1);
441+
const _config_3 = resolveRetryConfig(_config_2);
442+
const _config_4 = resolveRegionConfig(_config_3);
443+
const _config_5 = resolveHostHeaderConfig(_config_4);
444+
const _config_6 = resolveEndpointConfig(_config_5);
445+
const _config_7 = resolveQueueUrlConfig(_config_6);
446446
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
447447
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
448448
super(_config_9);
449449
this.config = _config_9;
450-
this.middlewareStack.use(getQueueUrlPlugin(this.config));
451450
this.middlewareStack.use(getUserAgentPlugin(this.config));
452451
this.middlewareStack.use(getRetryPlugin(this.config));
453452
this.middlewareStack.use(getContentLengthPlugin(this.config));
454453
this.middlewareStack.use(getHostHeaderPlugin(this.config));
455454
this.middlewareStack.use(getLoggerPlugin(this.config));
456455
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
456+
this.middlewareStack.use(getQueueUrlPlugin(this.config));
457457
this.middlewareStack.use(
458458
getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
459459
httpAuthSchemeParametersProvider: defaultSQSHttpAuthSchemeParametersProvider,

clients/client-timestream-query/src/commands/CancelQueryCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ export class CancelQueryCommand extends $Command
9595
return [
9696
getSerdePlugin(config, this.serialize, this.deserialize),
9797
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
98-
getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
98+
getEndpointDiscoveryPlugin(config, {
99+
clientStack: cs,
100+
isDiscoveredEndpointRequired: true,
101+
options: o,
102+
}),
99103
];
100104
})
101105
.s("Timestream_20181101", "CancelQuery", {})

0 commit comments

Comments
 (0)