@webiny/aws-sdk 0.0.0-unstable.06b2ede40f
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/LICENSE +21 -0
- 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.d.ts +1 -0
- package/client-cloudfront/index.js +14 -0
- package/client-cloudfront/index.js.map +1 -0
- package/client-cloudwatch/index.d.ts +2 -0
- package/client-cloudwatch/index.js +57 -0
- package/client-cloudwatch/index.js.map +1 -0
- package/client-cognito-identity-provider/index.d.ts +5 -0
- package/client-cognito-identity-provider/index.js +76 -0
- package/client-cognito-identity-provider/index.js.map +1 -0
- package/client-dynamodb/getDocumentClient.d.ts +8 -0
- package/client-dynamodb/getDocumentClient.js +63 -0
- package/client-dynamodb/getDocumentClient.js.map +1 -0
- package/client-dynamodb/index.d.ts +7 -0
- package/client-dynamodb/index.js +101 -0
- package/client-dynamodb/index.js.map +1 -0
- package/client-eventbridge/index.d.ts +5 -0
- package/client-eventbridge/index.js +33 -0
- package/client-eventbridge/index.js.map +1 -0
- package/client-iam/index.d.ts +1 -0
- package/client-iam/index.js +14 -0
- package/client-iam/index.js.map +1 -0
- 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 -0
- package/client-lambda/index.js +58 -0
- package/client-lambda/index.js.map +1 -0
- package/client-s3/index.d.ts +12 -0
- package/client-s3/index.js +194 -0
- package/client-s3/index.js.map +1 -0
- 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 +15 -0
- package/client-sfn/index.js +96 -0
- package/client-sfn/index.js.map +1 -0
- package/client-sqs/index.d.ts +1 -0
- package/client-sqs/index.js +26 -0
- package/client-sqs/index.js.map +1 -0
- package/client-sts/index.d.ts +1 -0
- package/client-sts/index.js +14 -0
- package/client-sts/index.js.map +1 -0
- package/credential-providers/index.d.ts +1 -0
- package/credential-providers/index.js +14 -0
- package/credential-providers/index.js.map +1 -0
- package/lib-storage/index.d.ts +1 -0
- package/lib-storage/index.js +44 -0
- package/lib-storage/index.js.map +1 -0
- package/package.json +58 -0
- package/types/index.d.ts +1 -0
- package/types/index.js +18 -0
- package/types/index.js.map +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "GetFunctionConfigurationCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientLambda.GetFunctionConfigurationCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "InvokeCommand", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _clientLambda.InvokeCommand;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "LambdaClient", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientLambda.LambdaClient;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "UpdateFunctionCodeCommand", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _clientLambda.UpdateFunctionCodeCommand;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "UpdateFunctionConfigurationCommand", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _clientLambda.UpdateFunctionConfigurationCommand;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
exports.createLambdaClient = void 0;
|
|
37
|
+
var _utils = require("@webiny/utils");
|
|
38
|
+
var _clientLambda = require("@aws-sdk/client-lambda");
|
|
39
|
+
const DEFAULT_CONFIG = {
|
|
40
|
+
region: process.env.AWS_REGION
|
|
41
|
+
};
|
|
42
|
+
const lambdaClients = {};
|
|
43
|
+
const createLambdaClient = input => {
|
|
44
|
+
const config = {
|
|
45
|
+
...DEFAULT_CONFIG,
|
|
46
|
+
...input
|
|
47
|
+
};
|
|
48
|
+
const key = (0, _utils.createCacheKey)(config);
|
|
49
|
+
if (lambdaClients[key]) {
|
|
50
|
+
return lambdaClients[key];
|
|
51
|
+
}
|
|
52
|
+
const client = new _clientLambda.LambdaClient(config);
|
|
53
|
+
lambdaClients[key] = client;
|
|
54
|
+
return client;
|
|
55
|
+
};
|
|
56
|
+
exports.createLambdaClient = createLambdaClient;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","_clientLambda","DEFAULT_CONFIG","region","process","env","AWS_REGION","lambdaClients","createLambdaClient","input","config","key","createCacheKey","client","LambdaClient","exports"],"sources":["index.ts"],"sourcesContent":["import { createCacheKey } from \"@webiny/utils\";\nimport type { LambdaClientConfig } from \"@aws-sdk/client-lambda\";\nimport { LambdaClient } from \"@aws-sdk/client-lambda\";\n\nexport {\n LambdaClient,\n InvokeCommand,\n GetFunctionConfigurationCommand,\n UpdateFunctionConfigurationCommand,\n UpdateFunctionCodeCommand\n} from \"@aws-sdk/client-lambda\";\n\nexport type {\n InvocationType,\n InvokeCommandInput,\n LambdaClientConfig,\n InvokeCommandOutput,\n UpdateFunctionConfigurationCommandInput,\n UpdateFunctionConfigurationCommandOutput,\n UpdateFunctionCodeCommandInput,\n UpdateFunctionCodeCommandOutput\n} from \"@aws-sdk/client-lambda\";\n\nconst DEFAULT_CONFIG: LambdaClientConfig = {\n region: process.env.AWS_REGION\n};\n\nconst lambdaClients: Record<string, LambdaClient> = {};\n\nexport const createLambdaClient = (input?: Partial<LambdaClientConfig>): LambdaClient => {\n const config: LambdaClientConfig = {\n ...DEFAULT_CONFIG,\n ...input\n };\n const key = createCacheKey(config);\n\n if (lambdaClients[key]) {\n return lambdaClients[key];\n }\n\n const client = new LambdaClient(config);\n\n lambdaClients[key] = client;\n\n return client;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAqBA,MAAME,cAAkC,GAAG;EACvCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,aAA2C,GAAG,CAAC,CAAC;AAE/C,MAAMC,kBAAkB,GAAIC,KAAmC,IAAmB;EACrF,MAAMC,MAA0B,GAAG;IAC/B,GAAGR,cAAc;IACjB,GAAGO;EACP,CAAC;EACD,MAAME,GAAG,GAAG,IAAAC,qBAAc,EAACF,MAAM,CAAC;EAElC,IAAIH,aAAa,CAACI,GAAG,CAAC,EAAE;IACpB,OAAOJ,aAAa,CAACI,GAAG,CAAC;EAC7B;EAEA,MAAME,MAAM,GAAG,IAAIC,0BAAY,CAACJ,MAAM,CAAC;EAEvCH,aAAa,CAACI,GAAG,CAAC,GAAGE,MAAM;EAE3B,OAAOA,MAAM;AACjB,CAAC;AAACE,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { S3ClientConfig as BaseS3ClientConfig } from "@aws-sdk/client-s3";
|
|
2
|
+
import { S3, S3Client } from "@aws-sdk/client-s3";
|
|
3
|
+
export { CopyObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsCommand, UploadPartCopyCommand, ListObjectsV2Command, ListPartsCommand, ObjectCannedACL, Part, DeleteObjectCommand, PutObjectCommand, PutObjectCommandInput, PutObjectRequest, UploadPartCommand, AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, S3, S3Client } from "@aws-sdk/client-s3";
|
|
4
|
+
export type { CopyObjectCommandInput, CopyObjectCommandOutput, DeleteObjectCommandInput, DeleteObjectsCommandInput, DeleteObjectsCommandOutput, AbortMultipartUploadCommandInput, CompleteMultipartUploadCommandInput, UploadPartCopyCommandInput, CreateMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput, AbortMultipartUploadCommandOutput, CompleteMultipartUploadOutput, DeleteObjectOutput, GetObjectOutput, CompletedPart, GetObjectCommandOutput, HeadObjectOutput, HeadObjectCommandInput, HeadObjectCommandOutput, DeleteObjectCommandOutput, ListObjectsOutput, ListPartsCommandOutput, ListPartsOutput, PutObjectCommandOutput, UploadPartCommandOutput } from "@aws-sdk/client-s3";
|
|
5
|
+
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
6
|
+
export { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
|
|
7
|
+
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
8
|
+
export interface S3ClientConfig extends BaseS3ClientConfig {
|
|
9
|
+
cache?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const createS3Client: (initial?: S3ClientConfig) => S3Client;
|
|
12
|
+
export declare const createS3: (initial?: S3ClientConfig) => S3;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AbortMultipartUploadCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientS.AbortMultipartUploadCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "CompleteMultipartUploadCommand", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _clientS.CompleteMultipartUploadCommand;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "CopyObjectCommand", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientS.CopyObjectCommand;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "CreateMultipartUploadCommand", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _clientS.CreateMultipartUploadCommand;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "DeleteObjectCommand", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _clientS.DeleteObjectCommand;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "GetObjectCommand", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _clientS.GetObjectCommand;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "HeadObjectCommand", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _clientS.HeadObjectCommand;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "ListObjectsCommand", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _clientS.ListObjectsCommand;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ListObjectsV2Command", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _clientS.ListObjectsV2Command;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ListPartsCommand", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _clientS.ListPartsCommand;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ObjectCannedACL", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _clientS.ObjectCannedACL;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "Part", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _clientS.Part;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "PresignedPost", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _s3PresignedPost.PresignedPost;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "PresignedPostOptions", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _s3PresignedPost.PresignedPostOptions;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "PutObjectCommand", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _clientS.PutObjectCommand;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "PutObjectCommandInput", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _clientS.PutObjectCommandInput;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "PutObjectRequest", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _clientS.PutObjectRequest;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "S3", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _clientS.S3;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "S3Client", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _clientS.S3Client;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "UploadPartCommand", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _clientS.UploadPartCommand;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "UploadPartCopyCommand", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _clientS.UploadPartCopyCommand;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "createPresignedPost", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _s3PresignedPost.createPresignedPost;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
exports.createS3Client = exports.createS3 = void 0;
|
|
139
|
+
Object.defineProperty(exports, "getSignedUrl", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () {
|
|
142
|
+
return _s3RequestPresigner.getSignedUrl;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
var _clientS = require("@aws-sdk/client-s3");
|
|
146
|
+
var _utils = require("@webiny/utils");
|
|
147
|
+
var _s3PresignedPost = require("@aws-sdk/s3-presigned-post");
|
|
148
|
+
var _s3RequestPresigner = require("@aws-sdk/s3-request-presigner");
|
|
149
|
+
const s3ClientsCache = new Map();
|
|
150
|
+
const createS3Client = initial => {
|
|
151
|
+
const options = {
|
|
152
|
+
region: process.env.AWS_REGION,
|
|
153
|
+
...initial
|
|
154
|
+
};
|
|
155
|
+
const skipCache = options.cache === false;
|
|
156
|
+
delete options.cache;
|
|
157
|
+
if (skipCache) {
|
|
158
|
+
return new _clientS.S3Client({
|
|
159
|
+
...options
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
const key = (0, _utils.createCacheKey)(options);
|
|
163
|
+
if (s3ClientsCache.has(key)) {
|
|
164
|
+
return s3ClientsCache.get(key);
|
|
165
|
+
}
|
|
166
|
+
const instance = new _clientS.S3Client({
|
|
167
|
+
...options
|
|
168
|
+
});
|
|
169
|
+
s3ClientsCache.set(key, instance);
|
|
170
|
+
return instance;
|
|
171
|
+
};
|
|
172
|
+
exports.createS3Client = createS3Client;
|
|
173
|
+
const s3Cache = new Map();
|
|
174
|
+
const createS3 = initial => {
|
|
175
|
+
const options = {
|
|
176
|
+
region: process.env.AWS_REGION,
|
|
177
|
+
...initial
|
|
178
|
+
};
|
|
179
|
+
const skipCache = options.cache === false;
|
|
180
|
+
delete options.cache;
|
|
181
|
+
if (skipCache) {
|
|
182
|
+
return new _clientS.S3(options);
|
|
183
|
+
}
|
|
184
|
+
const key = (0, _utils.createCacheKey)(options);
|
|
185
|
+
if (s3Cache.has(key)) {
|
|
186
|
+
return s3Cache.get(key);
|
|
187
|
+
}
|
|
188
|
+
const instance = new _clientS.S3(options);
|
|
189
|
+
s3Cache.set(key, instance);
|
|
190
|
+
return instance;
|
|
191
|
+
};
|
|
192
|
+
exports.createS3 = createS3;
|
|
193
|
+
|
|
194
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientS","require","_utils","_s3PresignedPost","_s3RequestPresigner","s3ClientsCache","Map","createS3Client","initial","options","region","process","env","AWS_REGION","skipCache","cache","S3Client","key","createCacheKey","has","get","instance","set","exports","s3Cache","createS3","S3"],"sources":["index.ts"],"sourcesContent":["import type { S3ClientConfig as BaseS3ClientConfig } from \"@aws-sdk/client-s3\";\nimport { S3, S3Client } from \"@aws-sdk/client-s3\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n CopyObjectCommand,\n GetObjectCommand,\n HeadObjectCommand,\n ListObjectsCommand,\n UploadPartCopyCommand,\n ListObjectsV2Command,\n ListPartsCommand,\n ObjectCannedACL,\n Part,\n DeleteObjectCommand,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectRequest,\n UploadPartCommand,\n AbortMultipartUploadCommand,\n CompleteMultipartUploadCommand,\n CreateMultipartUploadCommand,\n S3,\n S3Client\n} from \"@aws-sdk/client-s3\";\n\nexport type {\n CopyObjectCommandInput,\n CopyObjectCommandOutput,\n DeleteObjectCommandInput,\n DeleteObjectsCommandInput,\n DeleteObjectsCommandOutput,\n AbortMultipartUploadCommandInput,\n CompleteMultipartUploadCommandInput,\n UploadPartCopyCommandInput,\n CreateMultipartUploadCommandInput,\n CompleteMultipartUploadCommandOutput,\n AbortMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectOutput,\n CompletedPart,\n GetObjectCommandOutput,\n HeadObjectOutput,\n HeadObjectCommandInput,\n HeadObjectCommandOutput,\n DeleteObjectCommandOutput,\n ListObjectsOutput,\n ListPartsCommandOutput,\n ListPartsOutput,\n PutObjectCommandOutput,\n UploadPartCommandOutput\n} from \"@aws-sdk/client-s3\";\n\nexport { createPresignedPost } from \"@aws-sdk/s3-presigned-post\";\nexport { PresignedPost, PresignedPostOptions } from \"@aws-sdk/s3-presigned-post\";\n\nexport { getSignedUrl } from \"@aws-sdk/s3-request-presigner\";\n\nconst s3ClientsCache = new Map<string, S3Client>();\n\nexport interface S3ClientConfig extends BaseS3ClientConfig {\n cache?: boolean;\n}\n\nexport const createS3Client = (initial?: S3ClientConfig): S3Client => {\n const options: S3ClientConfig = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new S3Client({\n ...options\n });\n }\n\n const key = createCacheKey(options);\n if (s3ClientsCache.has(key)) {\n return s3ClientsCache.get(key) as S3Client;\n }\n\n const instance = new S3Client({\n ...options\n });\n s3ClientsCache.set(key, instance);\n\n return instance;\n};\n\nconst s3Cache = new Map<string, S3>();\n\nexport const createS3 = (initial?: S3ClientConfig): S3 => {\n const options: S3ClientConfig = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new S3(options);\n }\n const key = createCacheKey(options);\n if (s3Cache.has(key)) {\n return s3Cache.get(key) as S3;\n }\n\n const instance = new S3(options);\n\n s3Cache.set(key, instance);\n return instance;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAoDA,IAAAE,gBAAA,GAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,MAAMI,cAAc,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAM3C,MAAMC,cAAc,GAAIC,OAAwB,IAAe;EAClE,MAAMC,OAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIE,iBAAQ,CAAC;MAChB,GAAGP;IACP,CAAC,CAAC;EACN;EAEA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,OAAO,CAAC;EACnC,IAAIJ,cAAc,CAACc,GAAG,CAACF,GAAG,CAAC,EAAE;IACzB,OAAOZ,cAAc,CAACe,GAAG,CAACH,GAAG,CAAC;EAClC;EAEA,MAAMI,QAAQ,GAAG,IAAIL,iBAAQ,CAAC;IAC1B,GAAGP;EACP,CAAC,CAAC;EACFJ,cAAc,CAACiB,GAAG,CAACL,GAAG,EAAEI,QAAQ,CAAC;EAEjC,OAAOA,QAAQ;AACnB,CAAC;AAACE,OAAA,CAAAhB,cAAA,GAAAA,cAAA;AAEF,MAAMiB,OAAO,GAAG,IAAIlB,GAAG,CAAa,CAAC;AAE9B,MAAMmB,QAAQ,GAAIjB,OAAwB,IAAS;EACtD,MAAMC,OAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIY,WAAE,CAACjB,OAAO,CAAC;EAC1B;EACA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,OAAO,CAAC;EACnC,IAAIe,OAAO,CAACL,GAAG,CAACF,GAAG,CAAC,EAAE;IAClB,OAAOO,OAAO,CAACJ,GAAG,CAACH,GAAG,CAAC;EAC3B;EAEA,MAAMI,QAAQ,GAAG,IAAIK,WAAE,CAACjB,OAAO,CAAC;EAEhCe,OAAO,CAACF,GAAG,CAACL,GAAG,EAAEI,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC;AAACE,OAAA,CAAAE,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SchedulerClientConfig as BaseSchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
2
|
+
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
3
|
+
export { SchedulerClient, GetScheduleCommand, CreateScheduleCommand, UpdateScheduleCommand, DeleteScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
4
|
+
export type { GetScheduleCommandInput, GetScheduleCommandOutput, CreateScheduleCommandInput, CreateScheduleCommandOutput, UpdateScheduleCommandInput, UpdateScheduleCommandOutput, DeleteScheduleCommandInput, DeleteScheduleCommandOutput } from "@aws-sdk/client-scheduler";
|
|
5
|
+
export interface SchedulerClientConfig extends BaseSchedulerClientConfig {
|
|
6
|
+
cache?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const createSchedulerClient: (input?: Partial<SchedulerClientConfig>) => SchedulerClient;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CreateScheduleCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientScheduler.CreateScheduleCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DeleteScheduleCommand", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _clientScheduler.DeleteScheduleCommand;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "GetScheduleCommand", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientScheduler.GetScheduleCommand;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SchedulerClient", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _clientScheduler.SchedulerClient;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "UpdateScheduleCommand", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _clientScheduler.UpdateScheduleCommand;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
exports.createSchedulerClient = void 0;
|
|
37
|
+
var _utils = require("@webiny/utils");
|
|
38
|
+
var _clientScheduler = require("@aws-sdk/client-scheduler");
|
|
39
|
+
const clients = {};
|
|
40
|
+
const createSchedulerClient = (input = {}) => {
|
|
41
|
+
const options = {
|
|
42
|
+
region: process.env.AWS_REGION,
|
|
43
|
+
...input
|
|
44
|
+
};
|
|
45
|
+
const skipCache = options.cache === false;
|
|
46
|
+
delete options.cache;
|
|
47
|
+
if (skipCache) {
|
|
48
|
+
return new _clientScheduler.SchedulerClient(options);
|
|
49
|
+
}
|
|
50
|
+
const key = (0, _utils.createCacheKey)(options);
|
|
51
|
+
if (clients[key]) {
|
|
52
|
+
return clients[key];
|
|
53
|
+
}
|
|
54
|
+
const client = new _clientScheduler.SchedulerClient(options);
|
|
55
|
+
clients[key] = client;
|
|
56
|
+
return client;
|
|
57
|
+
};
|
|
58
|
+
exports.createSchedulerClient = createSchedulerClient;
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","_clientScheduler","clients","createSchedulerClient","input","options","region","process","env","AWS_REGION","skipCache","cache","SchedulerClient","key","createCacheKey","client","exports"],"sources":["index.ts"],"sourcesContent":["import { createCacheKey } from \"@webiny/utils\";\nimport type { SchedulerClientConfig as BaseSchedulerClientConfig } from \"@aws-sdk/client-scheduler\";\nimport { SchedulerClient } from \"@aws-sdk/client-scheduler\";\n\nexport {\n SchedulerClient,\n GetScheduleCommand,\n CreateScheduleCommand,\n UpdateScheduleCommand,\n DeleteScheduleCommand\n} from \"@aws-sdk/client-scheduler\";\n\nexport type {\n GetScheduleCommandInput,\n GetScheduleCommandOutput,\n CreateScheduleCommandInput,\n CreateScheduleCommandOutput,\n UpdateScheduleCommandInput,\n UpdateScheduleCommandOutput,\n DeleteScheduleCommandInput,\n DeleteScheduleCommandOutput\n} from \"@aws-sdk/client-scheduler\";\n\nconst clients: Record<string, SchedulerClient> = {};\n\nexport interface SchedulerClientConfig extends BaseSchedulerClientConfig {\n cache?: boolean;\n}\n\nexport const createSchedulerClient = (\n input: Partial<SchedulerClientConfig> = {}\n): SchedulerClient => {\n const options: SchedulerClientConfig = {\n region: process.env.AWS_REGION,\n ...input\n };\n\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new SchedulerClient(options);\n }\n\n const key = createCacheKey(options);\n\n if (clients[key]) {\n return clients[key];\n }\n\n const client = new SchedulerClient(options);\n\n clients[key] = client;\n\n return client;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA;AAqBA,MAAME,OAAwC,GAAG,CAAC,CAAC;AAM5C,MAAMC,qBAAqB,GAAGA,CACjCC,KAAqC,GAAG,CAAC,CAAC,KACxB;EAClB,MAAMC,OAA8B,GAAG;IACnCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EAED,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIE,gCAAe,CAACP,OAAO,CAAC;EACvC;EAEA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,OAAO,CAAC;EAEnC,IAAIH,OAAO,CAACW,GAAG,CAAC,EAAE;IACd,OAAOX,OAAO,CAACW,GAAG,CAAC;EACvB;EAEA,MAAME,MAAM,GAAG,IAAIH,gCAAe,CAACP,OAAO,CAAC;EAE3CH,OAAO,CAACW,GAAG,CAAC,GAAGE,MAAM;EAErB,OAAOA,MAAM;AACjB,CAAC;AAACC,OAAA,CAAAb,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DescribeExecutionCommandInput, DescribeExecutionCommandOutput, ListExecutionsCommandInput, ListExecutionsCommandOutput, SFNClientConfig as BaseSFNClientConfig, StartExecutionCommandInput, StartExecutionCommandOutput } from "@aws-sdk/client-sfn";
|
|
2
|
+
import { DescribeExecutionCommand, ListExecutionsCommand, SFNClient, SFNServiceException, StartExecutionCommand } from "@aws-sdk/client-sfn";
|
|
3
|
+
import { type GenericRecord } from "@webiny/utils";
|
|
4
|
+
export { SFNClient, DescribeExecutionCommand, SFNServiceException, StartExecutionCommand, ListExecutionsCommand };
|
|
5
|
+
export type { DescribeExecutionCommandInput, DescribeExecutionCommandOutput, StartExecutionCommandInput, StartExecutionCommandOutput, ListExecutionsCommandInput, ListExecutionsCommandOutput };
|
|
6
|
+
export interface SFNClientConfig extends BaseSFNClientConfig {
|
|
7
|
+
cache?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface TriggerStepFunctionParams<T extends GenericRecord = GenericRecord> extends Partial<Omit<StartExecutionCommandInput, "input">> {
|
|
10
|
+
input: T;
|
|
11
|
+
}
|
|
12
|
+
export declare const createStepFunctionClient: (initial?: SFNClientConfig) => SFNClient;
|
|
13
|
+
export declare const triggerStepFunctionFactory: (input?: SFNClient | SFNClientConfig) => <T extends GenericRecord = GenericRecord>(params: TriggerStepFunctionParams<T>) => Promise<StartExecutionCommandOutput>;
|
|
14
|
+
export declare const listExecutionsFactory: (input?: SFNClient | SFNClientConfig) => (params: ListExecutionsCommandInput) => Promise<ListExecutionsCommandOutput>;
|
|
15
|
+
export declare const describeExecutionFactory: (input?: SFNClient | SFNClientConfig) => (params: DescribeExecutionCommandInput) => Promise<DescribeExecutionCommandOutput>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DescribeExecutionCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientSfn.DescribeExecutionCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ListExecutionsCommand", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _clientSfn.ListExecutionsCommand;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "SFNClient", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientSfn.SFNClient;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SFNServiceException", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _clientSfn.SFNServiceException;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "StartExecutionCommand", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _clientSfn.StartExecutionCommand;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
exports.triggerStepFunctionFactory = exports.listExecutionsFactory = exports.describeExecutionFactory = exports.createStepFunctionClient = void 0;
|
|
37
|
+
var _clientSfn = require("@aws-sdk/client-sfn");
|
|
38
|
+
var _utils = require("@webiny/utils");
|
|
39
|
+
const stepFunctionClientsCache = new Map();
|
|
40
|
+
const createStepFunctionClient = initial => {
|
|
41
|
+
const config = {
|
|
42
|
+
region: process.env.AWS_REGION,
|
|
43
|
+
...initial
|
|
44
|
+
};
|
|
45
|
+
const skipCache = config.cache === false;
|
|
46
|
+
delete config.cache;
|
|
47
|
+
if (skipCache) {
|
|
48
|
+
return new _clientSfn.SFNClient({
|
|
49
|
+
...config
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const key = (0, _utils.createCacheKey)(config);
|
|
53
|
+
if (stepFunctionClientsCache.has(key)) {
|
|
54
|
+
return stepFunctionClientsCache.get(key);
|
|
55
|
+
}
|
|
56
|
+
return new _clientSfn.SFNClient({
|
|
57
|
+
...config
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
exports.createStepFunctionClient = createStepFunctionClient;
|
|
61
|
+
const triggerStepFunctionFactory = input => {
|
|
62
|
+
const client = input instanceof _clientSfn.SFNClient ? input : createStepFunctionClient(input);
|
|
63
|
+
return async params => {
|
|
64
|
+
const cmd = new _clientSfn.StartExecutionCommand({
|
|
65
|
+
...params,
|
|
66
|
+
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,
|
|
67
|
+
name: params.name,
|
|
68
|
+
input: JSON.stringify(params.input)
|
|
69
|
+
});
|
|
70
|
+
return await client.send(cmd);
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
exports.triggerStepFunctionFactory = triggerStepFunctionFactory;
|
|
74
|
+
const listExecutionsFactory = input => {
|
|
75
|
+
const client = input instanceof _clientSfn.SFNClient ? input : createStepFunctionClient(input);
|
|
76
|
+
return async params => {
|
|
77
|
+
const cmd = new _clientSfn.ListExecutionsCommand({
|
|
78
|
+
...params,
|
|
79
|
+
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN
|
|
80
|
+
});
|
|
81
|
+
return await client.send(cmd);
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
exports.listExecutionsFactory = listExecutionsFactory;
|
|
85
|
+
const describeExecutionFactory = input => {
|
|
86
|
+
const client = input instanceof _clientSfn.SFNClient ? input : createStepFunctionClient(input);
|
|
87
|
+
return async params => {
|
|
88
|
+
const cmd = new _clientSfn.DescribeExecutionCommand({
|
|
89
|
+
...params
|
|
90
|
+
});
|
|
91
|
+
return await client.send(cmd);
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
exports.describeExecutionFactory = describeExecutionFactory;
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientSfn","require","_utils","stepFunctionClientsCache","Map","createStepFunctionClient","initial","config","region","process","env","AWS_REGION","skipCache","cache","SFNClient","key","createCacheKey","has","get","exports","triggerStepFunctionFactory","input","client","params","cmd","StartExecutionCommand","stateMachineArn","BG_TASK_SFN_ARN","name","JSON","stringify","send","listExecutionsFactory","ListExecutionsCommand","describeExecutionFactory","DescribeExecutionCommand"],"sources":["index.ts"],"sourcesContent":["import type {\n DescribeExecutionCommandInput,\n DescribeExecutionCommandOutput,\n ListExecutionsCommandInput,\n ListExecutionsCommandOutput,\n SFNClientConfig as BaseSFNClientConfig,\n StartExecutionCommandInput,\n StartExecutionCommandOutput\n} from \"@aws-sdk/client-sfn\";\nimport {\n DescribeExecutionCommand,\n ListExecutionsCommand,\n SFNClient,\n SFNServiceException,\n StartExecutionCommand\n} from \"@aws-sdk/client-sfn\";\nimport { createCacheKey, type GenericRecord } from \"@webiny/utils\";\n\nexport {\n SFNClient,\n DescribeExecutionCommand,\n SFNServiceException,\n StartExecutionCommand,\n ListExecutionsCommand\n};\n\nexport type {\n DescribeExecutionCommandInput,\n DescribeExecutionCommandOutput,\n StartExecutionCommandInput,\n StartExecutionCommandOutput,\n ListExecutionsCommandInput,\n ListExecutionsCommandOutput\n};\n\nexport interface SFNClientConfig extends BaseSFNClientConfig {\n cache?: boolean;\n}\n\nexport interface TriggerStepFunctionParams<T extends GenericRecord = GenericRecord>\n extends Partial<Omit<StartExecutionCommandInput, \"input\">> {\n input: T;\n}\n\nconst stepFunctionClientsCache = new Map<string, SFNClient>();\n\nexport const createStepFunctionClient = (initial?: SFNClientConfig): SFNClient => {\n const config: SFNClientConfig = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const skipCache = config.cache === false;\n delete config.cache;\n if (skipCache) {\n return new SFNClient({\n ...config\n });\n }\n\n const key = createCacheKey(config);\n if (stepFunctionClientsCache.has(key)) {\n return stepFunctionClientsCache.get(key) as SFNClient;\n }\n\n return new SFNClient({\n ...config\n });\n};\n\nexport const triggerStepFunctionFactory = (input?: SFNClient | SFNClientConfig) => {\n const client = input instanceof SFNClient ? input : createStepFunctionClient(input);\n return async <T extends GenericRecord = GenericRecord>(\n params: TriggerStepFunctionParams<T>\n ): Promise<StartExecutionCommandOutput> => {\n const cmd = new StartExecutionCommand({\n ...params,\n stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,\n name: params.name,\n input: JSON.stringify(params.input)\n });\n return await client.send(cmd);\n };\n};\n\nexport const listExecutionsFactory = (input?: SFNClient | SFNClientConfig) => {\n const client = input instanceof SFNClient ? input : createStepFunctionClient(input);\n return async (params: ListExecutionsCommandInput): Promise<ListExecutionsCommandOutput> => {\n const cmd = new ListExecutionsCommand({\n ...params,\n stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN\n });\n return await client.send(cmd);\n };\n};\n\nexport const describeExecutionFactory = (input?: SFNClient | SFNClientConfig) => {\n const client = input instanceof SFNClient ? input : createStepFunctionClient(input);\n return async (\n params: DescribeExecutionCommandInput\n ): Promise<DescribeExecutionCommandOutput> => {\n const cmd = new DescribeExecutionCommand({\n ...params\n });\n return await client.send(cmd);\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AA4BA,MAAME,wBAAwB,GAAG,IAAIC,GAAG,CAAoB,CAAC;AAEtD,MAAMC,wBAAwB,GAAIC,OAAyB,IAAgB;EAC9E,MAAMC,MAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,MAAM,CAACM,KAAK,KAAK,KAAK;EACxC,OAAON,MAAM,CAACM,KAAK;EACnB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIE,oBAAS,CAAC;MACjB,GAAGP;IACP,CAAC,CAAC;EACN;EAEA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,MAAM,CAAC;EAClC,IAAIJ,wBAAwB,CAACc,GAAG,CAACF,GAAG,CAAC,EAAE;IACnC,OAAOZ,wBAAwB,CAACe,GAAG,CAACH,GAAG,CAAC;EAC5C;EAEA,OAAO,IAAID,oBAAS,CAAC;IACjB,GAAGP;EACP,CAAC,CAAC;AACN,CAAC;AAACY,OAAA,CAAAd,wBAAA,GAAAA,wBAAA;AAEK,MAAMe,0BAA0B,GAAIC,KAAmC,IAAK;EAC/E,MAAMC,MAAM,GAAGD,KAAK,YAAYP,oBAAS,GAAGO,KAAK,GAAGhB,wBAAwB,CAACgB,KAAK,CAAC;EACnF,OAAO,MACHE,MAAoC,IACG;IACvC,MAAMC,GAAG,GAAG,IAAIC,gCAAqB,CAAC;MAClC,GAAGF,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIjB,OAAO,CAACC,GAAG,CAACiB,eAAe;MACtEC,IAAI,EAAEL,MAAM,CAACK,IAAI;MACjBP,KAAK,EAAEQ,IAAI,CAACC,SAAS,CAACP,MAAM,CAACF,KAAK;IACtC,CAAC,CAAC;IACF,OAAO,MAAMC,MAAM,CAACS,IAAI,CAACP,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACL,OAAA,CAAAC,0BAAA,GAAAA,0BAAA;AAEK,MAAMY,qBAAqB,GAAIX,KAAmC,IAAK;EAC1E,MAAMC,MAAM,GAAGD,KAAK,YAAYP,oBAAS,GAAGO,KAAK,GAAGhB,wBAAwB,CAACgB,KAAK,CAAC;EACnF,OAAO,MAAOE,MAAkC,IAA2C;IACvF,MAAMC,GAAG,GAAG,IAAIS,gCAAqB,CAAC;MAClC,GAAGV,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIjB,OAAO,CAACC,GAAG,CAACiB;IAC3D,CAAC,CAAC;IACF,OAAO,MAAML,MAAM,CAACS,IAAI,CAACP,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACL,OAAA,CAAAa,qBAAA,GAAAA,qBAAA;AAEK,MAAME,wBAAwB,GAAIb,KAAmC,IAAK;EAC7E,MAAMC,MAAM,GAAGD,KAAK,YAAYP,oBAAS,GAAGO,KAAK,GAAGhB,wBAAwB,CAACgB,KAAK,CAAC;EACnF,OAAO,MACHE,MAAqC,IACK;IAC1C,MAAMC,GAAG,GAAG,IAAIW,mCAAwB,CAAC;MACrC,GAAGZ;IACP,CAAC,CAAC;IACF,OAAO,MAAMD,MAAM,CAACS,IAAI,CAACP,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACL,OAAA,CAAAe,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SQSClient, SendMessageBatchRequestEntry, SendMessageBatchCommand } from "@aws-sdk/client-sqs";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SQSClient", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientSqs.SQSClient;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SendMessageBatchCommand", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _clientSqs.SendMessageBatchCommand;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "SendMessageBatchRequestEntry", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _clientSqs.SendMessageBatchRequestEntry;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _clientSqs = require("@aws-sdk/client-sqs");
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientSqs","require"],"sources":["index.ts"],"sourcesContent":["export {\n SQSClient,\n SendMessageBatchRequestEntry,\n SendMessageBatchCommand\n} from \"@aws-sdk/client-sqs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { STS } from "@aws-sdk/client-sts";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "STS", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _clientSts.STS;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _clientSts = require("@aws-sdk/client-sts");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientSts","require"],"sources":["index.ts"],"sourcesContent":["export { STS } from \"@aws-sdk/client-sts\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { fromTemporaryCredentials } from "@aws-sdk/credential-providers";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "fromTemporaryCredentials", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _credentialProviders.fromTemporaryCredentials;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _credentialProviders = require("@aws-sdk/credential-providers");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_credentialProviders","require"],"sources":["index.ts"],"sourcesContent":["export { fromTemporaryCredentials } from \"@aws-sdk/credential-providers\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Upload, Options, Progress, BodyDataTypes, RawDataPart, Configuration } from "@aws-sdk/lib-storage";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "BodyDataTypes", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _libStorage.BodyDataTypes;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Configuration", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _libStorage.Configuration;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "Options", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _libStorage.Options;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "Progress", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _libStorage.Progress;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "RawDataPart", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _libStorage.RawDataPart;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "Upload", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _libStorage.Upload;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _libStorage = require("@aws-sdk/lib-storage");
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_libStorage","require"],"sources":["index.ts"],"sourcesContent":["export {\n Upload,\n Options,\n Progress,\n BodyDataTypes,\n RawDataPart,\n Configuration\n} from \"@aws-sdk/lib-storage\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
|