@aws-sdk/client-eventbridge 3.796.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.defaultEventBridgeHttpAuthSchemeProvider = createEndpointRuleSetHttpAuth
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 defaultEventBridgeHttpAuthSchemeProvider = createEndpointRuleSetHtt
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 { EventBridgeClientResolvedConfig } from "../EventBridgeClient";
5
5
  /**
@@ -36,6 +36,13 @@ export declare const defaultEventBridgeHttpAuthSchemeProvider: EventBridgeHttpAu
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: EventBridgeClientConfig) => {
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").EventBridgeHttpAuthSchemeProvider;
43
44
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
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").EventBridgeHttpAuthSchemeProvider;
44
45
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -37,6 +37,7 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
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").EventBridgeHttpAuthSchemeProvider;
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 { EventBridgeClientResolvedConfig } from "../EventBridgeClient";
@@ -38,12 +39,14 @@ export declare const defaultEventBridgeHttpAuthSchemeProvider: EventBridgeHttpAu
38
39
  export interface HttpAuthSchemeInputConfig
39
40
  extends AwsSdkSigV4AuthInputConfig,
40
41
  AwsSdkSigV4AAuthInputConfig {
42
+ authSchemePreference?: string[] | Provider<string[]>;
41
43
  httpAuthSchemes?: HttpAuthScheme[];
42
44
  httpAuthSchemeProvider?: EventBridgeHttpAuthSchemeProvider;
43
45
  }
44
46
  export interface HttpAuthSchemeResolvedConfig
45
47
  extends AwsSdkSigV4AuthResolvedConfig,
46
48
  AwsSdkSigV4AAuthResolvedConfig {
49
+ readonly authSchemePreference: Provider<string[]>;
47
50
  readonly httpAuthSchemes: HttpAuthScheme[];
48
51
  readonly httpAuthSchemeProvider: EventBridgeHttpAuthSchemeProvider;
49
52
  }
@@ -72,6 +72,10 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
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").EventBridgeHttpAuthSchemeProvider;
77
81
  credentials?:
@@ -76,6 +76,10 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
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").EventBridgeHttpAuthSchemeProvider;
81
85
  credentials?:
@@ -76,6 +76,10 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
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").EventBridgeHttpAuthSchemeProvider;
81
85
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-eventbridge",
3
3
  "description": "AWS SDK for JavaScript Eventbridge Client for Node.js, Browser and React Native",
4
- "version": "3.796.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-eventbridge",
@@ -23,7 +23,7 @@
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
25
  "@aws-sdk/core": "3.796.0",
26
- "@aws-sdk/credential-provider-node": "3.796.0",
26
+ "@aws-sdk/credential-provider-node": "3.797.0",
27
27
  "@aws-sdk/middleware-host-header": "3.775.0",
28
28
  "@aws-sdk/middleware-logger": "3.775.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.775.0",