@aws-sdk/client-s3 3.787.0 → 3.797.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,6 +120,8 @@ exports.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemePro
120
120
  const resolveHttpAuthSchemeConfig = (config) => {
121
121
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
122
122
  const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0);
123
- return Object.assign(config_1, {});
123
+ return Object.assign(config_1, {
124
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
125
+ });
124
126
  };
125
127
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -117,5 +117,7 @@ export const defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSche
117
117
  export const resolveHttpAuthSchemeConfig = (config) => {
118
118
  const config_0 = resolveAwsSdkSigV4Config(config);
119
119
  const config_1 = resolveAwsSdkSigV4AConfig(config_0);
120
- return Object.assign(config_1, {});
120
+ return Object.assign(config_1, {
121
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
122
+ });
121
123
  };
@@ -1,5 +1,5 @@
1
1
  import { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
- import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
3
  import { EndpointParameters } from "../endpoint/EndpointParameters";
4
4
  import { S3ClientResolvedConfig } from "../S3Client";
5
5
  /**
@@ -36,6 +36,13 @@ export declare const defaultS3HttpAuthSchemeProvider: S3HttpAuthSchemeProvider;
36
36
  * @internal
37
37
  */
38
38
  export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig {
39
+ /**
40
+ * A comma-separated list of case-sensitive auth scheme names.
41
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
42
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
43
+ * @public
44
+ */
45
+ authSchemePreference?: string[] | Provider<string[]>;
39
46
  /**
40
47
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
48
  * @internal
@@ -51,6 +58,13 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, A
51
58
  * @internal
52
59
  */
53
60
  export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig {
61
+ /**
62
+ * A comma-separated list of case-sensitive auth scheme names.
63
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
64
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
65
+ * @public
66
+ */
67
+ readonly authSchemePreference: Provider<string[]>;
54
68
  /**
55
69
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
56
70
  * @internal
@@ -50,6 +50,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
50
50
  }) => import("@smithy/types").EndpointV2;
51
51
  tls?: boolean | undefined;
52
52
  serviceConfiguredEndpoint?: undefined;
53
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
53
54
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
54
55
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
55
56
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -53,6 +53,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
53
53
  }) => import("@aws-sdk/types").EndpointV2;
54
54
  tls?: boolean | undefined;
55
55
  serviceConfiguredEndpoint?: undefined;
56
+ authSchemePreference?: string[] | import("@aws-sdk/types").Provider<string[]> | undefined;
56
57
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
57
58
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
58
59
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").AwsCredentialIdentityProvider | undefined;
@@ -49,6 +49,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
49
49
  }) => import("@smithy/types").EndpointV2;
50
50
  tls?: boolean | undefined;
51
51
  serviceConfiguredEndpoint?: undefined;
52
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
52
53
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
53
54
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
54
55
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -12,6 +12,7 @@ import {
12
12
  HttpAuthSchemeParameters,
13
13
  HttpAuthSchemeParametersProvider,
14
14
  HttpAuthSchemeProvider,
15
+ Provider,
15
16
  } from "@smithy/types";
16
17
  import { EndpointParameters } from "../endpoint/EndpointParameters";
17
18
  import { S3ClientResolvedConfig } from "../S3Client";
@@ -37,12 +38,14 @@ export declare const defaultS3HttpAuthSchemeProvider: S3HttpAuthSchemeProvider;
37
38
  export interface HttpAuthSchemeInputConfig
38
39
  extends AwsSdkSigV4AuthInputConfig,
39
40
  AwsSdkSigV4AAuthInputConfig {
41
+ authSchemePreference?: string[] | Provider<string[]>;
40
42
  httpAuthSchemes?: HttpAuthScheme[];
41
43
  httpAuthSchemeProvider?: S3HttpAuthSchemeProvider;
42
44
  }
43
45
  export interface HttpAuthSchemeResolvedConfig
44
46
  extends AwsSdkSigV4AuthResolvedConfig,
45
47
  AwsSdkSigV4AAuthResolvedConfig {
48
+ readonly authSchemePreference: Provider<string[]>;
46
49
  readonly httpAuthSchemes: HttpAuthScheme[];
47
50
  readonly httpAuthSchemeProvider: S3HttpAuthSchemeProvider;
48
51
  }
@@ -99,6 +99,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
99
99
  ) => import("@smithy/types").EndpointV2;
100
100
  tls?: boolean | undefined;
101
101
  serviceConfiguredEndpoint?: undefined;
102
+ authSchemePreference?:
103
+ | string[]
104
+ | import("@smithy/types").Provider<string[]>
105
+ | undefined;
102
106
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
103
107
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
104
108
  credentials?:
@@ -109,6 +109,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
109
109
  ) => import("@aws-sdk/types").EndpointV2;
110
110
  tls?: boolean | undefined;
111
111
  serviceConfiguredEndpoint?: undefined;
112
+ authSchemePreference?:
113
+ | string[]
114
+ | import("@aws-sdk/types").Provider<string[]>
115
+ | undefined;
112
116
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
113
117
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
114
118
  credentials?:
@@ -103,6 +103,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
103
103
  ) => import("@smithy/types").EndpointV2;
104
104
  tls?: boolean | undefined;
105
105
  serviceConfiguredEndpoint?: undefined;
106
+ authSchemePreference?:
107
+ | string[]
108
+ | import("@smithy/types").Provider<string[]>
109
+ | undefined;
106
110
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
107
111
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
108
112
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.787.0",
4
+ "version": "3.797.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -27,24 +27,24 @@
27
27
  "@aws-crypto/sha1-browser": "5.2.0",
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "3.775.0",
31
- "@aws-sdk/credential-provider-node": "3.787.0",
30
+ "@aws-sdk/core": "3.796.0",
31
+ "@aws-sdk/credential-provider-node": "3.797.0",
32
32
  "@aws-sdk/middleware-bucket-endpoint": "3.775.0",
33
33
  "@aws-sdk/middleware-expect-continue": "3.775.0",
34
- "@aws-sdk/middleware-flexible-checksums": "3.787.0",
34
+ "@aws-sdk/middleware-flexible-checksums": "3.796.0",
35
35
  "@aws-sdk/middleware-host-header": "3.775.0",
36
36
  "@aws-sdk/middleware-location-constraint": "3.775.0",
37
37
  "@aws-sdk/middleware-logger": "3.775.0",
38
38
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
39
- "@aws-sdk/middleware-sdk-s3": "3.775.0",
39
+ "@aws-sdk/middleware-sdk-s3": "3.796.0",
40
40
  "@aws-sdk/middleware-ssec": "3.775.0",
41
- "@aws-sdk/middleware-user-agent": "3.787.0",
41
+ "@aws-sdk/middleware-user-agent": "3.796.0",
42
42
  "@aws-sdk/region-config-resolver": "3.775.0",
43
- "@aws-sdk/signature-v4-multi-region": "3.775.0",
43
+ "@aws-sdk/signature-v4-multi-region": "3.796.0",
44
44
  "@aws-sdk/types": "3.775.0",
45
45
  "@aws-sdk/util-endpoints": "3.787.0",
46
46
  "@aws-sdk/util-user-agent-browser": "3.775.0",
47
- "@aws-sdk/util-user-agent-node": "3.787.0",
47
+ "@aws-sdk/util-user-agent-node": "3.796.0",
48
48
  "@aws-sdk/xml-builder": "3.775.0",
49
49
  "@smithy/config-resolver": "^4.1.0",
50
50
  "@smithy/core": "^3.2.0",
@@ -82,7 +82,7 @@
82
82
  "tslib": "^2.6.2"
83
83
  },
84
84
  "devDependencies": {
85
- "@aws-sdk/signature-v4-crt": "3.787.0",
85
+ "@aws-sdk/signature-v4-crt": "3.796.0",
86
86
  "@tsconfig/node18": "18.2.4",
87
87
  "@types/node": "^18.19.69",
88
88
  "concurrently": "7.0.0",