@aws-sdk/client-eventbridge 3.622.0 → 3.623.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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist-cjs/index.js +109 -56
- package/dist-cjs/runtimeConfig.shared.js +15 -0
- package/dist-es/EventBridgeClient.js +11 -3
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +122 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/EventBridgeClient.d.ts +6 -6
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +69 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +3 -1
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/EventBridgeClient.d.ts +8 -8
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
} from "@smithy/types";
|
|
13
|
+
import { EndpointParameters } from "../endpoint/EndpointParameters";
|
|
14
|
+
import { EventBridgeClientResolvedConfig } from "../EventBridgeClient";
|
|
15
|
+
interface _EventBridgeHttpAuthSchemeParameters
|
|
16
|
+
extends HttpAuthSchemeParameters {
|
|
17
|
+
region?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface EventBridgeHttpAuthSchemeParameters
|
|
20
|
+
extends _EventBridgeHttpAuthSchemeParameters,
|
|
21
|
+
EndpointParameters {
|
|
22
|
+
region?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EventBridgeHttpAuthSchemeParametersProvider
|
|
25
|
+
extends HttpAuthSchemeParametersProvider<
|
|
26
|
+
EventBridgeClientResolvedConfig,
|
|
27
|
+
HandlerExecutionContext,
|
|
28
|
+
EventBridgeHttpAuthSchemeParameters,
|
|
29
|
+
object
|
|
30
|
+
> {}
|
|
31
|
+
export declare const defaultEventBridgeHttpAuthSchemeParametersProvider: EventBridgeHttpAuthSchemeParametersProvider;
|
|
32
|
+
export interface EventBridgeHttpAuthSchemeProvider
|
|
33
|
+
extends HttpAuthSchemeProvider<EventBridgeHttpAuthSchemeParameters> {}
|
|
34
|
+
export declare const defaultEventBridgeHttpAuthSchemeProvider: EventBridgeHttpAuthSchemeProvider;
|
|
35
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
httpAuthSchemeProvider?: EventBridgeHttpAuthSchemeProvider;
|
|
38
|
+
}
|
|
39
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
40
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
41
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
42
|
+
readonly httpAuthSchemeProvider: EventBridgeHttpAuthSchemeProvider;
|
|
43
|
+
}
|
|
44
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
45
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
46
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
|
47
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
export interface EventBridgeExtensionConfiguration
|
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
|
6
7
|
DefaultExtensionConfiguration,
|
|
7
|
-
AwsRegionExtensionConfiguration
|
|
8
|
+
AwsRegionExtensionConfiguration,
|
|
9
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider: (
|
|
10
10
|
input: any
|
|
11
|
-
) => import("@smithy/types").
|
|
11
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
13
13
|
import("@smithy/types").UserAgent
|
|
14
14
|
>;
|
|
@@ -61,11 +61,11 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
|
|
|
61
61
|
}
|
|
62
62
|
) => import("@smithy/types").EndpointV2;
|
|
63
63
|
tls?: boolean | undefined;
|
|
64
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
65
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EventBridgeHttpAuthSchemeProvider;
|
|
64
66
|
credentials?:
|
|
65
67
|
| import("@smithy/types").AwsCredentialIdentity
|
|
66
|
-
| import("@smithy/types").
|
|
67
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
68
|
-
>
|
|
68
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
69
69
|
| undefined;
|
|
70
70
|
signer?:
|
|
71
71
|
| import("@smithy/types").RequestSigner
|
|
@@ -65,11 +65,11 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
|
|
|
65
65
|
}
|
|
66
66
|
) => import("@smithy/types").EndpointV2;
|
|
67
67
|
tls?: boolean | undefined;
|
|
68
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
69
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EventBridgeHttpAuthSchemeProvider;
|
|
68
70
|
credentials?:
|
|
69
71
|
| import("@smithy/types").AwsCredentialIdentity
|
|
70
|
-
| import("@smithy/types").
|
|
71
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
72
|
-
>
|
|
72
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
73
73
|
| undefined;
|
|
74
74
|
signer?:
|
|
75
75
|
| import("@smithy/types").RequestSigner
|
|
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
|
|
|
26
26
|
>;
|
|
27
27
|
credentialDefaultProvider: (
|
|
28
28
|
input: any
|
|
29
|
-
) => import("@smithy/types").
|
|
29
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
30
30
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
31
31
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
@@ -55,11 +55,11 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
|
|
|
55
55
|
}
|
|
56
56
|
) => import("@smithy/types").EndpointV2;
|
|
57
57
|
tls?: boolean | undefined;
|
|
58
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
59
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EventBridgeHttpAuthSchemeProvider;
|
|
58
60
|
credentials?:
|
|
59
61
|
| import("@smithy/types").AwsCredentialIdentity
|
|
60
|
-
| import("@smithy/types").
|
|
61
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
62
|
-
>
|
|
62
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
63
63
|
| undefined;
|
|
64
64
|
signer?:
|
|
65
65
|
| import("@smithy/types").RequestSigner
|
|
@@ -12,6 +12,8 @@ export declare const getRuntimeConfig: (config: EventBridgeClientConfig) => {
|
|
|
12
12
|
}
|
|
13
13
|
) => import("@smithy/types").EndpointV2;
|
|
14
14
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
15
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EventBridgeHttpAuthSchemeProvider;
|
|
16
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
15
17
|
logger: import("@smithy/types").Logger;
|
|
16
18
|
serviceId: string;
|
|
17
19
|
signerConstructor:
|
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.
|
|
4
|
+
"version": "3.623.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",
|
|
@@ -22,14 +22,13 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/core": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.623.0",
|
|
26
|
+
"@aws-sdk/client-sts": "3.623.0",
|
|
27
|
+
"@aws-sdk/core": "3.623.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.623.0",
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
30
30
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
31
31
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.620.0",
|
|
33
32
|
"@aws-sdk/middleware-user-agent": "3.620.0",
|
|
34
33
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
35
34
|
"@aws-sdk/signature-v4-multi-region": "3.622.0",
|
|
@@ -59,6 +58,7 @@
|
|
|
59
58
|
"@smithy/util-defaults-mode-browser": "^3.0.14",
|
|
60
59
|
"@smithy/util-defaults-mode-node": "^3.0.14",
|
|
61
60
|
"@smithy/util-endpoints": "^2.0.5",
|
|
61
|
+
"@smithy/util-middleware": "^3.0.3",
|
|
62
62
|
"@smithy/util-retry": "^3.0.3",
|
|
63
63
|
"@smithy/util-utf8": "^3.0.0",
|
|
64
64
|
"tslib": "^2.6.2"
|