@aws-sdk/client-sesv2 3.696.0 → 3.708.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.
@@ -2,8 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.defaultSESv2HttpAuthSchemeProvider = exports.defaultSESv2HttpAuthSchemeParametersProvider = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
7
  const util_middleware_1 = require("@smithy/util-middleware");
6
- const defaultSESv2HttpAuthSchemeParametersProvider = async (config, context, input) => {
8
+ const endpointResolver_1 = require("../endpoint/endpointResolver");
9
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
10
+ if (!input) {
11
+ throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
12
+ }
13
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
14
+ const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
15
+ ?.getEndpointParameterInstructions;
16
+ if (!instructionsFn) {
17
+ throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
18
+ }
19
+ const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
20
+ return Object.assign(defaultParameters, endpointParameters);
21
+ };
22
+ const _defaultSESv2HttpAuthSchemeParametersProvider = async (config, context, input) => {
7
23
  return {
8
24
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
25
  region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
@@ -12,7 +28,7 @@ const defaultSESv2HttpAuthSchemeParametersProvider = async (config, context, inp
12
28
  })(),
13
29
  };
14
30
  };
15
- exports.defaultSESv2HttpAuthSchemeParametersProvider = defaultSESv2HttpAuthSchemeParametersProvider;
31
+ exports.defaultSESv2HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSESv2HttpAuthSchemeParametersProvider);
16
32
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
17
33
  return {
18
34
  schemeId: "aws.auth#sigv4",
@@ -28,20 +44,84 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
28
44
  }),
29
45
  };
30
46
  }
31
- const defaultSESv2HttpAuthSchemeProvider = (authParameters) => {
47
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
48
+ return {
49
+ schemeId: "aws.auth#sigv4a",
50
+ signingProperties: {
51
+ name: "ses",
52
+ region: authParameters.region,
53
+ },
54
+ propertiesExtractor: (config, context) => ({
55
+ signingProperties: {
56
+ config,
57
+ context,
58
+ },
59
+ }),
60
+ };
61
+ }
62
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
63
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
64
+ const endpoint = defaultEndpointResolver(authParameters);
65
+ const authSchemes = endpoint.properties?.authSchemes;
66
+ if (!authSchemes) {
67
+ return defaultHttpAuthSchemeResolver(authParameters);
68
+ }
69
+ const options = [];
70
+ for (const scheme of authSchemes) {
71
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
72
+ const name = resolvedName.toLowerCase();
73
+ if (resolvedName !== name) {
74
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
75
+ }
76
+ let schemeId;
77
+ if (name === "sigv4a") {
78
+ schemeId = "aws.auth#sigv4a";
79
+ const sigv4Present = authSchemes.find((s) => {
80
+ const name = s.name.toLowerCase();
81
+ return name !== "sigv4a" && name.startsWith("sigv4");
82
+ });
83
+ if (!signature_v4_multi_region_1.signatureV4CrtContainer.CrtSignerV4 && sigv4Present) {
84
+ continue;
85
+ }
86
+ }
87
+ else if (name.startsWith("sigv4")) {
88
+ schemeId = "aws.auth#sigv4";
89
+ }
90
+ else {
91
+ throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
92
+ }
93
+ const createOption = createHttpAuthOptionFunctions[schemeId];
94
+ if (!createOption) {
95
+ throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
96
+ }
97
+ const option = createOption(authParameters);
98
+ option.schemeId = schemeId;
99
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
100
+ options.push(option);
101
+ }
102
+ return options;
103
+ };
104
+ return endpointRuleSetHttpAuthSchemeProvider;
105
+ };
106
+ const _defaultSESv2HttpAuthSchemeProvider = (authParameters) => {
32
107
  const options = [];
33
108
  switch (authParameters.operation) {
34
109
  default: {
35
110
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
111
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
36
112
  }
37
113
  }
38
114
  return options;
39
115
  };
40
- exports.defaultSESv2HttpAuthSchemeProvider = defaultSESv2HttpAuthSchemeProvider;
116
+ exports.defaultSESv2HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultSESv2HttpAuthSchemeProvider, {
117
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
118
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
119
+ });
41
120
  const resolveHttpAuthSchemeConfig = (config) => {
42
121
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
122
+ const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0);
43
123
  return {
44
- ...config_0,
124
+ ...config_1,
45
125
  };
46
126
  };
