sst 2.8.18 → 2.8.19
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/constructs/Job.d.ts +12 -1
- package/constructs/Job.js +1 -1
- package/package.json +1 -1
package/constructs/Job.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Construct } from "constructs";
|
|
2
2
|
import { RetentionDays } from "aws-cdk-lib/aws-logs";
|
|
3
3
|
import { SSTConstruct } from "./Construct.js";
|
|
4
|
-
import { Function, NodeJSProps } from "./Function.js";
|
|
4
|
+
import { Function, NodeJSProps, FunctionCopyFilesProps } from "./Function.js";
|
|
5
5
|
import { Duration } from "./util/duration.js";
|
|
6
6
|
import { Permissions } from "./util/permission.js";
|
|
7
7
|
import { FunctionBindingProps } from "./util/functionBinding.js";
|
|
@@ -50,6 +50,17 @@ export interface JobProps {
|
|
|
50
50
|
*```
|
|
51
51
|
*/
|
|
52
52
|
timeout?: Duration;
|
|
53
|
+
/**
|
|
54
|
+
* Used to configure additional files to copy into the function bundle
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```js
|
|
58
|
+
* new Job(stack, "job", {
|
|
59
|
+
* copyFiles: [{ from: "src/index.js" }]
|
|
60
|
+
* })
|
|
61
|
+
*```
|
|
62
|
+
*/
|
|
63
|
+
copyFiles?: FunctionCopyFilesProps[];
|
|
53
64
|
/**
|
|
54
65
|
* Used to configure nodejs function properties
|
|
55
66
|
*/
|
package/constructs/Job.js
CHANGED
|
@@ -7,7 +7,7 @@ import { AssetCode } from "aws-cdk-lib/aws-lambda";
|
|
|
7
7
|
import { Project, LinuxBuildImage, BuildSpec, ComputeType, } from "aws-cdk-lib/aws-codebuild";
|
|
8
8
|
import { RetentionDays, LogRetention } from "aws-cdk-lib/aws-logs";
|
|
9
9
|
import { Stack } from "./Stack.js";
|
|
10
|
-
import { Function, useFunctions } from "./Function.js";
|
|
10
|
+
import { Function, useFunctions, } from "./Function.js";
|
|
11
11
|
import { toCdkDuration } from "./util/duration.js";
|
|
12
12
|
import { attachPermissionsToRole } from "./util/permission.js";
|
|
13
13
|
import { bindEnvironment, bindPermissions, getReferencedSecrets, } from "./util/functionBinding.js";
|