Skip to content
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions clients/client-s3/src/endpoint/EndpointParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2,
* @public
*/
export interface ClientInputEndpointParameters {
clientContextParams?: {
disableS3ExpressSessionAuth?: boolean | undefined | Provider<boolean | undefined>;
};
region?: string | undefined | Provider<string | undefined>;
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
Expand All @@ -24,6 +27,11 @@ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameter
defaultSigningName: string;
};

/**
* @internal
*/
const clientContextParamDefaults = {} as const;

/**
* @internal
*/
Expand All @@ -38,6 +46,7 @@ export const resolveClientEndpointParameters = <T>(
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false,
defaultSigningName: "s3",
clientContextParams: options.clientContextParams ?? {},
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const initializeWithMaximalConfiguration = () => {
httpAuthSchemes: [],
httpAuthSchemeProvider: (() => null) as unknown as HttpAuthSchemeProvider<any>,
serviceConfiguredEndpoint: null as never,
clientContextParams: {},
// END internal options

// S3 specific options below
Expand Down
4 changes: 2 additions & 2 deletions private/weather/src/auth/httpAuthExtensionConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// smithy-typescript generated code
import {
type ApiKeyIdentity,
type ApiKeyIdentityProvider,
type HttpAuthScheme,
ApiKeyIdentity,
ApiKeyIdentityProvider,
AwsCredentialIdentity,
AwsCredentialIdentityProvider,
TokenIdentity,
Expand Down
4 changes: 2 additions & 2 deletions private/weather/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// smithy-typescript generated code
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
import {
type ApiKeyIdentity,
type ApiKeyIdentityProvider,
type HandlerExecutionContext,
type HttpAuthOption,
type HttpAuthScheme,
type HttpAuthSchemeParameters,
type HttpAuthSchemeParametersProvider,
type HttpAuthSchemeProvider,
type Provider,
ApiKeyIdentity,
ApiKeyIdentityProvider,
AwsCredentialIdentity,
AwsCredentialIdentityProvider,
HttpApiKeyAuthLocation,
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-clients/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
module.exports = {
// Use full commit hash as we explicitly fetch it.
// Comparison link (update with previous hash):
// https://github.com/smithy-lang/smithy-typescript/compare/bbdb09131e307af317f3a6a6ee09e895749ea749...27f444b8aa045e37abfa811577fa3ed7d921516a
SMITHY_TS_COMMIT: "27f444b8aa045e37abfa811577fa3ed7d921516a",
// https://github.com/smithy-lang/smithy-typescript/compare/27f444b8aa045e37abfa811577fa3ed7d921516a...76d7994ef3f8373bb866a60e7ef87adca147a2f0
SMITHY_TS_COMMIT: "76d7994ef3f8373bb866a60e7ef87adca147a2f0",
};

if (module.exports.SMITHY_TS_COMMIT.length < 40) {
Expand Down
Loading