47
127
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -320,7 +320,8 @@ var _SESv2Client = class _SESv2Client extends import_smithy_client.Client {
320
320
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
321
321
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSESv2HttpAuthSchemeParametersProvider,
322
322
  identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
323
- "aws.auth#sigv4": config.credentials
323
+ "aws.auth#sigv4": config.credentials,
324
+ "aws.auth#sigv4a": config.credentials
324
325
  })
325
326
  })
326
327
  );
@@ -41,6 +41,7 @@ const getRuntimeConfig = (config) => {
41
41
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
42
42
  }),
43
43
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
44
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS),
44
45
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
46
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
47
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -23,9 +24,15 @@ const getRuntimeConfig = (config) => {
23
24
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
24
25
  signer: new core_1.AwsSdkSigV4Signer(),
25
26
  },
27
+ {
28
+ schemeId: "aws.auth#sigv4a",
29
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
30
+ signer: new core_1.AwsSdkSigV4ASigner(),
31
+ },
26
32
  ],
27
33
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
28
34
  serviceId: config?.serviceId ?? "SESv2",
35
+ signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
31
38
  utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
@@ -36,6 +36,7 @@ export class SESv2Client extends __Client {
36
36
  httpAuthSchemeParametersProvider: defaultSESv2HttpAuthSchemeParametersProvider,
37
37
  identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
38
38
  "aws.auth#sigv4": config.credentials,
39
+ "aws.auth#sigv4a": config.credentials,
39
40
  }),
40
41
  }));
41
42
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
@@ -1,6 +1,22 @@
1
- import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
1
+ import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { signatureV4CrtContainer } from "@aws-sdk/signature-v4-multi-region";
3
+ import { resolveParams } from "@smithy/middleware-endpoint";
2
4
  import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
- export const defaultSESv2HttpAuthSchemeParametersProvider = async (config, context, input) => {
5
+ import { defaultEndpointResolver } from "../endpoint/endpointResolver";
6
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
7
+ if (!input) {
8
+ throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
9
+ }
10
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
11
+ const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
12
+ ?.getEndpointParameterInstructions;
13
+ if (!instructionsFn) {
14
+ throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
15
+ }
16
+ const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
17
+ return Object.assign(defaultParameters, endpointParameters);
18
+ };
19
+ const _defaultSESv2HttpAuthSchemeParametersProvider = async (config, context, input) => {
4
20
  return {
5
21
  operation: getSmithyContext(context).operation,
6
22
  region: (await normalizeProvider(config.region)()) ||
@@ -9,6 +25,7 @@ export const defaultSESv2HttpAuthSchemeParametersProvider = async (config, conte
9
25
  })(),
10
26
  };
11
27
  };
28
+ export const defaultSESv2HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSESv2HttpAuthSchemeParametersProvider);
12
29
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
13
30
  return {
14
31
  schemeId: "aws.auth#sigv4",
@@ -24,18 +41,83 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
24
41
  }),
25
42
  };
26
43
  }
27
- export const defaultSESv2HttpAuthSchemeProvider = (authParameters) => {
44
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
45
+ return {
46
+ schemeId: "aws.auth#sigv4a",
47
+ signingProperties: {
48
+ name: "ses",
49
+ region: authParameters.region,
50
+ },
51
+ propertiesExtractor: (config, context) => ({
52
+ signingProperties: {
53
+ config,
54
+ context,
55
+ },
56
+ }),
57
+ };
58
+ }
59
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
60
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
61
+ const endpoint = defaultEndpointResolver(authParameters);
62
+ const authSchemes = endpoint.properties?.authSchemes;
63
+ if (!authSchemes) {
64
+ return defaultHttpAuthSchemeResolver(authParameters);
65
+ }
66
+ const options = [];
67
+ for (const scheme of authSchemes) {
68
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
69
+ const name = resolvedName.toLowerCase();
70
+ if (resolvedName !== name) {
71
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
72
+ }
73
+ let schemeId;
74
+ if (name === "sigv4a") {
75
+ schemeId = "aws.auth#sigv4a";
76
+ const sigv4Present = authSchemes.find((s) => {
77
+ const name = s.name.toLowerCase();
78
+ return name !== "sigv4a" && name.startsWith("sigv4");
79
+ });
80
+ if (!signatureV4CrtContainer.CrtSignerV4 && sigv4Present) {
81
+ continue;
82
+ }
83
+ }
84
+ else if (name.startsWith("sigv4")) {
85
+ schemeId = "aws.auth#sigv4";
86
+ }
87
+ else {
88
+ throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
89
+ }
90
+ const createOption = createHttpAuthOptionFunctions[schemeId];
91
+ if (!createOption) {
92
+ throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
93
+ }
94
+ const option = createOption(authParameters);
95
+ option.schemeId = schemeId;
96
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
97
+ options.push(option);
98
+ }
99
+ return options;
100
+ };
101
+ return endpointRuleSetHttpAuthSchemeProvider;
102
+ };
103
+ const _defaultSESv2HttpAuthSchemeProvider = (authParameters) => {
28
104
  const options = [];
29
105
  switch (authParameters.operation) {
30
106
  default: {
31
107
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
108
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
32
109
  }
33
110
  }
34
111
  return options;
35
112
  };
