@webiny/aws-sdk 0.0.0-unstable.2696f9d9e8
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-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 +1 -0
- package/client-cognito-identity-provider/index.js +32 -0
- package/client-cognito-identity-provider/index.js.map +1 -0
- package/client-dynamodb/getDocumentClient.d.ts +3 -0
- package/client-dynamodb/getDocumentClient.js +39 -0
- package/client-dynamodb/getDocumentClient.js.map +1 -0
- package/client-dynamodb/index.d.ts +6 -0
- package/client-dynamodb/index.js +95 -0
- package/client-dynamodb/index.js.map +1 -0
- package/client-eventbridge/index.d.ts +2 -0
- package/client-eventbridge/index.js +50 -0
- package/client-eventbridge/index.js.map +1 -0
- package/client-eventbridge/types.d.ts +29 -0
- package/client-eventbridge/types.js +7 -0
- package/client-eventbridge/types.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-lambda/index.d.ts +1 -0
- package/client-lambda/index.js +20 -0
- package/client-lambda/index.js.map +1 -0
- package/client-s3/index.d.ts +4 -0
- package/client-s3/index.js +154 -0
- package/client-s3/index.js.map +1 -0
- package/client-sfn/index.d.ts +10 -0
- package/client-sfn/index.js +49 -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 +14 -0
- package/lib-storage/index.js.map +1 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Webiny
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CloudFront } from "@aws-sdk/client-cloudfront";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
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");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientCloudfront","require"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
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");
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientCloudwatchEvents","require","_clientCloudwatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand,\n PutRuleCommandInput\n} from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AASA,IAAAC,qBAAA,GAAAD,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdminCreateUserRequest, CognitoIdentityProvider, ListUsersResponse, UserType } from "@aws-sdk/client-cognito-identity-provider";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AdminCreateUserRequest", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _clientCognitoIdentityProvider.AdminCreateUserRequest;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "CognitoIdentityProvider", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _clientCognitoIdentityProvider.CognitoIdentityProvider;
|
|
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;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _clientCognitoIdentityProvider = require("@aws-sdk/client-cognito-identity-provider");
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientCognitoIdentityProvider","require"],"sources":["index.ts"],"sourcesContent":["export {\n AdminCreateUserRequest,\n CognitoIdentityProvider,\n ListUsersResponse,\n UserType\n} from \"@aws-sdk/client-cognito-identity-provider\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
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 = {
|
|
12
|
+
region: process.env.AWS_REGION
|
|
13
|
+
};
|
|
14
|
+
var createKey = function createKey(config) {
|
|
15
|
+
var key = JSON.stringify(config);
|
|
16
|
+
var hash = _crypto.default.createHash("sha1");
|
|
17
|
+
hash.update(key);
|
|
18
|
+
return hash.digest("hex");
|
|
19
|
+
};
|
|
20
|
+
var documentClients = {};
|
|
21
|
+
var getDocumentClient = function getDocumentClient(input) {
|
|
22
|
+
var config = input || DEFAULT_CONFIG;
|
|
23
|
+
var key = createKey(config);
|
|
24
|
+
if (documentClients[key]) {
|
|
25
|
+
return documentClients[key];
|
|
26
|
+
}
|
|
27
|
+
var client = new _clientDynamodb.DynamoDBClient(config);
|
|
28
|
+
var documentClient = _libDynamodb.DynamoDBDocument.from(client, {
|
|
29
|
+
marshallOptions: {
|
|
30
|
+
convertEmptyValues: true,
|
|
31
|
+
removeUndefinedValues: true
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
documentClients[key] = documentClient;
|
|
35
|
+
return documentClient;
|
|
36
|
+
};
|
|
37
|
+
exports.getDocumentClient = getDocumentClient;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=getDocumentClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientDynamodb","require","_libDynamodb","_crypto","_interopRequireDefault","DEFAULT_CONFIG","region","process","env","AWS_REGION","createKey","config","key","JSON","stringify","hash","crypto","createHash","update","digest","documentClients","getDocumentClient","input","client","DynamoDBClient","documentClient","DynamoDBDocument","from","marshallOptions","convertEmptyValues","removeUndefinedValues","exports"],"sources":["getDocumentClient.ts"],"sourcesContent":["import { DynamoDBClient, DynamoDBClientConfig } from \"@aws-sdk/client-dynamodb\";\nimport { DynamoDBDocument } from \"@aws-sdk/lib-dynamodb\";\nimport crypto from \"crypto\";\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst createKey = (config: DynamoDBClientConfig): string => {\n const key = JSON.stringify(config);\n const hash = crypto.createHash(\"sha1\");\n hash.update(key);\n return hash.digest(\"hex\");\n};\n\nconst documentClients: Record<string, DynamoDBDocument> = {};\n\nexport const getDocumentClient = (input?: DynamoDBClientConfig) => {\n const config = input || DEFAULT_CONFIG;\n const key = createKey(config);\n if (documentClients[key]) {\n return documentClients[key];\n }\n const client = new DynamoDBClient(config);\n const documentClient = DynamoDBDocument.from(client, {\n marshallOptions: {\n convertEmptyValues: true,\n removeUndefinedValues: true\n }\n });\n documentClients[key] = documentClient;\n return documentClient;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAMI,cAAc,GAAG;EACnBC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAA4B,EAAa;EACxD,IAAMC,GAAG,GAAGC,IAAI,CAACC,SAAS,CAACH,MAAM,CAAC;EAClC,IAAMI,IAAI,GAAGC,eAAM,CAACC,UAAU,CAAC,MAAM,CAAC;EACtCF,IAAI,CAACG,MAAM,CAACN,GAAG,CAAC;EAChB,OAAOG,IAAI,CAACI,MAAM,CAAC,KAAK,CAAC;AAC7B,CAAC;AAED,IAAMC,eAAiD,GAAG,CAAC,CAAC;AAErD,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,KAA4B,EAAK;EAC/D,IAAMX,MAAM,GAAGW,KAAK,IAAIjB,cAAc;EACtC,IAAMO,GAAG,GAAGF,SAAS,CAACC,MAAM,CAAC;EAC7B,IAAIS,eAAe,CAACR,GAAG,CAAC,EAAE;IACtB,OAAOQ,eAAe,CAACR,GAAG,CAAC;EAC/B;EACA,IAAMW,MAAM,GAAG,IAAIC,8BAAc,CAACb,MAAM,CAAC;EACzC,IAAMc,cAAc,GAAGC,6BAAgB,CAACC,IAAI,CAACJ,MAAM,EAAE;IACjDK,eAAe,EAAE;MACbC,kBAAkB,EAAE,IAAI;MACxBC,qBAAqB,EAAE;IAC3B;EACJ,CAAC,CAAC;EACFV,eAAe,CAACR,GAAG,CAAC,GAAGa,cAAc;EACrC,OAAOA,cAAc;AACzB,CAAC;AAACM,OAAA,CAAAV,iBAAA,GAAAA,iBAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
export type { DynamoDBClient, DynamoDBClientConfig, AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
3
|
+
export type { StreamRecord } from "@aws-sdk/client-dynamodb-streams";
|
|
4
|
+
export { GetCommandOutput, BatchWriteCommand, PutCommand, GetCommand, UpdateCommand, DeleteCommand, DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
|
|
5
|
+
export { unmarshall, marshall } from "@aws-sdk/util-dynamodb";
|
|
6
|
+
export { getDocumentClient } from "./getDocumentClient";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
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");
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientDynamodb","require","_libDynamodb","_utilDynamodb","_getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from \"@aws-sdk/client-dynamodb\";\nexport type {\n DynamoDBClient,\n DynamoDBClientConfig,\n AttributeValue\n} from \"@aws-sdk/client-dynamodb\";\n\nexport type { StreamRecord } from \"@aws-sdk/client-dynamodb-streams\";\n\nexport {\n GetCommandOutput,\n BatchWriteCommand,\n PutCommand,\n GetCommand,\n UpdateCommand,\n DeleteCommand,\n DynamoDBDocument\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport { unmarshall, marshall } from \"@aws-sdk/util-dynamodb\";\n\nexport { getDocumentClient } from \"./getDocumentClient\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
EventBridgeClient: true,
|
|
8
|
+
PutEventsRequestEntry: true,
|
|
9
|
+
PutEventsCommand: true,
|
|
10
|
+
PutEventsCommandInput: true
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "EventBridgeClient", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _clientEventbridge.EventBridgeClient;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "PutEventsCommand", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _clientEventbridge.PutEventsCommand;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "PutEventsCommandInput", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _clientEventbridge.PutEventsCommandInput;
|
|
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");
|
|
37
|
+
var _types = require("./types");
|
|
38
|
+
Object.keys(_types).forEach(function (key) {
|
|
39
|
+
if (key === "default" || key === "__esModule") return;
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
41
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
42
|
+
Object.defineProperty(exports, key, {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _types[key];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientEventbridge","require","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export {\n EventBridgeClient,\n PutEventsRequestEntry,\n PutEventsCommand,\n PutEventsCommandInput\n} from \"@aws-sdk/client-eventbridge\";\n\nexport * from \"./types\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface EventBridgeClientSendResponseEntry {
|
|
2
|
+
EventId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface EventBridgeClientSendResponse {
|
|
5
|
+
$metadata: {
|
|
6
|
+
httpStatusCode: number;
|
|
7
|
+
requestId: string;
|
|
8
|
+
attempts: number;
|
|
9
|
+
totalRetryDelay: number;
|
|
10
|
+
};
|
|
11
|
+
Entries: EventBridgeClientSendResponseEntry[];
|
|
12
|
+
FailedEntryCount: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This is what the event looks like when it's received from EventBridge.
|
|
16
|
+
*/
|
|
17
|
+
export interface IIncomingEventBridgeEvent {
|
|
18
|
+
version: `${number}`;
|
|
19
|
+
id: string;
|
|
20
|
+
"detail-type": string;
|
|
21
|
+
source: string;
|
|
22
|
+
account: string;
|
|
23
|
+
time: string;
|
|
24
|
+
region: string;
|
|
25
|
+
resources: unknown[];
|
|
26
|
+
detail: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface EventBridgeClientSendResponseEntry {\n EventId: string;\n}\n\nexport interface EventBridgeClientSendResponse {\n $metadata: {\n httpStatusCode: number;\n requestId: string;\n attempts: number;\n totalRetryDelay: number;\n };\n Entries: EventBridgeClientSendResponseEntry[];\n FailedEntryCount: number;\n}\n\n/**\n * This is what the event looks like when it's received from EventBridge.\n */\nexport interface IIncomingEventBridgeEvent {\n version: `${number}`;\n id: string;\n \"detail-type\": string;\n source: string;\n account: string;\n time: string;\n region: string;\n resources: unknown[];\n detail: {\n [key: string]: any;\n };\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IAM } from "@aws-sdk/client-iam";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
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");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientIam","require"],"sources":["index.ts"],"sourcesContent":["export { IAM } from \"@aws-sdk/client-iam\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LambdaClient, InvokeCommand } from "@aws-sdk/client-lambda";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "InvokeCommand", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _clientLambda.InvokeCommand;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "LambdaClient", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _clientLambda.LambdaClient;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _clientLambda = require("@aws-sdk/client-lambda");
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientLambda","require"],"sources":["index.ts"],"sourcesContent":["export { LambdaClient, InvokeCommand } from \"@aws-sdk/client-lambda\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CompleteMultipartUploadCommandOutput, CompleteMultipartUploadOutput, DeleteObjectOutput, GetObjectCommand, GetObjectOutput, HeadObjectCommand, HeadObjectOutput, ListObjectsOutput, ListPartsCommand, ListPartsCommandOutput, ListPartsOutput, ObjectCannedACL, Part, PutObjectCommand, PutObjectCommandInput, PutObjectCommandOutput, PutObjectRequest, S3, S3Client, UploadPartCommand } from "@aws-sdk/client-s3";
|
|
2
|
+
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
3
|
+
export { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
|
|
4
|
+
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CompleteMultipartUploadCommandOutput", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _clientS.CompleteMultipartUploadCommandOutput;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "CompleteMultipartUploadOutput", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _clientS.CompleteMultipartUploadOutput;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "DeleteObjectOutput", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _clientS.DeleteObjectOutput;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "GetObjectCommand", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _clientS.GetObjectCommand;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "GetObjectOutput", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _clientS.GetObjectOutput;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "HeadObjectCommand", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _clientS.HeadObjectCommand;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "HeadObjectOutput", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _clientS.HeadObjectOutput;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "ListObjectsOutput", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _clientS.ListObjectsOutput;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ListPartsCommand", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _clientS.ListPartsCommand;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ListPartsCommandOutput", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _clientS.ListPartsCommandOutput;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ListPartsOutput", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _clientS.ListPartsOutput;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "ObjectCannedACL", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _clientS.ObjectCannedACL;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "Part", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _clientS.Part;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "PresignedPost", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _s3PresignedPost.PresignedPost;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "PresignedPostOptions", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _s3PresignedPost.PresignedPostOptions;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "PutObjectCommand", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _clientS.PutObjectCommand;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "PutObjectCommandInput", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _clientS.PutObjectCommandInput;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "PutObjectCommandOutput", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _clientS.PutObjectCommandOutput;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "PutObjectRequest", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _clientS.PutObjectRequest;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "S3", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _clientS.S3;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "S3Client", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _clientS.S3Client;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "UploadPartCommand", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _clientS.UploadPartCommand;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "createPresignedPost", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function get() {
|
|
141
|
+
return _s3PresignedPost.createPresignedPost;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "getSignedUrl", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _s3RequestPresigner.getSignedUrl;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
var _clientS = require("@aws-sdk/client-s3");
|
|
151
|
+
var _s3PresignedPost = require("@aws-sdk/s3-presigned-post");
|
|
152
|
+
var _s3RequestPresigner = require("@aws-sdk/s3-request-presigner");
|
|
153
|
+
|
|
154
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientS","require","_s3PresignedPost","_s3RequestPresigner"],"sources":["index.ts"],"sourcesContent":["export {\n CompleteMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectCommand,\n GetObjectOutput,\n HeadObjectCommand,\n HeadObjectOutput,\n ListObjectsOutput,\n ListPartsCommand,\n ListPartsCommandOutput,\n ListPartsOutput,\n ObjectCannedACL,\n Part,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectCommandOutput,\n PutObjectRequest,\n S3,\n S3Client,\n UploadPartCommand\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAuBA,IAAAC,gBAAA,GAAAD,OAAA;AAGA,IAAAE,mBAAA,GAAAF,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SFNClient, SFNClientConfig, StartExecutionCommandInput } from "@aws-sdk/client-sfn";
|
|
2
|
+
export { SFNClient, StartExecutionCommand, SFNServiceException } from "@aws-sdk/client-sfn";
|
|
3
|
+
export declare type GenericData = string | number | boolean | null | undefined;
|
|
4
|
+
export interface GenericStepFunctionData {
|
|
5
|
+
[key: string]: GenericData | GenericData[];
|
|
6
|
+
}
|
|
7
|
+
export interface TriggerStepFunctionParams<T extends GenericStepFunctionData = GenericStepFunctionData> extends Partial<Omit<StartExecutionCommandInput, "input">> {
|
|
8
|
+
input: T;
|
|
9
|
+
}
|
|
10
|
+
export declare const triggerStepFunctionFactory: (config: SFNClient | SFNClientConfig) => <T extends GenericStepFunctionData = GenericStepFunctionData>(params: TriggerStepFunctionParams<T>) => Promise<import("@aws-sdk/client-sfn").StartExecutionCommandOutput>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "SFNClient", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _clientSfn.SFNClient;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "SFNServiceException", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _clientSfn.SFNServiceException;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "StartExecutionCommand", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _clientSfn.StartExecutionCommand;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
exports.triggerStepFunctionFactory = void 0;
|
|
26
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
27
|
+
var _clientSfn = require("@aws-sdk/client-sfn");
|
|
28
|
+
var getClient = function getClient(config) {
|
|
29
|
+
if (config instanceof _clientSfn.SFNClient) {
|
|
30
|
+
return config;
|
|
31
|
+
}
|
|
32
|
+
return new _clientSfn.SFNClient((0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), {}, {
|
|
33
|
+
region: config.region || process.env.AWS_REGION
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
var triggerStepFunctionFactory = function triggerStepFunctionFactory(config) {
|
|
37
|
+
var client = getClient(config);
|
|
38
|
+
return async function (params) {
|
|
39
|
+
var cmd = new _clientSfn.StartExecutionCommand((0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
|
|
40
|
+
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,
|
|
41
|
+
name: params.name,
|
|
42
|
+
input: JSON.stringify(params.input)
|
|
43
|
+
}));
|
|
44
|
+
return await client.send(cmd);
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.triggerStepFunctionFactory = triggerStepFunctionFactory;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clientSfn","require","getClient","config","SFNClient","_objectSpread2","default","region","process","env","AWS_REGION","triggerStepFunctionFactory","client","params","cmd","StartExecutionCommand","stateMachineArn","BG_TASK_SFN_ARN","name","input","JSON","stringify","send","exports"],"sources":["index.ts"],"sourcesContent":["import {\n SFNClient,\n SFNClientConfig,\n StartExecutionCommand,\n StartExecutionCommandInput\n} from \"@aws-sdk/client-sfn\";\n\nexport { SFNClient, StartExecutionCommand, SFNServiceException } from \"@aws-sdk/client-sfn\";\n\nexport type GenericData = string | number | boolean | null | undefined;\n\nexport interface GenericStepFunctionData {\n [key: string]: GenericData | GenericData[];\n}\n\nexport interface TriggerStepFunctionParams<\n T extends GenericStepFunctionData = GenericStepFunctionData\n> extends Partial<Omit<StartExecutionCommandInput, \"input\">> {\n input: T;\n}\n\nconst getClient = (config: SFNClient | SFNClientConfig): SFNClient => {\n if (config instanceof SFNClient) {\n return config;\n }\n return new SFNClient({\n ...config,\n region: config.region || process.env.AWS_REGION\n });\n};\n\nexport const triggerStepFunctionFactory = (config: SFNClient | SFNClientConfig) => {\n const client = getClient(config);\n return async <T extends GenericStepFunctionData = GenericStepFunctionData>(\n params: TriggerStepFunctionParams<T>\n ) => {\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAqBA,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAAmC,EAAgB;EAClE,IAAIA,MAAM,YAAYC,oBAAS,EAAE;IAC7B,OAAOD,MAAM;EACjB;EACA,OAAO,IAAIC,oBAAS,KAAAC,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MACbH,MAAM;IACTI,MAAM,EAAEJ,MAAM,CAACI,MAAM,IAAIC,OAAO,CAACC,GAAG,CAACC;EAAU,EAClD,CAAC;AACN,CAAC;AAEM,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAIR,MAAmC,EAAK;EAC/E,IAAMS,MAAM,GAAGV,SAAS,CAACC,MAAM,CAAC;EAChC,OAAO,gBACHU,MAAoC,EACnC;IACD,IAAMC,GAAG,GAAG,IAAIC,gCAAqB,KAAAV,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MAC9BO,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIR,OAAO,CAACC,GAAG,CAACQ,eAAe;MACtEC,IAAI,EAAEL,MAAM,CAACK,IAAI;MACjBC,KAAK,EAAEC,IAAI,CAACC,SAAS,CAACR,MAAM,CAACM,KAAK;IAAC,EACtC,CAAC;IACF,OAAO,MAAMP,MAAM,CAACU,IAAI,CAACR,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACS,OAAA,CAAAZ,0BAAA,GAAAA,0BAAA"}
|
|
@@ -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 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");
|
|
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"}
|
|
@@ -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 get() {
|
|
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"}
|
|
@@ -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 get() {
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Upload } from "@aws-sdk/lib-storage";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Upload", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _libStorage.Upload;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _libStorage = require("@aws-sdk/lib-storage");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_libStorage","require"],"sources":["index.ts"],"sourcesContent":["export { Upload } from \"@aws-sdk/lib-storage\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webiny/aws-sdk",
|
|
3
|
+
"version": "0.0.0-unstable.2696f9d9e8",
|
|
4
|
+
"description": "Wrapper for AWS SDK",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Webiny Ltd.",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@aws-sdk/client-cloudfront": "3.425.0",
|
|
10
|
+
"@aws-sdk/client-cloudwatch-events": "3.425.0",
|
|
11
|
+
"@aws-sdk/client-cloudwatch-logs": "3.425.0",
|
|
12
|
+
"@aws-sdk/client-cognito-identity-provider": "3.425.0",
|
|
13
|
+
"@aws-sdk/client-dynamodb": "3.425.0",
|
|
14
|
+
"@aws-sdk/client-dynamodb-streams": "3.425.0",
|
|
15
|
+
"@aws-sdk/client-eventbridge": "3.425.0",
|
|
16
|
+
"@aws-sdk/client-iam": "3.425.0",
|
|
17
|
+
"@aws-sdk/client-lambda": "3.425.0",
|
|
18
|
+
"@aws-sdk/client-s3": "3.425.0",
|
|
19
|
+
"@aws-sdk/client-sfn": "3.484.0",
|
|
20
|
+
"@aws-sdk/client-sqs": "3.425.0",
|
|
21
|
+
"@aws-sdk/client-sts": "3.425.0",
|
|
22
|
+
"@aws-sdk/credential-providers": "3.425.0",
|
|
23
|
+
"@aws-sdk/lib-dynamodb": "3.425.0",
|
|
24
|
+
"@aws-sdk/lib-storage": "3.451.0",
|
|
25
|
+
"@aws-sdk/s3-presigned-post": "3.425.0",
|
|
26
|
+
"@aws-sdk/s3-request-presigner": "3.425.0",
|
|
27
|
+
"@aws-sdk/util-dynamodb": "3.425.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@babel/cli": "7.22.6",
|
|
31
|
+
"@babel/core": "7.22.8",
|
|
32
|
+
"@webiny/cli": "0.0.0-unstable.2696f9d9e8",
|
|
33
|
+
"@webiny/project-utils": "0.0.0-unstable.2696f9d9e8",
|
|
34
|
+
"rimraf": "3.0.2",
|
|
35
|
+
"typescript": "4.7.4"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"directory": "dist"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "yarn webiny run build",
|
|
43
|
+
"watch": "yarn webiny run watch"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "2696f9d9e84ad621e1412a05e1252b5ca9c245fb"
|
|
46
|
+
}
|