@webiny/aws-sdk 6.0.0-beta.0 β 6.0.0-rc.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/README.md +11 -0
- package/client-apigatewaymanagementapi/index.d.ts +2 -1
- package/client-apigatewaymanagementapi/index.js +1 -120
- package/client-apigatewaymanagementapi/index.js.map +1 -1
- package/client-cloudfront/index.js +1 -12
- package/client-cloudfront/index.js.map +1 -1
- package/client-cloudwatch/index.d.ts +3 -2
- package/client-cloudwatch/index.js +2 -55
- 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 +19 -29
- package/client-cognito-identity-provider/index.js.map +1 -1
- package/client-dynamodb/getDocumentClient.d.ts +6 -1
- package/client-dynamodb/getDocumentClient.js +40 -27
- package/client-dynamodb/getDocumentClient.js.map +1 -1
- package/client-dynamodb/index.d.ts +5 -4
- package/client-dynamodb/index.js +4 -93
- package/client-dynamodb/index.js.map +1 -1
- package/client-eventbridge/index.d.ts +5 -1
- package/client-eventbridge/index.js +7 -36
- package/client-eventbridge/index.js.map +1 -1
- package/client-iam/index.js +1 -12
- package/client-iam/index.js.map +1 -1
- package/client-iot/index.d.ts +1 -0
- package/client-iot/index.js +3 -0
- package/client-iot/index.js.map +1 -0
- package/client-lambda/index.d.ts +5 -1
- package/client-lambda/index.js +19 -17
- package/client-lambda/index.js.map +1 -1
- package/client-s3/index.d.ts +10 -4
- package/client-s3/index.js +45 -179
- package/client-s3/index.js.map +1 -1
- package/client-scheduler/index.d.ts +8 -0
- package/client-scheduler/index.js +24 -0
- package/client-scheduler/index.js.map +1 -0
- package/client-sfn/index.d.ts +12 -7
- package/client-sfn/index.js +46 -37
- package/client-sfn/index.js.map +1 -1
- package/client-sqs/index.d.ts +2 -1
- package/client-sqs/index.js +1 -24
- package/client-sqs/index.js.map +1 -1
- package/client-sts/index.js +1 -12
- package/client-sts/index.js.map +1 -1
- package/credential-providers/index.js +1 -12
- package/credential-providers/index.js.map +1 -1
- package/lib-storage/index.d.ts +2 -1
- package/lib-storage/index.js +1 -42
- package/lib-storage/index.js.map +1 -1
- package/package.json +39 -32
- package/types/index.d.ts +1 -0
- package/types/index.js +3 -0
- package/types/index.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @webiny/aws-sdk
|
|
2
|
+
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is part of the [Webiny](https://www.webiny.com) monorepo.
|
|
5
|
+
> Itβs **included in every Webiny project by default** and is not meant to be used as a standalone package.
|
|
6
|
+
|
|
7
|
+
π **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
_This README file is automatically generated during the publish process._
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ApiGatewayManagementApiClient, PostToConnectionCommand,
|
|
1
|
+
export { ApiGatewayManagementApiClient, PostToConnectionCommand, DeleteConnectionCommand, GetConnectionCommand, GoneException, ForbiddenException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
2
|
+
export type { PostToConnectionCommandInput, PostToConnectionRequest, PostToConnectionCommandOutput, PostToConnectionCommandInputType, DeleteConnectionCommandInput, DeleteConnectionRequest, DeleteConnectionCommandOutput, GetConnectionCommandInput, GetConnectionCommandOutput, GetConnectionRequest, GetConnectionResponse } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
@@ -1,122 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ApiGatewayManagementApiClient", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientApigatewaymanagementapi.ApiGatewayManagementApiClient;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "DeleteConnectionCommand", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _clientApigatewaymanagementapi.DeleteConnectionCommand;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "DeleteConnectionCommandInput", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _clientApigatewaymanagementapi.DeleteConnectionCommandInput;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "DeleteConnectionCommandOutput", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _clientApigatewaymanagementapi.DeleteConnectionCommandOutput;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "DeleteConnectionRequest", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _clientApigatewaymanagementapi.DeleteConnectionRequest;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "ForbiddenException", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _clientApigatewaymanagementapi.ForbiddenException;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "GetConnectionCommand", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _clientApigatewaymanagementapi.GetConnectionCommand;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "GetConnectionCommandInput", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _clientApigatewaymanagementapi.GetConnectionCommandInput;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "GetConnectionCommandOutput", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _clientApigatewaymanagementapi.GetConnectionCommandOutput;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "GetConnectionRequest", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _clientApigatewaymanagementapi.GetConnectionRequest;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "GetConnectionResponse", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _clientApigatewaymanagementapi.GetConnectionResponse;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "GoneException", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _clientApigatewaymanagementapi.GoneException;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "LimitExceededException", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _clientApigatewaymanagementapi.LimitExceededException;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "PayloadTooLargeException", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _clientApigatewaymanagementapi.PayloadTooLargeException;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "PostToConnectionCommand", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function get() {
|
|
93
|
-
return _clientApigatewaymanagementapi.PostToConnectionCommand;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "PostToConnectionCommandInput", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function get() {
|
|
99
|
-
return _clientApigatewaymanagementapi.PostToConnectionCommandInput;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "PostToConnectionCommandInputType", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function get() {
|
|
105
|
-
return _clientApigatewaymanagementapi.PostToConnectionCommandInputType;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "PostToConnectionCommandOutput", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function get() {
|
|
111
|
-
return _clientApigatewaymanagementapi.PostToConnectionCommandOutput;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "PostToConnectionRequest", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function get() {
|
|
117
|
-
return _clientApigatewaymanagementapi.PostToConnectionRequest;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
var _clientApigatewaymanagementapi = require("@aws-sdk/client-apigatewaymanagementapi");
|
|
1
|
+
export { ApiGatewayManagementApiClient, PostToConnectionCommand, DeleteConnectionCommand, GetConnectionCommand, GoneException, ForbiddenException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
121
2
|
|
|
122
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["ApiGatewayManagementApiClient","PostToConnectionCommand","DeleteConnectionCommand","GetConnectionCommand","GoneException","ForbiddenException","LimitExceededException","PayloadTooLargeException"],"sources":["index.ts"],"sourcesContent":["export {\n ApiGatewayManagementApiClient,\n PostToConnectionCommand,\n DeleteConnectionCommand,\n GetConnectionCommand,\n GoneException,\n ForbiddenException,\n LimitExceededException,\n PayloadTooLargeException\n} from \"@aws-sdk/client-apigatewaymanagementapi\";\nexport type {\n PostToConnectionCommandInput,\n PostToConnectionRequest,\n PostToConnectionCommandOutput,\n PostToConnectionCommandInputType,\n DeleteConnectionCommandInput,\n DeleteConnectionRequest,\n DeleteConnectionCommandOutput,\n GetConnectionCommandInput,\n GetConnectionCommandOutput,\n GetConnectionRequest,\n GetConnectionResponse\n} from \"@aws-sdk/client-apigatewaymanagementapi\";\n"],"mappings":"AAAA,SACIA,6BAA6B,EAC7BC,uBAAuB,EACvBC,uBAAuB,EACvBC,oBAAoB,EACpBC,aAAa,EACbC,kBAAkB,EAClBC,sBAAsB,EACtBC,wBAAwB,QACrB,yCAAyC","ignoreList":[]}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "CloudFront", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientCloudfront.CloudFront;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _clientCloudfront = require("@aws-sdk/client-cloudfront");
|
|
1
|
+
export { CloudFront } from "@aws-sdk/client-cloudfront";
|
|
13
2
|
|
|
14
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["CloudFront"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,4BAA4B","ignoreList":[]}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { CloudWatchEventsClient, DeleteRuleCommand, RemoveTargetsCommand, PutRuleCommand, PutTargetsCommand
|
|
2
|
-
export {
|
|
1
|
+
export { CloudWatchEventsClient, DeleteRuleCommand, RemoveTargetsCommand, PutRuleCommand, PutTargetsCommand } from "@aws-sdk/client-cloudwatch-events";
|
|
2
|
+
export type { PutRuleCommandInput } from "@aws-sdk/client-cloudwatch-events";
|
|
3
|
+
export { CloudWatchLogs, type GetLogEventsRequest } from "@aws-sdk/client-cloudwatch-logs";
|
|
@@ -1,57 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "CloudWatchEventsClient", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientCloudwatchEvents.CloudWatchEventsClient;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "CloudWatchLogs", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _clientCloudwatchLogs.CloudWatchLogs;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "DeleteRuleCommand", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _clientCloudwatchEvents.DeleteRuleCommand;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "GetLogEventsRequest", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _clientCloudwatchLogs.GetLogEventsRequest;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "PutRuleCommand", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _clientCloudwatchEvents.PutRuleCommand;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "PutRuleCommandInput", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _clientCloudwatchEvents.PutRuleCommandInput;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "PutTargetsCommand", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _clientCloudwatchEvents.PutTargetsCommand;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "RemoveTargetsCommand", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _clientCloudwatchEvents.RemoveTargetsCommand;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
var _clientCloudwatchEvents = require("@aws-sdk/client-cloudwatch-events");
|
|
55
|
-
var _clientCloudwatchLogs = require("@aws-sdk/client-cloudwatch-logs");
|
|
1
|
+
export { CloudWatchEventsClient, DeleteRuleCommand, RemoveTargetsCommand, PutRuleCommand, PutTargetsCommand } from "@aws-sdk/client-cloudwatch-events";
|
|
2
|
+
export { CloudWatchLogs } from "@aws-sdk/client-cloudwatch-logs";
|
|
56
3
|
|
|
57
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["CloudWatchEventsClient","DeleteRuleCommand","RemoveTargetsCommand","PutRuleCommand","PutTargetsCommand","CloudWatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand\n} from \"@aws-sdk/client-cloudwatch-events\";\nexport type { PutRuleCommandInput } from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, type GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":"AAAA,SACIA,sBAAsB,EACtBC,iBAAiB,EACjBC,oBAAoB,EACpBC,cAAc,EACdC,iBAAiB,QACd,mCAAmC;AAG1C,SAASC,cAAc,QAAkC,iCAAiC","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, CognitoIdentityProvider, CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider";
|
|
4
|
+
export type { AttributeType, ListUsersResponse, AdminCreateUserRequest, AdminGetUserRequest, 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;
|
|
@@ -1,32 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "ListUsersResponse", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _clientCognitoIdentityProvider.ListUsersResponse;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "UserType", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _clientCognitoIdentityProvider.UserType;
|
|
1
|
+
import { CognitoIdentityProvider } from "@aws-sdk/client-cognito-identity-provider";
|
|
2
|
+
import { createCacheKey } from "@webiny/utils";
|
|
3
|
+
export { AdminGetUserCommand, AdminCreateUserCommand, AdminDeleteUserCommand, AdminUpdateUserAttributesCommand, CognitoIdentityProvider, CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider";
|
|
4
|
+
const DEFAULT_CONFIG = {
|
|
5
|
+
region: process.env.AWS_REGION
|
|
6
|
+
};
|
|
7
|
+
const cache = {};
|
|
8
|
+
export const createCognitoIdentityProviderClient = input => {
|
|
9
|
+
const config = {
|
|
10
|
+
...DEFAULT_CONFIG,
|
|
11
|
+
...input
|
|
12
|
+
};
|
|
13
|
+
const key = createCacheKey(config);
|
|
14
|
+
if (cache[key]) {
|
|
15
|
+
return cache[key];
|
|
28
16
|
}
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
const client = new CognitoIdentityProvider(config);
|
|
18
|
+
cache[key] = client;
|
|
19
|
+
return client;
|
|
20
|
+
};
|
|
31
21
|
|
|
32
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["CognitoIdentityProvider","createCacheKey","AdminGetUserCommand","AdminCreateUserCommand","AdminDeleteUserCommand","AdminUpdateUserAttributesCommand","CognitoIdentityProviderClient","DEFAULT_CONFIG","region","process","env","AWS_REGION","cache","createCognitoIdentityProviderClient","input","config","key","client"],"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 CognitoIdentityProvider,\n CognitoIdentityProviderClient\n} from \"@aws-sdk/client-cognito-identity-provider\";\n\nexport type {\n AttributeType,\n ListUsersResponse,\n AdminCreateUserRequest,\n AdminGetUserRequest,\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,SAASA,uBAAuB,QAAQ,2CAA2C;AAEnF,SAASC,cAAc,QAAQ,eAAe;AAE9C,SACIC,mBAAmB,EACnBC,sBAAsB,EACtBC,sBAAsB,EACtBC,gCAAgC,EAChCL,uBAAuB,EACvBM,6BAA6B,QAC1B,2CAA2C;AAmBlD,MAAMC,cAAc,GAAG;EACnBC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,KAAqD,GAAG,CAAC,CAAC;AAEhE,OAAO,MAAMC,mCAAmC,GAC5CC,KAAoD,IACnD;EACD,MAAMC,MAA2C,GAAG;IAChD,GAAGR,cAAc;IACjB,GAAGO;EACP,CAAC;EACD,MAAME,GAAG,GAAGf,cAAc,CAACc,MAAM,CAAC;EAClC,IAAIH,KAAK,CAACI,GAAG,CAAC,EAAE;IACZ,OAAOJ,KAAK,CAACI,GAAG,CAAC;EACrB;EACA,MAAMC,MAAM,GAAG,IAAIjB,uBAAuB,CAACe,MAAM,CAAC;EAClDH,KAAK,CAACI,GAAG,CAAC,GAAGC,MAAM;EACnB,OAAOA,MAAM;AACjB,CAAC","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,43 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
exports.getDocumentClient = void 0;
|
|
8
|
-
var _clientDynamodb = require("@aws-sdk/client-dynamodb");
|
|
9
|
-
var _libDynamodb = require("@aws-sdk/lib-dynamodb");
|
|
10
|
-
var _crypto = _interopRequireDefault(require("crypto"));
|
|
11
|
-
var DEFAULT_CONFIG = {
|
|
1
|
+
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
|
|
3
|
+
import { createCacheKey } from "@webiny/utils";
|
|
4
|
+
let decorateDocumentClientCallable = undefined;
|
|
5
|
+
const DEFAULT_CONFIG = {
|
|
12
6
|
region: process.env.AWS_REGION
|
|
13
7
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var hash = _crypto.default.createHash("sha1");
|
|
17
|
-
hash.update(key);
|
|
18
|
-
return hash.digest("hex");
|
|
19
|
-
};
|
|
20
|
-
var documentClients = {};
|
|
8
|
+
const documentClients = {};
|
|
9
|
+
|
|
21
10
|
/**
|
|
22
11
|
* We do not want users to be able to change these options, so we are not exposing them.
|
|
23
12
|
*/
|
|
24
|
-
|
|
13
|
+
const documentClientConfig = {
|
|
25
14
|
marshallOptions: {
|
|
26
15
|
convertEmptyValues: true,
|
|
27
16
|
removeUndefinedValues: true,
|
|
28
17
|
convertClassInstanceToMap: true
|
|
29
18
|
}
|
|
30
19
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
export { getDocumentClient as createDocumentClient };
|
|
21
|
+
export const getDocumentClient = input => {
|
|
22
|
+
const config = {
|
|
23
|
+
...DEFAULT_CONFIG,
|
|
24
|
+
...input
|
|
25
|
+
};
|
|
26
|
+
const key = createCacheKey(config);
|
|
34
27
|
if (documentClients[key]) {
|
|
35
|
-
return documentClients[key];
|
|
28
|
+
return applyDecoration(documentClients[key]);
|
|
29
|
+
}
|
|
30
|
+
const client = new DynamoDBClient(config);
|
|
31
|
+
const documentClient = DynamoDBDocument.from(client, documentClientConfig);
|
|
32
|
+
return documentClients[key] = applyDecoration(documentClient);
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Client will not be decorated more than once.
|
|
36
|
+
*/
|
|
37
|
+
const applyDecoration = client => {
|
|
38
|
+
if (!decorateDocumentClientCallable) {
|
|
39
|
+
return client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @ts-expect-error
|
|
43
|
+
client.__decoratedByWebiny = true;
|
|
44
|
+
return decorateDocumentClientCallable(client);
|
|
45
|
+
};
|
|
46
|
+
export const decorateDocumentClient = cb => {
|
|
47
|
+
decorateDocumentClientCallable = cb;
|
|
48
|
+
/**
|
|
49
|
+
* Decorate already existing clients.
|
|
50
|
+
*/
|
|
51
|
+
for (const key in documentClients) {
|
|
52
|
+
cb(documentClients[key]);
|
|
36
53
|
}
|
|
37
|
-
var client = new _clientDynamodb.DynamoDBClient(config);
|
|
38
|
-
var documentClient = _libDynamodb.DynamoDBDocument.from(client, documentClientConfig);
|
|
39
|
-
documentClients[key] = documentClient;
|
|
40
|
-
return documentClient;
|
|
41
54
|
};
|
|
42
55
|
|
|
43
56
|
//# sourceMappingURL=getDocumentClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["DynamoDBClient","DynamoDBDocument","createCacheKey","decorateDocumentClientCallable","undefined","DEFAULT_CONFIG","region","process","env","AWS_REGION","documentClients","documentClientConfig","marshallOptions","convertEmptyValues","removeUndefinedValues","convertClassInstanceToMap","getDocumentClient","createDocumentClient","input","config","key","applyDecoration","client","documentClient","from","__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,SAASA,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,gBAAgB,QAAQ,uBAAuB;AACxD,SAASC,cAAc,QAAQ,eAAe;AAM9C,IAAIC,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;AAED,SAASC,iBAAiB,IAAIC,oBAAoB;AAElD,OAAO,MAAMD,iBAAiB,GAAIE,KAA4B,IAAuB;EACjF,MAAMC,MAA4B,GAAG;IACjC,GAAGd,cAAc;IACjB,GAAGa;EACP,CAAC;EACD,MAAME,GAAG,GAAGlB,cAAc,CAACiB,MAAM,CAAC;EAClC,IAAIT,eAAe,CAACU,GAAG,CAAC,EAAE;IACtB,OAAOC,eAAe,CAACX,eAAe,CAACU,GAAG,CAAC,CAAC;EAChD;EACA,MAAME,MAAM,GAAG,IAAItB,cAAc,CAACmB,MAAM,CAAC;EACzC,MAAMI,cAAc,GAAGtB,gBAAgB,CAACuB,IAAI,CAACF,MAAM,EAAEX,oBAAoB,CAAC;EAC1E,OAAQD,eAAe,CAACU,GAAG,CAAC,GAAGC,eAAe,CAACE,cAAc,CAAC;AAClE,CAAC;AACD;AACA;AACA;AACA,MAAMF,eAAe,GAAIC,MAAwB,IAAuB;EACpE,IAAI,CAACnB,8BAA8B,EAAE;IACjC,OAAOmB,MAAM;EACjB;;EAEA;EACAA,MAAM,CAACG,mBAAmB,GAAG,IAAI;EACjC,OAAOtB,8BAA8B,CAACmB,MAAM,CAAC;AACjD,CAAC;AAED,OAAO,MAAMI,sBAAsB,GAAIC,EAAmC,IAAW;EACjFxB,8BAA8B,GAAGwB,EAAE;EACnC;AACJ;AACA;EACI,KAAK,MAAMP,GAAG,IAAIV,eAAe,EAAE;IAC/BiB,EAAE,CAACjB,eAAe,CAACU,GAAG,CAAC,CAAC;EAC5B;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { QueryCommand
|
|
2
|
-
export type { DynamoDBClient, DynamoDBClientConfig, AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
1
|
+
export { QueryCommand } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
export type { ScanInput, ScanOutput, WriteRequest, 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
|
-
export { getDocumentClient } from "./getDocumentClient";
|
|
7
|
+
export { getDocumentClient } from "./getDocumentClient.js";
|
package/client-dynamodb/index.js
CHANGED
|
@@ -1,95 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BatchWriteCommand", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _libDynamodb.BatchWriteCommand;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "DeleteCommand", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _libDynamodb.DeleteCommand;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "DynamoDBDocument", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _libDynamodb.DynamoDBDocument;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "GetCommand", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _libDynamodb.GetCommand;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "GetCommandOutput", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _libDynamodb.GetCommandOutput;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "PutCommand", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _libDynamodb.PutCommand;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "QueryCommand", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _clientDynamodb.QueryCommand;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "ScanInput", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _clientDynamodb.ScanInput;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "ScanOutput", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _clientDynamodb.ScanOutput;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "UpdateCommand", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _libDynamodb.UpdateCommand;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "WriteRequest", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _clientDynamodb.WriteRequest;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "getDocumentClient", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _getDocumentClient.getDocumentClient;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "marshall", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _utilDynamodb.marshall;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "unmarshall", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _utilDynamodb.unmarshall;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var _clientDynamodb = require("@aws-sdk/client-dynamodb");
|
|
91
|
-
var _libDynamodb = require("@aws-sdk/lib-dynamodb");
|
|
92
|
-
var _utilDynamodb = require("@aws-sdk/util-dynamodb");
|
|
93
|
-
var _getDocumentClient = require("./getDocumentClient");
|
|
1
|
+
export { QueryCommand } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
export { BatchWriteCommand, BatchGetCommand, PutCommand, ScanCommand, GetCommand, UpdateCommand, DeleteCommand, DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
|
|
3
|
+
export { unmarshall, marshall } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
export { getDocumentClient } from "./getDocumentClient.js";
|
|
94
5
|
|
|
95
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["QueryCommand","BatchWriteCommand","BatchGetCommand","PutCommand","ScanCommand","GetCommand","UpdateCommand","DeleteCommand","DynamoDBDocument","unmarshall","marshall","getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand } from \"@aws-sdk/client-dynamodb\";\nexport type {\n ScanInput,\n ScanOutput,\n WriteRequest,\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.js\";\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,0BAA0B;AAYvD,SACIC,iBAAiB,EACjBC,eAAe,EACfC,UAAU,EACVC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,aAAa,EACbC,gBAAgB,QACb,uBAAuB;AAmB9B,SAASC,UAAU,EAAEC,QAAQ,QAAQ,wBAAwB;AAE7D,SAASC,iBAAiB","ignoreList":[]}
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge";
|
|
2
|
+
import { EventBridgeClient } from "@aws-sdk/client-eventbridge";
|
|
3
|
+
export { EventBridgeClient, PutEventsCommand } from "@aws-sdk/client-eventbridge";
|
|
4
|
+
export type { EventBridgeClientConfig, PutEventsRequestEntry, PutEventsCommandInput, PutEventsCommandOutput } from "@aws-sdk/client-eventbridge";
|
|
5
|
+
export declare const createEventBridgeClient: (config?: Partial<EventBridgeClientConfig>) => EventBridgeClient;
|
|
@@ -1,38 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientEventbridge.EventBridgeClient;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "PutEventsCommand", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _clientEventbridge.PutEventsCommand;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "PutEventsCommandInput", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _clientEventbridge.PutEventsCommandInput;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "PutEventsCommandOutput", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _clientEventbridge.PutEventsCommandOutput;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "PutEventsRequestEntry", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _clientEventbridge.PutEventsRequestEntry;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var _clientEventbridge = require("@aws-sdk/client-eventbridge");
|
|
1
|
+
import { EventBridgeClient } from "@aws-sdk/client-eventbridge";
|
|
2
|
+
export { EventBridgeClient, PutEventsCommand } from "@aws-sdk/client-eventbridge";
|
|
3
|
+
export const createEventBridgeClient = config => {
|
|
4
|
+
return new EventBridgeClient({
|
|
5
|
+
...config
|
|
6
|
+
});
|
|
7
|
+
};
|
|
37
8
|
|
|
38
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["EventBridgeClient","PutEventsCommand","createEventBridgeClient","config"],"sources":["index.ts"],"sourcesContent":["import type { EventBridgeClientConfig } from \"@aws-sdk/client-eventbridge\";\nimport { EventBridgeClient } from \"@aws-sdk/client-eventbridge\";\n\nexport { EventBridgeClient, PutEventsCommand } from \"@aws-sdk/client-eventbridge\";\n\nexport type {\n EventBridgeClientConfig,\n PutEventsRequestEntry,\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,SAASA,iBAAiB,QAAQ,6BAA6B;AAE/D,SAASA,iBAAiB,EAAEC,gBAAgB,QAAQ,6BAA6B;AASjF,OAAO,MAAMC,uBAAuB,GAAIC,MAAyC,IAAK;EAClF,OAAO,IAAIH,iBAAiB,CAAC;IACzB,GAAGG;EACP,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
package/client-iam/index.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "IAM", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientIam.IAM;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _clientIam = require("@aws-sdk/client-iam");
|
|
1
|
+
export { IAM } from "@aws-sdk/client-iam";
|
|
13
2
|
|
|
14
3
|
//# sourceMappingURL=index.js.map
|