113
+ export const defaultSESv2HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSESv2HttpAuthSchemeProvider, {
114
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
115
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
116
+ });
36
117
  export const resolveHttpAuthSchemeConfig = (config) => {
37
118
  const config_0 = resolveAwsSdkSigV4Config(config);
119
+ const config_1 = resolveAwsSdkSigV4AConfig(config_0);
38
120
  return {
39
- ...config_0,
121
+ ...config_1,
40
122
  };
41
123
  };
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { NODE_SIGV4A_CONFIG_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
4
  import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
@@ -37,6 +37,7 @@ export const getRuntimeConfig = (config) => {
37
37
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
38
  }),
39
39
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS),
40
41
  streamCollector: config?.streamCollector ?? streamCollector,
41
42
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
43
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
@@ -1,4 +1,5 @@
1
- import { AwsSdkSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -20,9 +21,15 @@ export const getRuntimeConfig = (config) => {
20
21
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
21
22
  signer: new AwsSdkSigV4Signer(),
22
23
  },
24
+ {
25
+ schemeId: "aws.auth#sigv4a",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
27
+ signer: new AwsSdkSigV4ASigner(),
28
+ },
23
29
  ],
24
30
  logger: config?.logger ?? new NoOpLogger(),
25
31
  serviceId: config?.serviceId ?? "SESv2",
32
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
28
35
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1,10 +1,17 @@
1
- import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
2
  import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
3
4
  import { SESv2ClientResolvedConfig } from "../SESv2Client";
4
5
  /**
5
6
  * @internal
6
7
  */
