@webiny/aws-sdk 5.44.1-beta.0 → 5.45.0-beta.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.js +1 -18
- package/client-iot/index.js.map +1 -1
- package/client-lambda/index.d.ts +5 -1
- package/client-lambda/index.js +19 -35
- package/client-lambda/index.js.map +1 -1
- package/client-s3/index.d.ts +5 -4
- package/client-s3/index.js +29 -156
- 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.js +35 -63
- 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 +30 -32
- package/types/index.js +1 -16
- package/types/index.js.map +1 -1
package/client-iam/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["IAM"],"sources":["index.ts"],"sourcesContent":["export { IAM } from \"@aws-sdk/client-iam\";\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,qBAAqB","ignoreList":[]}
|
package/client-iot/index.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DescribeEndpointCommand", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientIot.DescribeEndpointCommand;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "IoTClient", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _clientIot.IoTClient;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _clientIot = require("@aws-sdk/client-iot");
|
|
1
|
+
export { IoTClient, DescribeEndpointCommand } from "@aws-sdk/client-iot";
|
|
19
2
|
|
|
20
3
|
//# sourceMappingURL=index.js.map
|
package/client-iot/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["IoTClient","DescribeEndpointCommand"],"sources":["index.ts"],"sourcesContent":["export { IoTClient, DescribeEndpointCommand } from \"@aws-sdk/client-iot\";\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,uBAAuB,QAAQ,qBAAqB","ignoreList":[]}
|
package/client-lambda/index.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
2
|
+
import { LambdaClient } from "@aws-sdk/client-lambda";
|
|
3
|
+
export { LambdaClient, InvokeCommand, GetFunctionConfigurationCommand, UpdateFunctionConfigurationCommand, UpdateFunctionCodeCommand, InvocationType } from "@aws-sdk/client-lambda";
|
|
4
|
+
export type { InvokeCommandInput, LambdaClientConfig, InvokeCommandOutput, UpdateFunctionConfigurationCommandInput, UpdateFunctionConfigurationCommandOutput, UpdateFunctionCodeCommandInput, UpdateFunctionCodeCommandOutput } from "@aws-sdk/client-lambda";
|
|
5
|
+
export declare const createLambdaClient: (input?: Partial<LambdaClientConfig>) => LambdaClient;
|
package/client-lambda/index.js
CHANGED
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "LambdaClient", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _clientLambda.LambdaClient;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "UpdateFunctionCodeCommand", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _clientLambda.UpdateFunctionCodeCommand;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "UpdateFunctionConfigurationCommand", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _clientLambda.UpdateFunctionConfigurationCommand;
|
|
1
|
+
import { createCacheKey } from "@webiny/utils";
|
|
2
|
+
import { LambdaClient } from "@aws-sdk/client-lambda";
|
|
3
|
+
export { LambdaClient, InvokeCommand, GetFunctionConfigurationCommand, UpdateFunctionConfigurationCommand, UpdateFunctionCodeCommand, InvocationType } from "@aws-sdk/client-lambda";
|
|
4
|
+
const DEFAULT_CONFIG = {
|
|
5
|
+
region: process.env.AWS_REGION
|
|
6
|
+
};
|
|
7
|
+
const lambdaClients = {};
|
|
8
|
+
export const createLambdaClient = input => {
|
|
9
|
+
const config = {
|
|
10
|
+
...DEFAULT_CONFIG,
|
|
11
|
+
...input
|
|
12
|
+
};
|
|
13
|
+
const key = createCacheKey(config);
|
|
14
|
+
if (lambdaClients[key]) {
|
|
15
|
+
return lambdaClients[key];
|
|
34
16
|
}
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
const client = new LambdaClient(config);
|
|
18
|
+
lambdaClients[key] = client;
|
|
19
|
+
return client;
|
|
20
|
+
};
|
|
37
21
|
|
|
38
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createCacheKey","LambdaClient","InvokeCommand","GetFunctionConfigurationCommand","UpdateFunctionConfigurationCommand","UpdateFunctionCodeCommand","InvocationType","DEFAULT_CONFIG","region","process","env","AWS_REGION","lambdaClients","createLambdaClient","input","config","key","client"],"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 InvocationType\n} from \"@aws-sdk/client-lambda\";\n\nexport type {\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,SAASA,cAAc,QAAQ,eAAe;AAE9C,SAASC,YAAY,QAAQ,wBAAwB;AAErD,SACIA,YAAY,EACZC,aAAa,EACbC,+BAA+B,EAC/BC,kCAAkC,EAClCC,yBAAyB,EACzBC,cAAc,QACX,wBAAwB;AAY/B,MAAMC,cAAkC,GAAG;EACvCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,aAA2C,GAAG,CAAC,CAAC;AAEtD,OAAO,MAAMC,kBAAkB,GAAIC,KAAmC,IAAmB;EACrF,MAAMC,MAA0B,GAAG;IAC/B,GAAGR,cAAc;IACjB,GAAGO;EACP,CAAC;EACD,MAAME,GAAG,GAAGhB,cAAc,CAACe,MAAM,CAAC;EAElC,IAAIH,aAAa,CAACI,GAAG,CAAC,EAAE;IACpB,OAAOJ,aAAa,CAACI,GAAG,CAAC;EAC7B;EAEA,MAAMC,MAAM,GAAG,IAAIhB,YAAY,CAACc,MAAM,CAAC;EAEvCH,aAAa,CAACI,GAAG,CAAC,GAAGC,MAAM;EAE3B,OAAOA,MAAM;AACjB,CAAC","ignoreList":[]}
|
package/client-s3/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
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, DeleteObjectCommand, PutObjectCommand, UploadPartCommand, AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, S3, S3Client } from "@aws-sdk/client-s3";
|
|
4
|
+
export type { PutObjectRequest, PutObjectCommandInput, Part, 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";
|
|
4
5
|
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
5
|
-
export { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
|
|
6
|
+
export type { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
|
|
6
7
|
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
7
8
|
export interface S3ClientConfig extends BaseS3ClientConfig {
|
|
8
9
|
cache?: boolean;
|
package/client-s3/index.js
CHANGED
|
@@ -1,174 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, "CompleteMultipartUploadCommand", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _clientS.CompleteMultipartUploadCommand;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "CreateMultipartUploadCommand", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _clientS.CreateMultipartUploadCommand;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "DeleteObjectCommand", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _clientS.DeleteObjectCommand;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "GetObjectCommand", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _clientS.GetObjectCommand;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "HeadObjectCommand", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _clientS.HeadObjectCommand;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "ListObjectsCommand", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _clientS.ListObjectsCommand;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "ListObjectsV2Command", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function get() {
|
|
52
|
-
return _clientS.ListObjectsV2Command;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "ListPartsCommand", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function get() {
|
|
58
|
-
return _clientS.ListPartsCommand;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "ObjectCannedACL", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function get() {
|
|
64
|
-
return _clientS.ObjectCannedACL;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "Part", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function get() {
|
|
70
|
-
return _clientS.Part;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "PresignedPost", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function get() {
|
|
76
|
-
return _s3PresignedPost.PresignedPost;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(exports, "PresignedPostOptions", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function get() {
|
|
82
|
-
return _s3PresignedPost.PresignedPostOptions;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(exports, "PutObjectCommand", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function get() {
|
|
88
|
-
return _clientS.PutObjectCommand;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
Object.defineProperty(exports, "PutObjectCommandInput", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function get() {
|
|
94
|
-
return _clientS.PutObjectCommandInput;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(exports, "PutObjectRequest", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function get() {
|
|
100
|
-
return _clientS.PutObjectRequest;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, "S3", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function get() {
|
|
106
|
-
return _clientS.S3;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(exports, "S3Client", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function get() {
|
|
112
|
-
return _clientS.S3Client;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, "UploadPartCommand", {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function get() {
|
|
118
|
-
return _clientS.UploadPartCommand;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(exports, "createPresignedPost", {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
get: function get() {
|
|
124
|
-
return _s3PresignedPost.createPresignedPost;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
exports.createS3Client = exports.createS3 = void 0;
|
|
128
|
-
Object.defineProperty(exports, "getSignedUrl", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function get() {
|
|
131
|
-
return _s3RequestPresigner.getSignedUrl;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
135
|
-
var _clientS = require("@aws-sdk/client-s3");
|
|
136
|
-
var _utils = require("@webiny/utils");
|
|
137
|
-
var _s3PresignedPost = require("@aws-sdk/s3-presigned-post");
|
|
138
|
-
var _s3RequestPresigner = require("@aws-sdk/s3-request-presigner");
|
|
139
|
-
var s3ClientsCache = new Map();
|
|
140
|
-
var createS3Client = exports.createS3Client = function createS3Client(initial) {
|
|
141
|
-
var options = (0, _objectSpread2.default)({
|
|
142
|
-
region: process.env.AWS_REGION
|
|
143
|
-
}, initial);
|
|
144
|
-
var skipCache = options.cache === false;
|
|
1
|
+
import { S3, S3Client } from "@aws-sdk/client-s3";
|
|
2
|
+
import { createCacheKey } from "@webiny/utils";
|
|
3
|
+
export { CopyObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsCommand, UploadPartCopyCommand, ListObjectsV2Command, ListPartsCommand, ObjectCannedACL, DeleteObjectCommand, PutObjectCommand, UploadPartCommand, AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, S3, S3Client } from "@aws-sdk/client-s3";
|
|
4
|
+
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
5
|
+
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
6
|
+
const s3ClientsCache = new Map();
|
|
7
|
+
export const createS3Client = initial => {
|
|
8
|
+
const options = {
|
|
9
|
+
region: process.env.AWS_REGION,
|
|
10
|
+
...initial
|
|
11
|
+
};
|
|
12
|
+
const skipCache = options.cache === false;
|
|
145
13
|
delete options.cache;
|
|
146
14
|
if (skipCache) {
|
|
147
|
-
return new
|
|
15
|
+
return new S3Client({
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
148
18
|
}
|
|
149
|
-
|
|
19
|
+
const key = createCacheKey(options);
|
|
150
20
|
if (s3ClientsCache.has(key)) {
|
|
151
21
|
return s3ClientsCache.get(key);
|
|
152
22
|
}
|
|
153
|
-
|
|
23
|
+
const instance = new S3Client({
|
|
24
|
+
...options
|
|
25
|
+
});
|
|
154
26
|
s3ClientsCache.set(key, instance);
|
|
155
27
|
return instance;
|
|
156
28
|
};
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
region: process.env.AWS_REGION
|
|
161
|
-
|
|
162
|
-
|
|
29
|
+
const s3Cache = new Map();
|
|
30
|
+
export const createS3 = initial => {
|
|
31
|
+
const options = {
|
|
32
|
+
region: process.env.AWS_REGION,
|
|
33
|
+
...initial
|
|
34
|
+
};
|
|
35
|
+
const skipCache = options.cache === false;
|
|
163
36
|
delete options.cache;
|
|
164
37
|
if (skipCache) {
|
|
165
|
-
return new
|
|
38
|
+
return new S3(options);
|
|
166
39
|
}
|
|
167
|
-
|
|
40
|
+
const key = createCacheKey(options);
|
|
168
41
|
if (s3Cache.has(key)) {
|
|
169
42
|
return s3Cache.get(key);
|
|
170
43
|
}
|
|
171
|
-
|
|
44
|
+
const instance = new S3(options);
|
|
172
45
|
s3Cache.set(key, instance);
|
|
173
46
|
return instance;
|
|
174
47
|
};
|
package/client-s3/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["S3","S3Client","createCacheKey","CopyObjectCommand","GetObjectCommand","HeadObjectCommand","ListObjectsCommand","UploadPartCopyCommand","ListObjectsV2Command","ListPartsCommand","ObjectCannedACL","DeleteObjectCommand","PutObjectCommand","UploadPartCommand","AbortMultipartUploadCommand","CompleteMultipartUploadCommand","CreateMultipartUploadCommand","createPresignedPost","getSignedUrl","s3ClientsCache","Map","createS3Client","initial","options","region","process","env","AWS_REGION","skipCache","cache","key","has","get","instance","set","s3Cache","createS3"],"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 DeleteObjectCommand,\n PutObjectCommand,\n UploadPartCommand,\n AbortMultipartUploadCommand,\n CompleteMultipartUploadCommand,\n CreateMultipartUploadCommand,\n S3,\n S3Client\n} from \"@aws-sdk/client-s3\";\n\nexport type {\n PutObjectRequest,\n PutObjectCommandInput,\n Part,\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 type { 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,SAASA,EAAE,EAAEC,QAAQ,QAAQ,oBAAoB;AACjD,SAASC,cAAc,QAAQ,eAAe;AAE9C,SACIC,iBAAiB,EACjBC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,qBAAqB,EACrBC,oBAAoB,EACpBC,gBAAgB,EAChBC,eAAe,EACfC,mBAAmB,EACnBC,gBAAgB,EAChBC,iBAAiB,EACjBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,4BAA4B,EAC5BhB,EAAE,EACFC,QAAQ,QACL,oBAAoB;AAiC3B,SAASgB,mBAAmB,QAAQ,4BAA4B;AAGhE,SAASC,YAAY,QAAQ,+BAA+B;AAE5D,MAAMC,cAAc,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAMlD,OAAO,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,IAAI3B,QAAQ,CAAC;MAChB,GAAGsB;IACP,CAAC,CAAC;EACN;EAEA,MAAMO,GAAG,GAAG5B,cAAc,CAACqB,OAAO,CAAC;EACnC,IAAIJ,cAAc,CAACY,GAAG,CAACD,GAAG,CAAC,EAAE;IACzB,OAAOX,cAAc,CAACa,GAAG,CAACF,GAAG,CAAC;EAClC;EAEA,MAAMG,QAAQ,GAAG,IAAIhC,QAAQ,CAAC;IAC1B,GAAGsB;EACP,CAAC,CAAC;EACFJ,cAAc,CAACe,GAAG,CAACJ,GAAG,EAAEG,QAAQ,CAAC;EAEjC,OAAOA,QAAQ;AACnB,CAAC;AAED,MAAME,OAAO,GAAG,IAAIf,GAAG,CAAa,CAAC;AAErC,OAAO,MAAMgB,QAAQ,GAAId,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,IAAI5B,EAAE,CAACuB,OAAO,CAAC;EAC1B;EACA,MAAMO,GAAG,GAAG5B,cAAc,CAACqB,OAAO,CAAC;EACnC,IAAIY,OAAO,CAACJ,GAAG,CAACD,GAAG,CAAC,EAAE;IAClB,OAAOK,OAAO,CAACH,GAAG,CAACF,GAAG,CAAC;EAC3B;EAEA,MAAMG,QAAQ,GAAG,IAAIjC,EAAE,CAACuB,OAAO,CAAC;EAEhCY,OAAO,CAACD,GAAG,CAACJ,GAAG,EAAEG,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC","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,24 @@
|
|
|
1
|
+
import { createCacheKey } from "@webiny/utils";
|
|
2
|
+
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
3
|
+
export { SchedulerClient, GetScheduleCommand, CreateScheduleCommand, UpdateScheduleCommand, DeleteScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
4
|
+
const clients = {};
|
|
5
|
+
export const createSchedulerClient = (input = {}) => {
|
|
6
|
+
const options = {
|
|
7
|
+
region: process.env.AWS_REGION,
|
|
8
|
+
...input
|
|
9
|
+
};
|
|
10
|
+
const skipCache = options.cache === false;
|
|
11
|
+
delete options.cache;
|
|
12
|
+
if (skipCache) {
|
|
13
|
+
return new SchedulerClient(options);
|
|
14
|
+
}
|
|
15
|
+
const key = createCacheKey(options);
|
|
16
|
+
if (clients[key]) {
|
|
17
|
+
return clients[key];
|
|
18
|
+
}
|
|
19
|
+
const client = new SchedulerClient(options);
|
|
20
|
+
clients[key] = client;
|
|
21
|
+
return client;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createCacheKey","SchedulerClient","GetScheduleCommand","CreateScheduleCommand","UpdateScheduleCommand","DeleteScheduleCommand","clients","createSchedulerClient","input","options","region","process","env","AWS_REGION","skipCache","cache","key","client"],"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,SAASA,cAAc,QAAQ,eAAe;AAE9C,SAASC,eAAe,QAAQ,2BAA2B;AAE3D,SACIA,eAAe,EACfC,kBAAkB,EAClBC,qBAAqB,EACrBC,qBAAqB,EACrBC,qBAAqB,QAClB,2BAA2B;AAalC,MAAMC,OAAwC,GAAG,CAAC,CAAC;AAMnD,OAAO,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,IAAIb,eAAe,CAACQ,OAAO,CAAC;EACvC;EAEA,MAAMO,GAAG,GAAGhB,cAAc,CAACS,OAAO,CAAC;EAEnC,IAAIH,OAAO,CAACU,GAAG,CAAC,EAAE;IACd,OAAOV,OAAO,CAACU,GAAG,CAAC;EACvB;EAEA,MAAMC,MAAM,GAAG,IAAIhB,eAAe,CAACQ,OAAO,CAAC;EAE3CH,OAAO,CAACU,GAAG,CAAC,GAAGC,MAAM;EAErB,OAAOA,MAAM;AACjB,CAAC","ignoreList":[]}
|
package/client-sfn/index.js
CHANGED
|
@@ -1,83 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ListExecutionsCommand", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _clientSfn.ListExecutionsCommand;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "SFNClient", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _clientSfn.SFNClient;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "SFNServiceException", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _clientSfn.SFNServiceException;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "StartExecutionCommand", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _clientSfn.StartExecutionCommand;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
exports.triggerStepFunctionFactory = exports.listExecutionsFactory = exports.describeExecutionFactory = exports.createStepFunctionClient = void 0;
|
|
38
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
39
|
-
var _clientSfn = require("@aws-sdk/client-sfn");
|
|
40
|
-
var _utils = require("@webiny/utils");
|
|
41
|
-
var stepFunctionClientsCache = new Map();
|
|
42
|
-
var createStepFunctionClient = exports.createStepFunctionClient = function createStepFunctionClient(initial) {
|
|
43
|
-
var config = (0, _objectSpread2.default)({
|
|
44
|
-
region: process.env.AWS_REGION
|
|
45
|
-
}, initial);
|
|
46
|
-
var skipCache = config.cache === false;
|
|
1
|
+
import { DescribeExecutionCommand, ListExecutionsCommand, SFNClient, SFNServiceException, StartExecutionCommand } from "@aws-sdk/client-sfn";
|
|
2
|
+
import { createCacheKey } from "@webiny/utils";
|
|
3
|
+
export { SFNClient, DescribeExecutionCommand, SFNServiceException, StartExecutionCommand, ListExecutionsCommand };
|
|
4
|
+
const stepFunctionClientsCache = new Map();
|
|
5
|
+
export const createStepFunctionClient = initial => {
|
|
6
|
+
const config = {
|
|
7
|
+
region: process.env.AWS_REGION,
|
|
8
|
+
...initial
|
|
9
|
+
};
|
|
10
|
+
const skipCache = config.cache === false;
|
|
47
11
|
delete config.cache;
|
|
48
12
|
if (skipCache) {
|
|
49
|
-
return new
|
|
13
|
+
return new SFNClient({
|
|
14
|
+
...config
|
|
15
|
+
});
|
|
50
16
|
}
|
|
51
|
-
|
|
17
|
+
const key = createCacheKey(config);
|
|
52
18
|
if (stepFunctionClientsCache.has(key)) {
|
|
53
19
|
return stepFunctionClientsCache.get(key);
|
|
54
20
|
}
|
|
55
|
-
return new
|
|
21
|
+
return new SFNClient({
|
|
22
|
+
...config
|
|
23
|
+
});
|
|
56
24
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return async
|
|
60
|
-
|
|
25
|
+
export const triggerStepFunctionFactory = input => {
|
|
26
|
+
const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
|
|
27
|
+
return async params => {
|
|
28
|
+
const cmd = new StartExecutionCommand({
|
|
29
|
+
...params,
|
|
61
30
|
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,
|
|
62
31
|
name: params.name,
|
|
63
32
|
input: JSON.stringify(params.input)
|
|
64
|
-
})
|
|
33
|
+
});
|
|
65
34
|
return await client.send(cmd);
|
|
66
35
|
};
|
|
67
36
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return async
|
|
71
|
-
|
|
37
|
+
export const listExecutionsFactory = input => {
|
|
38
|
+
const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
|
|
39
|
+
return async params => {
|
|
40
|
+
const cmd = new ListExecutionsCommand({
|
|
41
|
+
...params,
|
|
72
42
|
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN
|
|
73
|
-
})
|
|
43
|
+
});
|
|
74
44
|
return await client.send(cmd);
|
|
75
45
|
};
|
|
76
46
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return async
|
|
80
|
-
|
|
47
|
+
export const describeExecutionFactory = input => {
|
|
48
|
+
const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
|
|
49
|
+
return async params => {
|
|
50
|
+
const cmd = new DescribeExecutionCommand({
|
|
51
|
+
...params
|
|
52
|
+
});
|
|
81
53
|
return await client.send(cmd);
|
|
82
54
|
};
|
|
83
55
|
};
|
package/client-sfn/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["DescribeExecutionCommand","ListExecutionsCommand","SFNClient","SFNServiceException","StartExecutionCommand","createCacheKey","stepFunctionClientsCache","Map","createStepFunctionClient","initial","config","region","process","env","AWS_REGION","skipCache","cache","key","has","get","triggerStepFunctionFactory","input","client","params","cmd","stateMachineArn","BG_TASK_SFN_ARN","name","JSON","stringify","send","listExecutionsFactory","describeExecutionFactory"],"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,SACIA,wBAAwB,EACxBC,qBAAqB,EACrBC,SAAS,EACTC,mBAAmB,EACnBC,qBAAqB,QAClB,qBAAqB;AAC5B,SAASC,cAAc,QAA4B,eAAe;AAElE,SACIH,SAAS,EACTF,wBAAwB,EACxBG,mBAAmB,EACnBC,qBAAqB,EACrBH,qBAAqB;AAqBzB,MAAMK,wBAAwB,GAAG,IAAIC,GAAG,CAAoB,CAAC;AAE7D,OAAO,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,IAAIb,SAAS,CAAC;MACjB,GAAGQ;IACP,CAAC,CAAC;EACN;EAEA,MAAMO,GAAG,GAAGZ,cAAc,CAACK,MAAM,CAAC;EAClC,IAAIJ,wBAAwB,CAACY,GAAG,CAACD,GAAG,CAAC,EAAE;IACnC,OAAOX,wBAAwB,CAACa,GAAG,CAACF,GAAG,CAAC;EAC5C;EAEA,OAAO,IAAIf,SAAS,CAAC;IACjB,GAAGQ;EACP,CAAC,CAAC;AACN,CAAC;AAED,OAAO,MAAMU,0BAA0B,GAAIC,KAAmC,IAAK;EAC/E,MAAMC,MAAM,GAAGD,KAAK,YAAYnB,SAAS,GAAGmB,KAAK,GAAGb,wBAAwB,CAACa,KAAK,CAAC;EACnF,OAAO,MACHE,MAAoC,IACG;IACvC,MAAMC,GAAG,GAAG,IAAIpB,qBAAqB,CAAC;MAClC,GAAGmB,MAAM;MACTE,eAAe,EAAEF,MAAM,CAACE,eAAe,IAAIb,OAAO,CAACC,GAAG,CAACa,eAAe;MACtEC,IAAI,EAAEJ,MAAM,CAACI,IAAI;MACjBN,KAAK,EAAEO,IAAI,CAACC,SAAS,CAACN,MAAM,CAACF,KAAK;IACtC,CAAC,CAAC;IACF,OAAO,MAAMC,MAAM,CAACQ,IAAI,CAACN,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAED,OAAO,MAAMO,qBAAqB,GAAIV,KAAmC,IAAK;EAC1E,MAAMC,MAAM,GAAGD,KAAK,YAAYnB,SAAS,GAAGmB,KAAK,GAAGb,wBAAwB,CAACa,KAAK,CAAC;EACnF,OAAO,MAAOE,MAAkC,IAA2C;IACvF,MAAMC,GAAG,GAAG,IAAIvB,qBAAqB,CAAC;MAClC,GAAGsB,MAAM;MACTE,eAAe,EAAEF,MAAM,CAACE,eAAe,IAAIb,OAAO,CAACC,GAAG,CAACa;IAC3D,CAAC,CAAC;IACF,OAAO,MAAMJ,MAAM,CAACQ,IAAI,CAACN,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAED,OAAO,MAAMQ,wBAAwB,GAAIX,KAAmC,IAAK;EAC7E,MAAMC,MAAM,GAAGD,KAAK,YAAYnB,SAAS,GAAGmB,KAAK,GAAGb,wBAAwB,CAACa,KAAK,CAAC;EACnF,OAAO,MACHE,MAAqC,IACK;IAC1C,MAAMC,GAAG,GAAG,IAAIxB,wBAAwB,CAAC;MACrC,GAAGuB;IACP,CAAC,CAAC;IACF,OAAO,MAAMD,MAAM,CAACQ,IAAI,CAACN,GAAG,CAAC;EACjC,CAAC;AACL,CAAC","ignoreList":[]}
|
package/client-sqs/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { SQSClient,
|
|
1
|
+
export { SQSClient, SendMessageBatchCommand } from "@aws-sdk/client-sqs";
|
|
2
|
+
export type { SendMessageBatchRequestEntry } from "@aws-sdk/client-sqs";
|
package/client-sqs/index.js
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "SQSClient", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientSqs.SQSClient;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "SendMessageBatchCommand", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _clientSqs.SendMessageBatchCommand;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "SendMessageBatchRequestEntry", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _clientSqs.SendMessageBatchRequestEntry;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
var _clientSqs = require("@aws-sdk/client-sqs");
|
|
1
|
+
export { SQSClient, SendMessageBatchCommand } from "@aws-sdk/client-sqs";
|
|
25
2
|
|
|
26
3
|
//# sourceMappingURL=index.js.map
|
package/client-sqs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["SQSClient","SendMessageBatchCommand"],"sources":["index.ts"],"sourcesContent":["export { SQSClient, SendMessageBatchCommand } from \"@aws-sdk/client-sqs\";\nexport type { SendMessageBatchRequestEntry } from \"@aws-sdk/client-sqs\";\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,uBAAuB,QAAQ,qBAAqB","ignoreList":[]}
|
package/client-sts/index.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "STS", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _clientSts.STS;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _clientSts = require("@aws-sdk/client-sts");
|
|
1
|
+
export { STS } from "@aws-sdk/client-sts";
|
|
13
2
|
|
|
14
3
|
//# sourceMappingURL=index.js.map
|
package/client-sts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["STS"],"sources":["index.ts"],"sourcesContent":["export { STS } from \"@aws-sdk/client-sts\";\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,qBAAqB","ignoreList":[]}
|