sst 2.21.6 → 2.21.7
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/App.js
CHANGED
|
@@ -2,7 +2,6 @@ import path from "path";
|
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
import { Stack } from "./Stack.js";
|
|
4
4
|
import { isSSTConstruct, isStackConstruct, } from "./Construct.js";
|
|
5
|
-
import { Function } from "./Function.js";
|
|
6
5
|
import { bindParameters, bindType } from "./util/functionBinding.js";
|
|
7
6
|
import { stack } from "./FunctionalStack.js";
|
|
8
7
|
import { createRequire } from "module";
|
|
@@ -230,7 +229,7 @@ export class App extends CDKApp {
|
|
|
230
229
|
if (!isSSTConstruct(c)) {
|
|
231
230
|
return;
|
|
232
231
|
}
|
|
233
|
-
if (
|
|
232
|
+
if ("_doNotAllowOthersToBind" in c && c._doNotAllowOthersToBind) {
|
|
234
233
|
return;
|
|
235
234
|
}
|
|
236
235
|
bindParameters(c);
|
|
@@ -353,7 +352,7 @@ export class App extends CDKApp {
|
|
|
353
352
|
if (!isSSTConstruct(c)) {
|
|
354
353
|
return;
|
|
355
354
|
}
|
|
356
|
-
if (
|
|
355
|
+
if ("_doNotAllowOthersToBind" in c && c._doNotAllowOthersToBind) {
|
|
357
356
|
return;
|
|
358
357
|
}
|
|
359
358
|
const className = c.constructor.name;
|
|
@@ -431,7 +430,7 @@ export class App extends CDKApp {
|
|
|
431
430
|
if (!isSSTConstruct(c)) {
|
|
432
431
|
return;
|
|
433
432
|
}
|
|
434
|
-
if (
|
|
433
|
+
if ("_doNotAllowOthersToBind" in c && c._doNotAllowOthersToBind) {
|
|
435
434
|
return;
|
|
436
435
|
}
|
|
437
436
|
const binding = bindType(c);
|
|
@@ -26,6 +26,8 @@ export declare class SsrFunction extends Construct implements SSTConstruct {
|
|
|
26
26
|
private assetReplacer;
|
|
27
27
|
private assetReplacerPolicy;
|
|
28
28
|
private props;
|
|
29
|
+
/** @internal */
|
|
30
|
+
_doNotAllowOthersToBind: boolean;
|
|
29
31
|
constructor(scope: Construct, id: string, props: SsrFunctionProps);
|
|
30
32
|
get role(): import("aws-cdk-lib/aws-iam").IRole | undefined;
|
|
31
33
|
get functionArn(): string;
|