7
- export interface SESv2HttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ interface _SESv2HttpAuthSchemeParameters extends HttpAuthSchemeParameters {
9
+ region?: string;
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ export interface SESv2HttpAuthSchemeParameters extends _SESv2HttpAuthSchemeParameters, EndpointParameters {
8
15
  region?: string;
9
16
  }
10
17
  /**
@@ -15,7 +22,7 @@ export interface SESv2HttpAuthSchemeParametersProvider extends HttpAuthSchemePar
15
22
  /**
16
23
  * @internal
17
24
  */
18
- export declare const defaultSESv2HttpAuthSchemeParametersProvider: (config: SESv2ClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SESv2HttpAuthSchemeParameters>;
25
+ export declare const defaultSESv2HttpAuthSchemeParametersProvider: SESv2HttpAuthSchemeParametersProvider;
19
26
  /**
20
27
  * @internal
21
28
  */
@@ -28,7 +35,7 @@ export declare const defaultSESv2HttpAuthSchemeProvider: SESv2HttpAuthSchemeProv
28
35
  /**
29
36
  * @internal
30
37
  */
31
- export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
38
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig {
32
39
  /**
33
40
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
41
  * @internal
@@ -43,7 +50,7 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
43
50
  /**
44
51
  * @internal
45
52
  */
46
- export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig {
47
54
  /**
48
55
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
56
  * @internal
@@ -58,4 +65,5 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
58
65
  /**
59
66
  * @internal
60
67
  */
61
- export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
68
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved & AwsSdkSigV4APreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
69
+ export {};
@@ -44,5 +44,6 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
44
44
  signingEscapePath?: boolean | undefined;
45
45
  systemClockOffset?: number | undefined;
46
46
  signingRegion?: string | undefined;
47
- signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
47
+ signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
48
+ sigv4aSigningRegionSet?: string[] | import("@smithy/types").Provider<string[] | undefined> | undefined;
48
49
  };
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
14
14
  requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
+ sigv4aSigningRegionSet: string[] | import("@smithy/types").Provider<string[] | undefined>;
17
18
  streamCollector: import("@smithy/types").StreamCollector;
18
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -44,5 +45,5 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
44
45
  signingEscapePath?: boolean | undefined;
45
46
  systemClockOffset?: number | undefined;
46
47
  signingRegion?: string | undefined;
47
- signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
48
+ signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
48
49
  };
@@ -43,5 +43,6 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
43
43
  signingEscapePath?: boolean | undefined;
44
44
  systemClockOffset?: number | undefined;
45
45
  signingRegion?: string | undefined;
46
- signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
46
+ signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
47
+ sigv4aSigningRegionSet?: string[] | import("@smithy/types").Provider<string[] | undefined> | undefined;
47
48
  };
@@ -1,3 +1,4 @@
1
+ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
1
2
  import { SESv2ClientConfig } from "./SESv2Client";
2
3
  /**
3
4
  * @internal
@@ -15,6 +16,7 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
15
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
17
  logger: import("@smithy/types").Logger;
17
18
  serviceId: string;
19
+ signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof SignatureV4MultiRegion;
18
20
  urlParser: import("@smithy/types").UrlParser;
19
21
  utf8Decoder: import("@smithy/types").Decoder;
20
22
  utf8Encoder: (input: string | Uint8Array) => string;
@@ -1,4 +1,7 @@
1
1
  import {
2
+ AwsSdkSigV4AAuthInputConfig,
3
+ AwsSdkSigV4AAuthResolvedConfig,
4
+ AwsSdkSigV4APreviouslyResolved,
2
5
  AwsSdkSigV4AuthInputConfig,
3
6
  AwsSdkSigV4AuthResolvedConfig,
4
7
  AwsSdkSigV4PreviouslyResolved,
@@ -10,9 +13,14 @@ import {
10
13
  HttpAuthSchemeParametersProvider,
11
14
  HttpAuthSchemeProvider,
12
15
  } from "@smithy/types";
16
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
13
17
  import { SESv2ClientResolvedConfig } from "../SESv2Client";
18
+ interface _SESv2HttpAuthSchemeParameters extends HttpAuthSchemeParameters {
19
+ region?: string;
20
+ }
14
21
  export interface SESv2HttpAuthSchemeParameters
15
- extends HttpAuthSchemeParameters {
22
+ extends _SESv2HttpAuthSchemeParameters,
23
+ EndpointParameters {
16
24
  region?: string;
17
25
  }
18
26
  export interface SESv2HttpAuthSchemeParametersProvider
@@ -22,23 +30,26 @@ export interface SESv2HttpAuthSchemeParametersProvider
22
30
  SESv2HttpAuthSchemeParameters,
23
31
  object
24
32
  > {}
25
- export declare const defaultSESv2HttpAuthSchemeParametersProvider: (
26
- config: SESv2ClientResolvedConfig,
27
- context: HandlerExecutionContext,
28
- input: object
29
- ) => Promise<SESv2HttpAuthSchemeParameters>;
33
+ export declare const defaultSESv2HttpAuthSchemeParametersProvider: SESv2HttpAuthSchemeParametersProvider;
30
34
  export interface SESv2HttpAuthSchemeProvider
31
35
  extends HttpAuthSchemeProvider<SESv2HttpAuthSchemeParameters> {}
32
36
  export declare const defaultSESv2HttpAuthSchemeProvider: SESv2HttpAuthSchemeProvider;
33
- export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
37
+ export interface HttpAuthSchemeInputConfig
38
+ extends AwsSdkSigV4AuthInputConfig,
39
+ AwsSdkSigV4AAuthInputConfig {
34
40
  httpAuthSchemes?: HttpAuthScheme[];
35
41
  httpAuthSchemeProvider?: SESv2HttpAuthSchemeProvider;
36
42
  }
37
43
  export interface HttpAuthSchemeResolvedConfig
38
- extends AwsSdkSigV4AuthResolvedConfig {
44
+ extends AwsSdkSigV4AuthResolvedConfig,
45
+ AwsSdkSigV4AAuthResolvedConfig {
39
46
  readonly httpAuthSchemes: HttpAuthScheme[];
40
47
  readonly httpAuthSchemeProvider: SESv2HttpAuthSchemeProvider;
41
48
  }
42
49
  export declare const resolveHttpAuthSchemeConfig: <T>(
43
- config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
50
+ config: T &
51
+ HttpAuthSchemeInputConfig &
52
+ AwsSdkSigV4PreviouslyResolved &
53
+ AwsSdkSigV4APreviouslyResolved
44
54
  ) => T & HttpAuthSchemeResolvedConfig;
55
+ export {};
@@ -84,10 +84,14 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
84
84
  signingEscapePath?: boolean | undefined;
85
85
  systemClockOffset?: number | undefined;
86
86
  signingRegion?: string | undefined;
87
- signerConstructor?:
87
+ signerConstructor:
88
88
  | (new (
89
89
  options: import("@smithy/signature-v4").SignatureV4Init &
90
90
  import("@smithy/signature-v4").SignatureV4CryptoInit
91
91
  ) => import("@smithy/types").RequestSigner)
92
+ | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
93
+ sigv4aSigningRegionSet?:
94
+ | string[]
95
+ | import("@smithy/types").Provider<string[] | undefined>
92
96
  | undefined;
93
97
  };
@@ -25,6 +25,9 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
25
25
  | import("@smithy/protocol-http").HttpHandler<any>;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
27
27
  sha256: import("@smithy/types").HashConstructor;
28
+ sigv4aSigningRegionSet:
29
+ | string[]
30
+ | import("@smithy/types").Provider<string[] | undefined>;
28
31
  streamCollector: import("@smithy/types").StreamCollector;
29
32
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
33
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -85,10 +88,10 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
85
88
  signingEscapePath?: boolean | undefined;
86
89
  systemClockOffset?: number | undefined;
87
90
  signingRegion?: string | undefined;
88
- signerConstructor?:
91
+ signerConstructor:
89
92
  | (new (
90
93
  options: import("@smithy/signature-v4").SignatureV4Init &
91
94
  import("@smithy/signature-v4").SignatureV4CryptoInit
92
95
  ) => import("@smithy/types").RequestSigner)
93
- | undefined;
96
+ | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
94
97
  };
@@ -78,10 +78,14 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
78
78
  signingEscapePath?: boolean | undefined;
79
79
  systemClockOffset?: number | undefined;
80
80
  signingRegion?: string | undefined;
81
- signerConstructor?:
81
+ signerConstructor:
82
82
  | (new (
83
83
  options: import("@smithy/signature-v4").SignatureV4Init &
84
84
  import("@smithy/signature-v4").SignatureV4CryptoInit
85
85
  ) => import("@smithy/types").RequestSigner)
86
+ | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
87
+ sigv4aSigningRegionSet?:
88
+ | string[]
89
+ | import("@smithy/types").Provider<string[] | undefined>
86
90
  | undefined;
87
91
  };
@@ -1,3 +1,4 @@
1
+ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
1
2
  import { SESv2ClientConfig } from "./SESv2Client";
2
3
  export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
3
4
  apiVersion: string;
@@ -15,6 +16,12 @@ export declare const getRuntimeConfig: (config: SESv2ClientConfig) => {
15
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
17
  logger: import("@smithy/types").Logger;
17
18
  serviceId: string;
19
+ signerConstructor:
20
+ | (new (
21
+ options: import("@smithy/signature-v4").SignatureV4Init &
22
+ import("@smithy/signature-v4").SignatureV4CryptoInit
23
+ ) => import("@smithy/types").RequestSigner)
24
+ | typeof SignatureV4MultiRegion;
18
25
  urlParser: import("@smithy/types").UrlParser;
19
26
  utf8Decoder: import("@smithy/types").Decoder;
20
27
  utf8Encoder: (input: string | Uint8Array) => string;
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.696.0",
4
+ "version": "3.708.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,15 +20,16 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.696.0",
24
- "@aws-sdk/client-sts": "3.696.0",
23
+ "@aws-sdk/client-sso-oidc": "3.699.0",
24
+ "@aws-sdk/client-sts": "3.699.0",
25
25
  "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.696.0",
26
+ "@aws-sdk/credential-provider-node": "3.699.0",
27
27
  "@aws-sdk/middleware-host-header": "3.696.0",
28
28
  "@aws-sdk/middleware-logger": "3.696.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.696.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.696.0",
31
31
  "@aws-sdk/region-config-resolver": "3.696.0",
32
+ "@aws-sdk/signature-v4-multi-region": "3.696.0",
32
33
  "@aws-sdk/types": "3.696.0",
33
34
  "@aws-sdk/util-endpoints": "3.696.0",
34
35
  "@aws-sdk/util-user-agent-browser": "3.696.0",