@aws-sdk/client-sesv2 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.defaultSESv2HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthScheme
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 defaultSESv2HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthS
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 { SESv2ClientResolvedConfig } from "../SESv2Client";
5
5
  /**
@@ -36,6 +36,13 @@ export declare const defaultSESv2HttpAuthSchemeProvider: SESv2HttpAuthSchemeProv
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
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
38
38
  }) => import("@smithy/types").EndpointV2;
39
39
  tls?: boolean | undefined;
40
40
  serviceConfiguredEndpoint?: undefined;
41
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
41
42
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
42
43
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SESv2HttpAuthSchemeProvider;
43
44
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
39
39
  }) => import("@smithy/types").EndpointV2;
40
40
  tls?: boolean | undefined;
41
41
  serviceConfiguredEndpoint?: undefined;
42
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
42
43
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
43
44
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SESv2HttpAuthSchemeProvider;
44
45
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -37,6 +37,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
37
37
  }) => import("@smithy/types").EndpointV2;
38
38
  tls?: boolean | undefined;
39
39
  serviceConfiguredEndpoint?: undefined;
40
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
40
41
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
42
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SESv2HttpAuthSchemeProvider;
42
43
  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 { SESv2ClientResolvedConfig } from "../SESv2Client";
@@ -37,12 +38,14 @@ export declare const defaultSESv2HttpAuthSchemeProvider: SESv2HttpAuthSchemeProv
37
38
  export interface HttpAuthSchemeInputConfig
38
39
  extends AwsSdkSigV4AuthInputConfig,
39
40
  AwsSdkSigV4AAuthInputConfig {
41
+ authSchemePreference?: string[] | Provider<string[]>;
40
42
  httpAuthSchemes?: HttpAuthScheme[];
41
43
  httpAuthSchemeProvider?: SESv2HttpAuthSchemeProvider;
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: SESv2HttpAuthSchemeProvider;
48
51
  }
@@ -72,6 +72,10 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
72
72
  ) => import("@smithy/types").EndpointV2;
73
73
  tls?: boolean | undefined;
74
74
  serviceConfiguredEndpoint?: undefined;
75
+ authSchemePreference?:
76
+ | string[]
77
+ | import("@smithy/types").Provider<string[]>
78
+ | undefined;
75
79
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
76
80
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SESv2HttpAuthSchemeProvider;
77
81
  credentials?:
@@ -76,6 +76,10 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
76
76
  ) => import("@smithy/types").EndpointV2;
77
77
  tls?: boolean | undefined;
78
78
  serviceConfiguredEndpoint?: undefined;
79
+ authSchemePreference?:
80
+ | string[]
81
+ | import("@smithy/types").Provider<string[]>
82
+ | undefined;
79
83
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
80
84
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SESv2HttpAuthSchemeProvider;
81
85
  credentials?:
@@ -76,6 +76,10 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
76
76
  ) => import("@smithy/types").EndpointV2;
77
77
  tls?: boolean | undefined;
78
78
  serviceConfiguredEndpoint?: undefined;
79
+ authSchemePreference?:
80
+ | string[]
81
+ | import("@smithy/types").Provider<string[]>
82
+ | undefined;
79
83
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
80
84
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SESv2HttpAuthSchemeProvider;
81
85
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sesv2",
3
3
  "description": "AWS SDK for JavaScript Sesv2 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-sesv2",
@@ -20,18 +20,18 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.787.0",
23
+ "@aws-sdk/core": "3.796.0",
24
+ "@aws-sdk/credential-provider-node": "3.797.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.787.0",
28
+ "@aws-sdk/middleware-user-agent": "3.796.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
- "@aws-sdk/signature-v4-multi-region": "3.775.0",
30
+ "@aws-sdk/signature-v4-multi-region": "3.796.0",
31
31
  "@aws-sdk/types": "3.775.0",
32
32
  "@aws-sdk/util-endpoints": "3.787.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.775.0",
34
- "@aws-sdk/util-user-agent-node": "3.787.0",
34
+ "@aws-sdk/util-user-agent-node": "3.796.0",
35
35
  "@smithy/config-resolver": "^4.1.0",
36
36
  "@smithy/core": "^3.2.0",
37
37
  "@smithy/fetch-http-handler": "^5.0.2",