@webiny/aws-sdk 0.0.0-unstable.a9593f74dd → 0.0.0-unstable.e53eceafb5
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/client-apigatewaymanagementapi/index.d.ts +1 -0
- package/client-apigatewaymanagementapi/index.js +122 -0
- package/client-apigatewaymanagementapi/index.js.map +1 -0
- package/client-cloudfront/index.js +1 -1
- package/client-cloudfront/index.js.map +1 -1
- package/client-cloudwatch/index.js +8 -8
- package/client-cloudwatch/index.js.map +1 -1
- package/client-cognito-identity-provider/index.d.ts +5 -1
- package/client-cognito-identity-provider/index.js +54 -10
- package/client-cognito-identity-provider/index.js.map +1 -1
- package/client-dynamodb/getDocumentClient.d.ts +6 -1
- package/client-dynamodb/getDocumentClient.js +48 -24
- package/client-dynamodb/getDocumentClient.js.map +1 -1
- package/client-dynamodb/index.d.ts +2 -1
- package/client-dynamodb/index.js +25 -19
- package/client-dynamodb/index.js.map +1 -1
- package/client-eventbridge/index.d.ts +5 -2
- package/client-eventbridge/index.js +9 -33
- package/client-eventbridge/index.js.map +1 -1
- package/client-iam/index.js +1 -1
- package/client-iam/index.js.map +1 -1
- package/client-iot/index.d.ts +1 -0
- package/client-iot/index.js +20 -0
- package/client-iot/index.js.map +1 -0
- package/client-lambda/index.d.ts +5 -1
- package/client-lambda/index.js +40 -2
- package/client-lambda/index.js.map +1 -1
- package/client-s3/index.d.ts +9 -3
- package/client-s3/index.js +89 -67
- package/client-s3/index.js.map +1 -1
- package/client-scheduler/index.d.ts +8 -0
- package/client-scheduler/index.js +60 -0
- package/client-scheduler/index.js.map +1 -0
- package/client-sfn/index.d.ts +12 -7
- package/client-sfn/index.js +64 -17
- package/client-sfn/index.js.map +1 -1
- package/client-sqs/index.js +3 -3
- package/client-sqs/index.js.map +1 -1
- package/client-sts/index.js +1 -1
- package/client-sts/index.js.map +1 -1
- package/credential-providers/index.js +1 -1
- package/credential-providers/index.js.map +1 -1
- package/lib-storage/index.d.ts +1 -1
- package/lib-storage/index.js +31 -1
- package/lib-storage/index.js.map +1 -1
- package/package.json +41 -30
- package/types/index.d.ts +1 -0
- package/types/index.js +18 -0
- package/types/index.js.map +1 -0
- package/client-eventbridge/types.d.ts +0 -29
- package/client-eventbridge/types.js +0 -7
- package/client-eventbridge/types.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApiGatewayManagementApiClient, PostToConnectionCommand, PostToConnectionCommandInput, PostToConnectionRequest, PostToConnectionCommandOutput, PostToConnectionCommandInputType, DeleteConnectionCommand, DeleteConnectionCommandInput, DeleteConnectionRequest, DeleteConnectionCommandOutput, GetConnectionCommand, GetConnectionCommandInput, GetConnectionCommandOutput, GetConnectionRequest, GetConnectionResponse, GoneException, ForbiddenException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ApiGatewayManagementApiClient", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientApigatewaymanagementapi.ApiGatewayManagementApiClient;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DeleteConnectionCommand", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _clientApigatewaymanagementapi.DeleteConnectionCommand;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "DeleteConnectionCommandInput", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientApigatewaymanagementapi.DeleteConnectionCommandInput;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "DeleteConnectionCommandOutput", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _clientApigatewaymanagementapi.DeleteConnectionCommandOutput;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "DeleteConnectionRequest", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _clientApigatewaymanagementapi.DeleteConnectionRequest;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "ForbiddenException", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _clientApigatewaymanagementapi.ForbiddenException;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "GetConnectionCommand", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _clientApigatewaymanagementapi.GetConnectionCommand;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "GetConnectionCommandInput", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _clientApigatewaymanagementapi.GetConnectionCommandInput;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "GetConnectionCommandOutput", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _clientApigatewaymanagementapi.GetConnectionCommandOutput;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "GetConnectionRequest", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _clientApigatewaymanagementapi.GetConnectionRequest;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "GetConnectionResponse", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _clientApigatewaymanagementapi.GetConnectionResponse;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "GoneException", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _clientApigatewaymanagementapi.GoneException;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "LimitExceededException", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _clientApigatewaymanagementapi.LimitExceededException;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "PayloadTooLargeException", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _clientApigatewaymanagementapi.PayloadTooLargeException;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "PostToConnectionCommand", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _clientApigatewaymanagementapi.PostToConnectionCommand;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "PostToConnectionCommandInput", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _clientApigatewaymanagementapi.PostToConnectionCommandInput;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "PostToConnectionCommandInputType", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _clientApigatewaymanagementapi.PostToConnectionCommandInputType;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "PostToConnectionCommandOutput", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _clientApigatewaymanagementapi.PostToConnectionCommandOutput;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "PostToConnectionRequest", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _clientApigatewaymanagementapi.PostToConnectionRequest;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
var _clientApigatewaymanagementapi = require("@aws-sdk/client-apigatewaymanagementapi");
|
|
121
|
+
|
|
122
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientApigatewaymanagementapi","require"],"sources":["index.ts"],"sourcesContent":["export {\n ApiGatewayManagementApiClient,\n PostToConnectionCommand,\n PostToConnectionCommandInput,\n PostToConnectionRequest,\n PostToConnectionCommandOutput,\n PostToConnectionCommandInputType,\n DeleteConnectionCommand,\n DeleteConnectionCommandInput,\n DeleteConnectionRequest,\n DeleteConnectionCommandOutput,\n GetConnectionCommand,\n GetConnectionCommandInput,\n GetConnectionCommandOutput,\n GetConnectionRequest,\n GetConnectionResponse,\n // Exceptions\n GoneException,\n ForbiddenException,\n LimitExceededException,\n PayloadTooLargeException\n} from \"@aws-sdk/client-apigatewaymanagementapi\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientCloudfront","require"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA"}
|
|
1
|
+
{"version":3,"names":["_clientCloudfront","require"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -5,49 +5,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "CloudWatchEventsClient", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _clientCloudwatchEvents.CloudWatchEventsClient;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CloudWatchLogs", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _clientCloudwatchLogs.CloudWatchLogs;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DeleteRuleCommand", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _clientCloudwatchEvents.DeleteRuleCommand;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "GetLogEventsRequest", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function
|
|
26
|
+
get: function () {
|
|
27
27
|
return _clientCloudwatchLogs.GetLogEventsRequest;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "PutRuleCommand", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function
|
|
32
|
+
get: function () {
|
|
33
33
|
return _clientCloudwatchEvents.PutRuleCommand;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "PutRuleCommandInput", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
38
|
+
get: function () {
|
|
39
39
|
return _clientCloudwatchEvents.PutRuleCommandInput;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "PutTargetsCommand", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function
|
|
44
|
+
get: function () {
|
|
45
45
|
return _clientCloudwatchEvents.PutTargetsCommand;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "RemoveTargetsCommand", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function
|
|
50
|
+
get: function () {
|
|
51
51
|
return _clientCloudwatchEvents.RemoveTargetsCommand;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientCloudwatchEvents","require","_clientCloudwatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand,\n PutRuleCommandInput\n} from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AASA,IAAAC,qBAAA,GAAAD,OAAA"}
|
|
1
|
+
{"version":3,"names":["_clientCloudwatchEvents","require","_clientCloudwatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand,\n PutRuleCommandInput\n} from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AASA,IAAAC,qBAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider";
|
|
2
|
+
import { CognitoIdentityProvider } from "@aws-sdk/client-cognito-identity-provider";
|
|
3
|
+
export { AdminGetUserCommand, AdminCreateUserCommand, AdminDeleteUserCommand, AdminUpdateUserAttributesCommand, AdminCreateUserRequest, AdminGetUserRequest, CognitoIdentityProvider, CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider";
|
|
4
|
+
export type { AttributeType, ListUsersResponse, UserType, CognitoIdentityProviderClientConfig, AdminGetUserCommandInput, AdminGetUserCommandOutput, AdminCreateUserCommandInput, AdminCreateUserCommandOutput, AdminDeleteUserCommandInput, AdminDeleteUserCommandOutput, AdminUpdateUserAttributesCommandInput, AdminUpdateUserAttributesCommandOutput } from "@aws-sdk/client-cognito-identity-provider";
|
|
5
|
+
export declare const createCognitoIdentityProviderClient: (input?: Partial<CognitoIdentityProviderClientConfig>) => CognitoIdentityProvider;
|
|
@@ -3,30 +3,74 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "AdminCreateUserCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientCognitoIdentityProvider.AdminCreateUserCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "AdminCreateUserRequest", {
|
|
7
13
|
enumerable: true,
|
|
8
|
-
get: function
|
|
14
|
+
get: function () {
|
|
9
15
|
return _clientCognitoIdentityProvider.AdminCreateUserRequest;
|
|
10
16
|
}
|
|
11
17
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "AdminDeleteUserCommand", {
|
|
13
19
|
enumerable: true,
|
|
14
|
-
get: function
|
|
15
|
-
return _clientCognitoIdentityProvider.
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientCognitoIdentityProvider.AdminDeleteUserCommand;
|
|
16
22
|
}
|
|
17
23
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "AdminGetUserCommand", {
|
|
19
25
|
enumerable: true,
|
|
20
|
-
get: function
|
|
21
|
-
return _clientCognitoIdentityProvider.
|
|
26
|
+
get: function () {
|
|
27
|
+
return _clientCognitoIdentityProvider.AdminGetUserCommand;
|
|
22
28
|
}
|
|
23
29
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "AdminGetUserRequest", {
|
|
25
31
|
enumerable: true,
|
|
26
|
-
get: function
|
|
27
|
-
return _clientCognitoIdentityProvider.
|
|
32
|
+
get: function () {
|
|
33
|
+
return _clientCognitoIdentityProvider.AdminGetUserRequest;
|
|
28
34
|
}
|
|
29
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "AdminUpdateUserAttributesCommand", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _clientCognitoIdentityProvider.AdminUpdateUserAttributesCommand;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "CognitoIdentityProvider", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _clientCognitoIdentityProvider.CognitoIdentityProvider;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "CognitoIdentityProviderClient", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _clientCognitoIdentityProvider.CognitoIdentityProviderClient;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
exports.createCognitoIdentityProviderClient = void 0;
|
|
30
55
|
var _clientCognitoIdentityProvider = require("@aws-sdk/client-cognito-identity-provider");
|
|
56
|
+
var _utils = require("@webiny/utils");
|
|
57
|
+
const DEFAULT_CONFIG = {
|
|
58
|
+
region: process.env.AWS_REGION
|
|
59
|
+
};
|
|
60
|
+
const cache = {};
|
|
61
|
+
const createCognitoIdentityProviderClient = input => {
|
|
62
|
+
const config = {
|
|
63
|
+
...DEFAULT_CONFIG,
|
|
64
|
+
...input
|
|
65
|
+
};
|
|
66
|
+
const key = (0, _utils.createCacheKey)(config);
|
|
67
|
+
if (cache[key]) {
|
|
68
|
+
return cache[key];
|
|
69
|
+
}
|
|
70
|
+
const client = new _clientCognitoIdentityProvider.CognitoIdentityProvider(config);
|
|
71
|
+
cache[key] = client;
|
|
72
|
+
return client;
|
|
73
|
+
};
|
|
74
|
+
exports.createCognitoIdentityProviderClient = createCognitoIdentityProviderClient;
|
|
31
75
|
|
|
32
76
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientCognitoIdentityProvider","require"],"sources":["index.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["_clientCognitoIdentityProvider","require","_utils","DEFAULT_CONFIG","region","process","env","AWS_REGION","cache","createCognitoIdentityProviderClient","input","config","key","createCacheKey","client","CognitoIdentityProvider","exports"],"sources":["index.ts"],"sourcesContent":["import type { CognitoIdentityProviderClientConfig } from \"@aws-sdk/client-cognito-identity-provider\";\nimport { CognitoIdentityProvider } from \"@aws-sdk/client-cognito-identity-provider\";\nimport type { GenericRecord } from \"@webiny/utils\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n AdminGetUserCommand,\n AdminCreateUserCommand,\n AdminDeleteUserCommand,\n AdminUpdateUserAttributesCommand,\n AdminCreateUserRequest,\n AdminGetUserRequest,\n CognitoIdentityProvider,\n CognitoIdentityProviderClient\n} from \"@aws-sdk/client-cognito-identity-provider\";\n\nexport type {\n AttributeType,\n ListUsersResponse,\n UserType,\n CognitoIdentityProviderClientConfig,\n AdminGetUserCommandInput,\n AdminGetUserCommandOutput,\n AdminCreateUserCommandInput,\n AdminCreateUserCommandOutput,\n AdminDeleteUserCommandInput,\n AdminDeleteUserCommandOutput,\n AdminUpdateUserAttributesCommandInput,\n AdminUpdateUserAttributesCommandOutput\n} from \"@aws-sdk/client-cognito-identity-provider\";\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst cache: GenericRecord<string, CognitoIdentityProvider> = {};\n\nexport const createCognitoIdentityProviderClient = (\n input?: Partial<CognitoIdentityProviderClientConfig>\n) => {\n const config: CognitoIdentityProviderClientConfig = {\n ...DEFAULT_CONFIG,\n ...input\n };\n const key = createCacheKey(config);\n if (cache[key]) {\n return cache[key];\n }\n const client = new CognitoIdentityProvider(config);\n cache[key] = client;\n return client;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,8BAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AA4BA,MAAME,cAAc,GAAG;EACnBC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,KAAqD,GAAG,CAAC,CAAC;AAEzD,MAAMC,mCAAmC,GAC5CC,KAAoD,IACnD;EACD,MAAMC,MAA2C,GAAG;IAChD,GAAGR,cAAc;IACjB,GAAGO;EACP,CAAC;EACD,MAAME,GAAG,GAAG,IAAAC,qBAAc,EAACF,MAAM,CAAC;EAClC,IAAIH,KAAK,CAACI,GAAG,CAAC,EAAE;IACZ,OAAOJ,KAAK,CAACI,GAAG,CAAC;EACrB;EACA,MAAME,MAAM,GAAG,IAAIC,sDAAuB,CAACJ,MAAM,CAAC;EAClDH,KAAK,CAACI,GAAG,CAAC,GAAGE,MAAM;EACnB,OAAOA,MAAM;AACjB,CAAC;AAACE,OAAA,CAAAP,mCAAA,GAAAA,mCAAA","ignoreList":[]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
|
|
1
|
+
import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
|
|
3
|
+
export interface IDecorateDocumentClientCallable {
|
|
4
|
+
(client: DynamoDBDocument): DynamoDBDocument;
|
|
5
|
+
}
|
|
6
|
+
export { getDocumentClient as createDocumentClient };
|
|
3
7
|
export declare const getDocumentClient: (input?: DynamoDBClientConfig) => DynamoDBDocument;
|
|
8
|
+
export declare const decorateDocumentClient: (cb: IDecorateDocumentClientCallable) => void;
|
|
@@ -1,39 +1,63 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.getDocumentClient = void 0;
|
|
6
|
+
exports.getDocumentClient = exports.decorateDocumentClient = exports.createDocumentClient = void 0;
|
|
8
7
|
var _clientDynamodb = require("@aws-sdk/client-dynamodb");
|
|
9
8
|
var _libDynamodb = require("@aws-sdk/lib-dynamodb");
|
|
10
|
-
var
|
|
11
|
-
|
|
9
|
+
var _utils = require("@webiny/utils");
|
|
10
|
+
let decorateDocumentClientCallable = undefined;
|
|
11
|
+
const DEFAULT_CONFIG = {
|
|
12
12
|
region: process.env.AWS_REGION
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const documentClients = {};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* We do not want users to be able to change these options, so we are not exposing them.
|
|
18
|
+
*/
|
|
19
|
+
const documentClientConfig = {
|
|
20
|
+
marshallOptions: {
|
|
21
|
+
convertEmptyValues: true,
|
|
22
|
+
removeUndefinedValues: true,
|
|
23
|
+
convertClassInstanceToMap: true
|
|
24
|
+
}
|
|
19
25
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
const getDocumentClient = input => {
|
|
27
|
+
const config = {
|
|
28
|
+
...DEFAULT_CONFIG,
|
|
29
|
+
...input
|
|
30
|
+
};
|
|
31
|
+
const key = (0, _utils.createCacheKey)(config);
|
|
24
32
|
if (documentClients[key]) {
|
|
25
|
-
return documentClients[key];
|
|
33
|
+
return applyDecoration(documentClients[key]);
|
|
34
|
+
}
|
|
35
|
+
const client = new _clientDynamodb.DynamoDBClient(config);
|
|
36
|
+
const documentClient = _libDynamodb.DynamoDBDocument.from(client, documentClientConfig);
|
|
37
|
+
return documentClients[key] = applyDecoration(documentClient);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Client will not be decorated more than once.
|
|
41
|
+
*/
|
|
42
|
+
exports.getDocumentClient = exports.createDocumentClient = getDocumentClient;
|
|
43
|
+
const applyDecoration = client => {
|
|
44
|
+
if (!decorateDocumentClientCallable) {
|
|
45
|
+
return client;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @ts-expect-error
|
|
49
|
+
client.__decoratedByWebiny = true;
|
|
50
|
+
return decorateDocumentClientCallable(client);
|
|
51
|
+
};
|
|
52
|
+
const decorateDocumentClient = cb => {
|
|
53
|
+
decorateDocumentClientCallable = cb;
|
|
54
|
+
/**
|
|
55
|
+
* Decorate already existing clients.
|
|
56
|
+
*/
|
|
57
|
+
for (const key in documentClients) {
|
|
58
|
+
cb(documentClients[key]);
|
|
26
59
|
}
|
|
27
|
-
var client = new _clientDynamodb.DynamoDBClient(config);
|
|
28
|
-
var documentClient = _libDynamodb.DynamoDBDocument.from(client, {
|
|
29
|
-
marshallOptions: {
|
|
30
|
-
convertEmptyValues: true,
|
|
31
|
-
removeUndefinedValues: true
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
documentClients[key] = documentClient;
|
|
35
|
-
return documentClient;
|
|
36
60
|
};
|
|
37
|
-
exports.
|
|
61
|
+
exports.decorateDocumentClient = decorateDocumentClient;
|
|
38
62
|
|
|
39
63
|
//# sourceMappingURL=getDocumentClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientDynamodb","require","_libDynamodb","
|
|
1
|
+
{"version":3,"names":["_clientDynamodb","require","_libDynamodb","_utils","decorateDocumentClientCallable","undefined","DEFAULT_CONFIG","region","process","env","AWS_REGION","documentClients","documentClientConfig","marshallOptions","convertEmptyValues","removeUndefinedValues","convertClassInstanceToMap","getDocumentClient","input","config","key","createCacheKey","applyDecoration","client","DynamoDBClient","documentClient","DynamoDBDocument","from","exports","createDocumentClient","__decoratedByWebiny","decorateDocumentClient","cb"],"sources":["getDocumentClient.ts"],"sourcesContent":["import type { DynamoDBClientConfig } from \"@aws-sdk/client-dynamodb\";\nimport { DynamoDBClient } from \"@aws-sdk/client-dynamodb\";\nimport type { TranslateConfig } from \"@aws-sdk/lib-dynamodb\";\nimport { DynamoDBDocument } from \"@aws-sdk/lib-dynamodb\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport interface IDecorateDocumentClientCallable {\n (client: DynamoDBDocument): DynamoDBDocument;\n}\n\nlet decorateDocumentClientCallable: IDecorateDocumentClientCallable | undefined = undefined;\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst documentClients: Record<string, DynamoDBDocument> = {};\n\n/**\n * We do not want users to be able to change these options, so we are not exposing them.\n */\nconst documentClientConfig: TranslateConfig = {\n marshallOptions: {\n convertEmptyValues: true,\n removeUndefinedValues: true,\n convertClassInstanceToMap: true\n }\n};\n\nexport { getDocumentClient as createDocumentClient };\n\nexport const getDocumentClient = (input?: DynamoDBClientConfig): DynamoDBDocument => {\n const config: DynamoDBClientConfig = {\n ...DEFAULT_CONFIG,\n ...input\n };\n const key = createCacheKey(config);\n if (documentClients[key]) {\n return applyDecoration(documentClients[key]);\n }\n const client = new DynamoDBClient(config);\n const documentClient = DynamoDBDocument.from(client, documentClientConfig);\n return (documentClients[key] = applyDecoration(documentClient));\n};\n/**\n * Client will not be decorated more than once.\n */\nconst applyDecoration = (client: DynamoDBDocument): DynamoDBDocument => {\n if (!decorateDocumentClientCallable) {\n return client;\n }\n\n // @ts-expect-error\n client.__decoratedByWebiny = true;\n return decorateDocumentClientCallable(client);\n};\n\nexport const decorateDocumentClient = (cb: IDecorateDocumentClientCallable): void => {\n decorateDocumentClientCallable = cb;\n /**\n * Decorate already existing clients.\n */\n for (const key in documentClients) {\n cb(documentClients[key]);\n }\n};\n"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAMA,IAAIG,8BAA2E,GAAGC,SAAS;AAE3F,MAAMC,cAAc,GAAG;EACnBC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,eAAiD,GAAG,CAAC,CAAC;;AAE5D;AACA;AACA;AACA,MAAMC,oBAAqC,GAAG;EAC1CC,eAAe,EAAE;IACbC,kBAAkB,EAAE,IAAI;IACxBC,qBAAqB,EAAE,IAAI;IAC3BC,yBAAyB,EAAE;EAC/B;AACJ,CAAC;AAIM,MAAMC,iBAAiB,GAAIC,KAA4B,IAAuB;EACjF,MAAMC,MAA4B,GAAG;IACjC,GAAGb,cAAc;IACjB,GAAGY;EACP,CAAC;EACD,MAAME,GAAG,GAAG,IAAAC,qBAAc,EAACF,MAAM,CAAC;EAClC,IAAIR,eAAe,CAACS,GAAG,CAAC,EAAE;IACtB,OAAOE,eAAe,CAACX,eAAe,CAACS,GAAG,CAAC,CAAC;EAChD;EACA,MAAMG,MAAM,GAAG,IAAIC,8BAAc,CAACL,MAAM,CAAC;EACzC,MAAMM,cAAc,GAAGC,6BAAgB,CAACC,IAAI,CAACJ,MAAM,EAAEX,oBAAoB,CAAC;EAC1E,OAAQD,eAAe,CAACS,GAAG,CAAC,GAAGE,eAAe,CAACG,cAAc,CAAC;AAClE,CAAC;AACD;AACA;AACA;AAFAG,OAAA,CAAAX,iBAAA,GAAAW,OAAA,CAAAC,oBAAA,GAAAZ,iBAAA;AAGA,MAAMK,eAAe,GAAIC,MAAwB,IAAuB;EACpE,IAAI,CAACnB,8BAA8B,EAAE;IACjC,OAAOmB,MAAM;EACjB;;EAEA;EACAA,MAAM,CAACO,mBAAmB,GAAG,IAAI;EACjC,OAAO1B,8BAA8B,CAACmB,MAAM,CAAC;AACjD,CAAC;AAEM,MAAMQ,sBAAsB,GAAIC,EAAmC,IAAW;EACjF5B,8BAA8B,GAAG4B,EAAE;EACnC;AACJ;AACA;EACI,KAAK,MAAMZ,GAAG,IAAIT,eAAe,EAAE;IAC/BqB,EAAE,CAACrB,eAAe,CAACS,GAAG,CAAC,CAAC;EAC5B;AACJ,CAAC;AAACQ,OAAA,CAAAG,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
export type { DynamoDBClient, DynamoDBClientConfig, AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
3
3
|
export type { StreamRecord } from "@aws-sdk/client-dynamodb-streams";
|
|
4
|
-
export {
|
|
4
|
+
export { BatchWriteCommand, BatchGetCommand, PutCommand, ScanCommand, GetCommand, UpdateCommand, DeleteCommand, DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
|
|
5
|
+
export type { BatchWriteCommandInput, BatchWriteCommandOutput, BatchGetCommandInput, BatchGetCommandOutput, PutCommandInput, PutCommandOutput, UpdateCommandInput, GetCommandInput, GetCommandOutput, DeleteCommandInput, DeleteCommandOutput, ScanCommandInput, ScanCommandOutput, QueryCommandOutput } from "@aws-sdk/lib-dynamodb";
|
|
5
6
|
export { unmarshall, marshall } from "@aws-sdk/util-dynamodb";
|
|
6
7
|
export { getDocumentClient } from "./getDocumentClient";
|
package/client-dynamodb/index.js
CHANGED
|
@@ -3,87 +3,93 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "BatchGetCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _libDynamodb.BatchGetCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "BatchWriteCommand", {
|
|
7
13
|
enumerable: true,
|
|
8
|
-
get: function
|
|
14
|
+
get: function () {
|
|
9
15
|
return _libDynamodb.BatchWriteCommand;
|
|
10
16
|
}
|
|
11
17
|
});
|
|
12
18
|
Object.defineProperty(exports, "DeleteCommand", {
|
|
13
19
|
enumerable: true,
|
|
14
|
-
get: function
|
|
20
|
+
get: function () {
|
|
15
21
|
return _libDynamodb.DeleteCommand;
|
|
16
22
|
}
|
|
17
23
|
});
|
|
18
24
|
Object.defineProperty(exports, "DynamoDBDocument", {
|
|
19
25
|
enumerable: true,
|
|
20
|
-
get: function
|
|
26
|
+
get: function () {
|
|
21
27
|
return _libDynamodb.DynamoDBDocument;
|
|
22
28
|
}
|
|
23
29
|
});
|
|
24
30
|
Object.defineProperty(exports, "GetCommand", {
|
|
25
31
|
enumerable: true,
|
|
26
|
-
get: function
|
|
32
|
+
get: function () {
|
|
27
33
|
return _libDynamodb.GetCommand;
|
|
28
34
|
}
|
|
29
35
|
});
|
|
30
|
-
Object.defineProperty(exports, "GetCommandOutput", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _libDynamodb.GetCommandOutput;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
36
|
Object.defineProperty(exports, "PutCommand", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
38
|
+
get: function () {
|
|
39
39
|
return _libDynamodb.PutCommand;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "QueryCommand", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function
|
|
44
|
+
get: function () {
|
|
45
45
|
return _clientDynamodb.QueryCommand;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "ScanCommand", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _libDynamodb.ScanCommand;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
Object.defineProperty(exports, "ScanInput", {
|
|
49
55
|
enumerable: true,
|
|
50
|
-
get: function
|
|
56
|
+
get: function () {
|
|
51
57
|
return _clientDynamodb.ScanInput;
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
Object.defineProperty(exports, "ScanOutput", {
|
|
55
61
|
enumerable: true,
|
|
56
|
-
get: function
|
|
62
|
+
get: function () {
|
|
57
63
|
return _clientDynamodb.ScanOutput;
|
|
58
64
|
}
|
|
59
65
|
});
|
|
60
66
|
Object.defineProperty(exports, "UpdateCommand", {
|
|
61
67
|
enumerable: true,
|
|
62
|
-
get: function
|
|
68
|
+
get: function () {
|
|
63
69
|
return _libDynamodb.UpdateCommand;
|
|
64
70
|
}
|
|
65
71
|
});
|
|
66
72
|
Object.defineProperty(exports, "WriteRequest", {
|
|
67
73
|
enumerable: true,
|
|
68
|
-
get: function
|
|
74
|
+
get: function () {
|
|
69
75
|
return _clientDynamodb.WriteRequest;
|
|
70
76
|
}
|
|
71
77
|
});
|
|
72
78
|
Object.defineProperty(exports, "getDocumentClient", {
|
|
73
79
|
enumerable: true,
|
|
74
|
-
get: function
|
|
80
|
+
get: function () {
|
|
75
81
|
return _getDocumentClient.getDocumentClient;
|
|
76
82
|
}
|
|
77
83
|
});
|
|
78
84
|
Object.defineProperty(exports, "marshall", {
|
|
79
85
|
enumerable: true,
|
|
80
|
-
get: function
|
|
86
|
+
get: function () {
|
|
81
87
|
return _utilDynamodb.marshall;
|
|
82
88
|
}
|
|
83
89
|
});
|
|
84
90
|
Object.defineProperty(exports, "unmarshall", {
|
|
85
91
|
enumerable: true,
|
|
86
|
-
get: function
|
|
92
|
+
get: function () {
|
|
87
93
|
return _utilDynamodb.unmarshall;
|
|
88
94
|
}
|
|
89
95
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientDynamodb","require","_libDynamodb","_utilDynamodb","_getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from \"@aws-sdk/client-dynamodb\";\nexport type {\n DynamoDBClient,\n DynamoDBClientConfig,\n AttributeValue\n} from \"@aws-sdk/client-dynamodb\";\n\nexport type { StreamRecord } from \"@aws-sdk/client-dynamodb-streams\";\n\nexport {\n
|
|
1
|
+
{"version":3,"names":["_clientDynamodb","require","_libDynamodb","_utilDynamodb","_getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from \"@aws-sdk/client-dynamodb\";\nexport type {\n DynamoDBClient,\n DynamoDBClientConfig,\n AttributeValue\n} from \"@aws-sdk/client-dynamodb\";\n\nexport type { StreamRecord } from \"@aws-sdk/client-dynamodb-streams\";\n\nexport {\n BatchWriteCommand,\n BatchGetCommand,\n PutCommand,\n ScanCommand,\n GetCommand,\n UpdateCommand,\n DeleteCommand,\n DynamoDBDocument\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport type {\n BatchWriteCommandInput,\n BatchWriteCommandOutput,\n BatchGetCommandInput,\n BatchGetCommandOutput,\n PutCommandInput,\n PutCommandOutput,\n UpdateCommandInput,\n GetCommandInput,\n GetCommandOutput,\n DeleteCommandInput,\n DeleteCommandOutput,\n ScanCommandInput,\n ScanCommandOutput,\n QueryCommandOutput\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport { unmarshall, marshall } from \"@aws-sdk/util-dynamodb\";\n\nexport { getDocumentClient } from \"./getDocumentClient\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AA4BA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge";
|
|
2
|
+
import { EventBridgeClient } from "@aws-sdk/client-eventbridge";
|
|
3
|
+
export { EventBridgeClient, PutEventsRequestEntry, PutEventsCommand } from "@aws-sdk/client-eventbridge";
|
|
4
|
+
export type { EventBridgeClientConfig, PutEventsCommandInput, PutEventsCommandOutput } from "@aws-sdk/client-eventbridge";
|
|
5
|
+
export declare const createEventBridgeClient: (config?: Partial<EventBridgeClientConfig>) => EventBridgeClient;
|
|
@@ -3,55 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
EventBridgeClient: true,
|
|
8
|
-
PutEventsRequestEntry: true,
|
|
9
|
-
PutEventsCommand: true,
|
|
10
|
-
PutEventsCommandInput: true,
|
|
11
|
-
PutEventsCommandOutput: true
|
|
12
|
-
};
|
|
13
6
|
Object.defineProperty(exports, "EventBridgeClient", {
|
|
14
7
|
enumerable: true,
|
|
15
|
-
get: function
|
|
8
|
+
get: function () {
|
|
16
9
|
return _clientEventbridge.EventBridgeClient;
|
|
17
10
|
}
|
|
18
11
|
});
|
|
19
12
|
Object.defineProperty(exports, "PutEventsCommand", {
|
|
20
13
|
enumerable: true,
|
|
21
|
-
get: function
|
|
14
|
+
get: function () {
|
|
22
15
|
return _clientEventbridge.PutEventsCommand;
|
|
23
16
|
}
|
|
24
17
|
});
|
|
25
|
-
Object.defineProperty(exports, "PutEventsCommandInput", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _clientEventbridge.PutEventsCommandInput;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "PutEventsCommandOutput", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _clientEventbridge.PutEventsCommandOutput;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
18
|
Object.defineProperty(exports, "PutEventsRequestEntry", {
|
|
38
19
|
enumerable: true,
|
|
39
|
-
get: function
|
|
20
|
+
get: function () {
|
|
40
21
|
return _clientEventbridge.PutEventsRequestEntry;
|
|
41
22
|
}
|
|
42
23
|
});
|
|
24
|
+
exports.createEventBridgeClient = void 0;
|
|
43
25
|
var _clientEventbridge = require("@aws-sdk/client-eventbridge");
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
48
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
49
|
-
Object.defineProperty(exports, key, {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function get() {
|
|
52
|
-
return _types[key];
|
|
53
|
-
}
|
|
26
|
+
const createEventBridgeClient = config => {
|
|
27
|
+
return new _clientEventbridge.EventBridgeClient({
|
|
28
|
+
...config
|
|
54
29
|
});
|
|
55
|
-
}
|
|
30
|
+
};
|
|
31
|
+
exports.createEventBridgeClient = createEventBridgeClient;
|
|
56
32
|
|
|
57
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientEventbridge","require","
|
|
1
|
+
{"version":3,"names":["_clientEventbridge","require","createEventBridgeClient","config","EventBridgeClient","exports"],"sources":["index.ts"],"sourcesContent":["import type { EventBridgeClientConfig } from \"@aws-sdk/client-eventbridge\";\nimport { EventBridgeClient } from \"@aws-sdk/client-eventbridge\";\n\nexport {\n EventBridgeClient,\n PutEventsRequestEntry,\n PutEventsCommand\n} from \"@aws-sdk/client-eventbridge\";\n\nexport type {\n EventBridgeClientConfig,\n PutEventsCommandInput,\n PutEventsCommandOutput\n} from \"@aws-sdk/client-eventbridge\";\n\nexport const createEventBridgeClient = (config?: Partial<EventBridgeClientConfig>) => {\n return new EventBridgeClient({\n ...config\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,kBAAA,GAAAC,OAAA;AAcO,MAAMC,uBAAuB,GAAIC,MAAyC,IAAK;EAClF,OAAO,IAAIC,oCAAiB,CAAC;IACzB,GAAGD;EACP,CAAC,CAAC;AACN,CAAC;AAACE,OAAA,CAAAH,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|