From fb0d00e484f927c0f53815f71a8974d0d80f29af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pol=20Amor=C3=B3s?= Date: Wed, 5 Jun 2024 12:01:06 +0200 Subject: [PATCH 1/6] feat(console): allow collapsing and expanding map nodes (#6627) Resolves https://github.com/winglang/wing/issues/6624 --- apps/wing-console/console/app/demo/main.w | 2 + .../design-system/src/headless/tree-item.tsx | 6 + .../console/ui/src/features/map-view.tsx | 136 ++++++++++++++---- .../console/ui/src/layout/default-layout.tsx | 6 +- .../console/ui/src/layout/use-layout.tsx | 2 + .../console/ui/src/services/use-explorer.tsx | 6 +- .../console/ui/src/services/use-map.ts | 19 ++- .../console/ui/src/ui/map-controls.tsx | 6 +- .../console/ui/src/ui/resource-metadata.tsx | 10 +- .../console/ui/src/ui/use-tree-menu-items.tsx | 14 ++ .../console/ui/src/ui/zoom-pane.tsx | 3 +- 11 files changed, 160 insertions(+), 50 deletions(-) diff --git a/apps/wing-console/console/app/demo/main.w b/apps/wing-console/console/app/demo/main.w index 035874567ca..f6ca4555b7d 100644 --- a/apps/wing-console/console/app/demo/main.w +++ b/apps/wing-console/console/app/demo/main.w @@ -165,10 +165,12 @@ test "Add fixtures" { class WidgetService { data: cloud.Bucket; counter: cloud.Counter; + bucket: myBucket; new() { this.data = new cloud.Bucket(); this.counter = new cloud.Counter(); + this.bucket = new myBucket() as "MyInternalBucket"; // a field displays a labeled value, with optional refreshing new ui.Field( diff --git a/apps/wing-console/console/design-system/src/headless/tree-item.tsx b/apps/wing-console/console/design-system/src/headless/tree-item.tsx index e89df902931..e30b4891ead 100644 --- a/apps/wing-console/console/design-system/src/headless/tree-item.tsx +++ b/apps/wing-console/console/design-system/src/headless/tree-item.tsx @@ -121,6 +121,12 @@ export const TreeItem = ({ }); const canBeExpanded = !!children; + useEffect(() => { + if (selected) { + ref.current?.scrollIntoView(); + } + }, [selected, ref]); + return (
  • void; color?: string; icon?: string; + collapsed?: boolean; + onCollapse?: (value: boolean) => void; } const Wrapper: FunctionComponent> = memo( - ({ name, fqn, highlight, onClick, children, color, icon }) => { + ({ + name, + fqn, + highlight, + onClick, + collapsed = false, + onCollapse = (value: boolean) => {}, + children, + color, + icon, + }) => { + /* eslint-disable jsx-a11y/no-static-element-interactions */ + /* eslint-disable jsx-a11y/click-events-have-key-events */ return ( - // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
    > = memo(
    0 && "border-b border-slate-200 dark:border-slate-800", + "cursor-pointer", )} > > = memo( > {name} +
    +
    { + onCollapse(!collapsed); + }} + > + {collapsed && ( + + )} + {!collapsed && ( + + )} +
    +
    - - {children} + {!collapsed && children}
    ); }, @@ -113,6 +146,8 @@ interface ContainerNodeProps { resourceType?: string; highlight?: boolean; onClick?: () => void; + collapsed?: boolean; + onCollapse?: (value: boolean) => void; color?: string; icon?: string; } @@ -136,6 +171,8 @@ const ContainerNode: FunctionComponent> = fqn={props.resourceType!} highlight={props.highlight} onClick={props.onClick} + onCollapse={props.onCollapse} + collapsed={props.collapsed} color={props.color} icon={props.icon} > @@ -164,6 +201,8 @@ interface ConstructNodeProps { hasChildNodes?: boolean; onSelectedNodeIdChange: (id: string | undefined) => void; color?: string; + onCollapse: (value: boolean) => void; + collapsed: boolean; icon?: string; } @@ -179,6 +218,8 @@ const ConstructNode: FunctionComponent> = children, hasChildNodes, color, + onCollapse, + collapsed, icon, }) => { const select = useCallback( @@ -245,6 +286,7 @@ const ConstructNode: FunctionComponent> = /> {!hasChildNodes && ( + // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
    > = > {name} + {collapsed && ( +
    { + if (collapsed) { + onCollapse(false); + } + }} + > + +
    + )}
    )} @@ -334,6 +393,8 @@ const ConstructNode: FunctionComponent> = resourceType={fqn} highlight={highlight} onClick={select} + onCollapse={onCollapse} + collapsed={collapsed} color={color} icon={icon} > @@ -541,6 +602,9 @@ export interface MapViewV2Props { onSelectedNodeIdChange: (id: string | undefined) => void; selectedEdgeId?: string; onSelectedEdgeIdChange?: (id: string | undefined) => void; + onExpand: (path: string) => void; + onCollapse: (path: string) => void; + expandedItems: string[]; } export const MapView = memo( @@ -549,8 +613,13 @@ export const MapView = memo( onSelectedNodeIdChange, selectedEdgeId, onSelectedEdgeIdChange, + onExpand, + onCollapse, + expandedItems, }: MapViewV2Props) => { - const { nodeInfo, isNodeHidden, rootNodes, edges } = useMap({}); + const { nodeInfo, isNodeHidden, rootNodes, edges } = useMap({ + expandedItems, + }); const RenderEdge = useCallback( (props) => { @@ -581,40 +650,53 @@ export const MapView = memo( }> >( (props) => { - if (isNodeHidden(props.constructTreeNode.path)) { + const node = props.constructTreeNode; + if (isNodeHidden(node.path)) { return <>; } - const info = nodeInfo?.get(props.constructTreeNode.path); + const info = nodeInfo?.get(node.path); if (!info) { return <>; } - const childNodes = Object.values( - props.constructTreeNode.children ?? {}, - ).filter((node) => !isNodeHidden(node.path)); + const childNodes = Object.values(node.children ?? {}).filter( + (node) => !isNodeHidden(node.path), + ); - const fqn = props.constructTreeNode.constructInfo?.fqn; + const fqn = node.constructInfo?.fqn; const cloudResourceType = fqn?.split(".").at(-1); const name = - props.constructTreeNode.display?.title === cloudResourceType - ? props.constructTreeNode.id - : props.constructTreeNode.display?.title ?? - props.constructTreeNode.id; + node.display?.title === cloudResourceType + ? node.id + : node.display?.title ?? node.id; + + const children = Object.values(node.children ?? {}); + const canBeExpanded = + !!node.children && children.some((child) => !child.display?.hidden); + const collapsed = canBeExpanded && !expandedItems.includes(node.path); return ( 0} + collapsed={collapsed} + onCollapse={(collapse) => { + if (collapse) { + onCollapse(node.path); + } else { + onExpand(node.path); + } + }} > {childNodes.map((child) => ( ); }, - [isNodeHidden, nodeInfo], + [isNodeHidden, nodeInfo, onCollapse, onExpand, expandedItems], ); const { theme } = useTheme(); diff --git a/apps/wing-console/console/ui/src/layout/default-layout.tsx b/apps/wing-console/console/ui/src/layout/default-layout.tsx index 1ad8578e8fa..9d5174937b5 100644 --- a/apps/wing-console/console/ui/src/layout/default-layout.tsx +++ b/apps/wing-console/console/ui/src/layout/default-layout.tsx @@ -77,6 +77,7 @@ export const DefaultLayout = ({ expandedItems, setExpandedItems, expand, + collapse, expandAll, collapseAll, theme, @@ -261,7 +262,7 @@ export const DefaultLayout = ({ return ( {panelComponent} @@ -300,6 +301,9 @@ export const DefaultLayout = ({ onSelectedNodeIdChange={setSelectedItemSingle} selectedEdgeId={selectedEdgeId} onSelectedEdgeIdChange={setSelectedEdgeId} + onExpand={expand} + onCollapse={collapse} + expandedItems={expandedItems} /> {!layout.rightPanel?.hide && ( diff --git a/apps/wing-console/console/ui/src/layout/use-layout.tsx b/apps/wing-console/console/ui/src/layout/use-layout.tsx index bd2e84b9caa..db27f0e4e52 100644 --- a/apps/wing-console/console/ui/src/layout/use-layout.tsx +++ b/apps/wing-console/console/ui/src/layout/use-layout.tsx @@ -21,6 +21,7 @@ export const useLayout = ({ cloudAppState }: UseLayoutProps) => { expandedItems, setExpandedItems, expand, + collapse, expandAll, collapseAll, } = useExplorer(); @@ -98,6 +99,7 @@ export const useLayout = ({ cloudAppState }: UseLayoutProps) => { expandedItems, setExpandedItems, expand, + collapse, expandAll, collapseAll, theme, diff --git a/apps/wing-console/console/ui/src/services/use-explorer.tsx b/apps/wing-console/console/ui/src/services/use-explorer.tsx index 357b8a6f1d6..de897acf893 100644 --- a/apps/wing-console/console/ui/src/services/use-explorer.tsx +++ b/apps/wing-console/console/ui/src/services/use-explorer.tsx @@ -37,6 +37,7 @@ export const useExplorer = () => { expandedItems, setExpandedItems, expand, + collapse, expandAll, collapseAll, } = useTreeMenuItems({ @@ -83,10 +84,6 @@ export const useExplorer = () => { setSelectedItems([selectedNode]); }, [selectedNode, setSelectedItems]); - useEffect(() => { - expandAll(); - }, [items, expandAll]); - return { items, selectedItems, @@ -94,6 +91,7 @@ export const useExplorer = () => { expandedItems, setExpandedItems, expand, + collapse, expandAll, collapseAll, }; diff --git a/apps/wing-console/console/ui/src/services/use-map.ts b/apps/wing-console/console/ui/src/services/use-map.ts index 54f13aa6147..1fb7009f98b 100644 --- a/apps/wing-console/console/ui/src/services/use-map.ts +++ b/apps/wing-console/console/ui/src/services/use-map.ts @@ -108,9 +108,11 @@ const getNodeInflights = ( })); }; -export interface UseMapOptions {} +export interface UseMapOptions { + expandedItems: string[]; +} -export const useMap = ({}: UseMapOptions = {}) => { +export const useMap = ({ expandedItems }: UseMapOptions) => { const query = trpc["app.map"].useQuery(); const { tree: rawTree, connections: rawConnections } = query.data ?? {}; @@ -160,9 +162,16 @@ export const useMap = ({}: UseMapOptions = {}) => { const hiddenMap = new Map(); const traverse = (node: ConstructTreeNode, forceHidden?: boolean) => { const hidden = forceHidden || node.display?.hidden || false; + hiddenMap.set(node.path, hidden); - for (const child of Object.values(node.children ?? {})) { - traverse(child, hidden); + + const children = Object.values(node.children ?? {}); + const canBeExpanded = + !!node.children && children.some((child) => !child.display?.hidden); + const collapsed = canBeExpanded && !expandedItems.includes(node.path); + + for (const child of children) { + traverse(child, hidden || collapsed); } }; const pseudoRoot = rawTree?.children?.["Default"]; @@ -170,7 +179,7 @@ export const useMap = ({}: UseMapOptions = {}) => { traverse(child!); } return hiddenMap; - }, [rawTree]); + }, [rawTree, expandedItems]); const isNodeHidden = useCallback( (path: string) => { diff --git a/apps/wing-console/console/ui/src/ui/map-controls.tsx b/apps/wing-console/console/ui/src/ui/map-controls.tsx index 7c724ac9e08..c7c30fdb77e 100644 --- a/apps/wing-console/console/ui/src/ui/map-controls.tsx +++ b/apps/wing-console/console/ui/src/ui/map-controls.tsx @@ -23,15 +23,15 @@ export const MapControls = ({
    - + - + - +
    diff --git a/apps/wing-console/console/ui/src/ui/resource-metadata.tsx b/apps/wing-console/console/ui/src/ui/resource-metadata.tsx index 0c155468164..fd552c35daa 100644 --- a/apps/wing-console/console/ui/src/ui/resource-metadata.tsx +++ b/apps/wing-console/console/ui/src/ui/resource-metadata.tsx @@ -1,10 +1,5 @@ +import { CubeIcon } from "@heroicons/react/20/solid"; import { - CubeIcon, - ArrowLeftOnRectangleIcon, - ArrowRightOnRectangleIcon, -} from "@heroicons/react/20/solid"; -import { - ArrowPathRoundedSquareIcon, CubeTransparentIcon, CursorArrowRaysIcon, } from "@heroicons/react/24/outline"; @@ -17,7 +12,6 @@ import { getResourceIconComponent, Attribute, ScrollableArea, - getResourceIconColors, } from "@wingconsole/design-system"; import type { NodeDisplay } from "@wingconsole/server"; import classNames from "classnames"; @@ -216,7 +210,7 @@ export const ResourceMetadata = memo( resourceGroup, connectionsGroups: connectionsGroupsArray, }; - }, [node, inbound, outbound]); + }, [node, inbound, outbound, icon]); const nodeLabel = useMemo(() => { const cloudResourceTypeName = node.type.split(".").at(-1) || ""; diff --git a/apps/wing-console/console/ui/src/ui/use-tree-menu-items.tsx b/apps/wing-console/console/ui/src/ui/use-tree-menu-items.tsx index 4dfefd92d16..1dc481ccf8e 100644 --- a/apps/wing-console/console/ui/src/ui/use-tree-menu-items.tsx +++ b/apps/wing-console/console/ui/src/ui/use-tree-menu-items.tsx @@ -22,6 +22,7 @@ export function useTreeMenuItems(options?: { const [expandedItems, setExpandedItems] = useState( options?.openMenuItemIds ?? [], ); + const toggle = useCallback((itemId: string) => { setExpandedItems(([...openedMenuItems]) => { const index = openedMenuItems.indexOf(itemId); @@ -70,6 +71,18 @@ export function useTreeMenuItems(options?: { }); }, []); + const collapse = useCallback((itemId: string) => { + setExpandedItems(([...openedMenuItems]) => { + const index = openedMenuItems.indexOf(itemId); + if (index === -1) { + return openedMenuItems; + } + + openedMenuItems.splice(index, 1); + return openedMenuItems; + }); + }, []); + return { items, setItems, @@ -81,5 +94,6 @@ export function useTreeMenuItems(options?: { expandAll, collapseAll, expand, + collapse, }; } diff --git a/apps/wing-console/console/ui/src/ui/zoom-pane.tsx b/apps/wing-console/console/ui/src/ui/zoom-pane.tsx index 439f886a676..07abaa1185b 100644 --- a/apps/wing-console/console/ui/src/ui/zoom-pane.tsx +++ b/apps/wing-console/console/ui/src/ui/zoom-pane.tsx @@ -395,8 +395,7 @@ export const ZoomPane = forwardRef((props, ref) => {
    -
    -
    +
    Date: Wed, 5 Jun 2024 14:25:47 +0300 Subject: [PATCH 2/6] fix: can't modify display attributes of non-wing constructs (#6641) Fixes #6629 ## Checklist - [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- examples/tests/valid/bring_cdktf.test.w | 3 +- libs/wingsdk/src/core/tree.ts | 9 +- .../__snapshots__/connections.test.ts.snap | 1 + .../__snapshots__/simulator.test.ts.snap | 1 + .../target-sim/__snapshots__/api.test.ts.snap | 16 ++ .../__snapshots__/bucket.test.ts.snap | 4 + .../__snapshots__/counter.test.ts.snap | 7 + .../__snapshots__/file-counter.test.ts.snap | 2 + .../__snapshots__/function.test.ts.snap | 6 + .../immutable-capture.test.ts.snap | 14 ++ .../__snapshots__/on-deploy.test.ts.snap | 1 + .../__snapshots__/queue.test.ts.snap | 5 + .../__snapshots__/redis.test.ts.snap | 1 + .../__snapshots__/schedule.test.ts.snap | 4 + .../__snapshots__/secret.test.ts.snap | 1 + .../__snapshots__/service.test.ts.snap | 1 + .../__snapshots__/table.test.ts.snap | 7 + .../__snapshots__/test.test.ts.snap | 2 + .../__snapshots__/topic.test.ts.snap | 1 + .../__snapshots__/bucket.test.ts.snap | 164 ++++++++++++++++++ .../__snapshots__/counter.test.ts.snap | 103 +++++++++++ .../__snapshots__/domain.test.ts.snap | 38 ++++ .../__snapshots__/function.test.ts.snap | 127 ++++++++++++++ .../__snapshots__/on-deploy.test.ts.snap | 53 ++++++ .../__snapshots__/queue.test.ts.snap | 85 +++++++++ .../__snapshots__/schedule.test.ts.snap | 114 ++++++++++++ .../__snapshots__/secret.test.ts.snap | 7 + .../__snapshots__/table.test.ts.snap | 17 ++ .../__snapshots__/topic.test.ts.snap | 37 ++++ .../__snapshots__/website.test.ts.snap | 47 +++++ .../__snapshots__/bucket.test.ts.snap | 53 ++++++ .../__snapshots__/counter.test.ts.snap | 109 ++++++++++++ .../__snapshots__/function.test.ts.snap | 45 +++++ .../__snapshots__/bucket.test.ts.snap | 53 ++++++ .../__snapshots__/counter.test.ts.snap | 109 ++++++++++++ .../__snapshots__/function.test.ts.snap | 60 +++++++ .../__snapshots__/schedule.test.ts.snap | 18 ++ .../bring_cdktf.test.w_compile_tf-aws.md | 3 +- tools/hangar/__snapshots__/tree_json.ts.snap | 44 +++++ 39 files changed, 1362 insertions(+), 10 deletions(-) diff --git a/examples/tests/valid/bring_cdktf.test.w b/examples/tests/valid/bring_cdktf.test.w index a897a1271a4..e162f403bbb 100644 --- a/examples/tests/valid/bring_cdktf.test.w +++ b/examples/tests/valid/bring_cdktf.test.w @@ -1,13 +1,14 @@ bring "@cdktf/provider-aws" as aws; bring "cdktf" as cdktf; -new aws.s3Bucket.S3Bucket( +let bucket = new aws.s3Bucket.S3Bucket( bucketPrefix: "hello", versioning: { enabled: true, mfaDelete: true, }, ) as "Bucket"; +nodeof(bucket).color = "pink"; class Foo { new() { diff --git a/libs/wingsdk/src/core/tree.ts b/libs/wingsdk/src/core/tree.ts index 669fffd7ef4..f4e74e1a2c0 100644 --- a/libs/wingsdk/src/core/tree.ts +++ b/libs/wingsdk/src/core/tree.ts @@ -2,7 +2,7 @@ import * as fs from "fs"; import * as path from "path"; import { IConstruct } from "constructs"; import { App } from "./app"; -import { IResource, Node, Resource } from "../std"; +import { Node } from "../std"; import { VisualComponent } from "../ui/base"; import { Colors, isOfTypeColors } from "../ui/colors"; @@ -220,14 +220,7 @@ export function synthesizeTree(app: App, outdir: string) { ); } -function isIResource(construct: IConstruct): construct is IResource { - return construct instanceof Resource; -} - function synthDisplay(construct: IConstruct): DisplayInfo | undefined { - if (!isIResource(construct)) { - return; - } const display = Node.of(construct); const ui: UIComponent[] = []; diff --git a/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap b/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap index 7614e128608..758b2123b89 100644 --- a/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap +++ b/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap @@ -195,6 +195,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap b/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap index 7d2e1e3155e..7ed3672252a 100644 --- a/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap +++ b/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap @@ -22,6 +22,7 @@ exports[`provides raw tree data 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap index e66baf59a66..6f853be3c33 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap @@ -319,6 +319,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -645,6 +646,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -970,6 +972,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1296,6 +1299,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1622,6 +1626,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1948,6 +1953,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -2417,6 +2423,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -2759,6 +2766,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -3093,6 +3101,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -3422,6 +3431,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -3875,6 +3885,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -4330,6 +4341,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -4655,6 +4667,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -4989,6 +5002,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -5315,6 +5329,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -5494,6 +5509,7 @@ exports[`create an api 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap index d2f3e83fa8e..57ef79fb33a 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap @@ -220,6 +220,7 @@ exports[`can add file in preflight 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -390,6 +391,7 @@ exports[`can add object in preflight 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -545,6 +547,7 @@ exports[`create a bucket 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -710,6 +713,7 @@ exports[`get invalid object throws an error 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap index 85f24e20f6b..c4e10517148 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap @@ -240,6 +240,7 @@ exports[`create a counter 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -499,6 +500,7 @@ exports[`dec 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -758,6 +760,7 @@ exports[`inc 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1017,6 +1020,7 @@ exports[`key dec 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1276,6 +1280,7 @@ exports[`key inc 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1533,6 +1538,7 @@ exports[`key set to new value 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1790,6 +1796,7 @@ exports[`set to new value 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap index 4e8fab3c30c..99876988ed4 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap @@ -538,6 +538,7 @@ bucket: (function() { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "HelloWorld", "path": "root/HelloWorld", }, @@ -546,6 +547,7 @@ bucket: (function() { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap index 11992e78ca2..eb5500f3161 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap @@ -157,6 +157,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -328,6 +329,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -499,6 +501,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -672,6 +675,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -833,6 +837,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1124,6 +1129,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap index 9df59ab0971..be36938ae6d 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap @@ -163,6 +163,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -334,6 +335,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -504,6 +506,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -673,6 +676,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -844,6 +848,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1017,6 +1022,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1192,6 +1198,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1364,6 +1371,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1533,6 +1541,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1705,6 +1714,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1876,6 +1886,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -2046,6 +2057,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -2218,6 +2230,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -2390,6 +2403,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap index 1ce6af5262b..4a279b8552a 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap @@ -169,6 +169,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap index 7dfd136f097..1f5e4cc0b18 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap @@ -146,6 +146,7 @@ exports[`create a queue 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -761,6 +762,7 @@ exports[`push rejects empty message 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -929,6 +931,7 @@ exports[`queue batch size of 2, purge the queue 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1316,6 +1319,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1590,6 +1594,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap index c05c34c1b54..715c2a43ed0 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap @@ -143,6 +143,7 @@ exports[`create a Redis resource 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap index 2a517de9603..f2a1a4e74a2 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap @@ -145,6 +145,7 @@ exports[`create a schedule 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -395,6 +396,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -645,6 +647,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -895,6 +898,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap index 53c2a022a3c..4829b0fdcdb 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap @@ -121,6 +121,7 @@ exports[`secrets > create a secret 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap index 76b0fc6998a..fda6469189f 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap @@ -156,6 +156,7 @@ exports[`create a service with on start method 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap index 0862d415150..4bbfbbebd96 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap @@ -142,6 +142,7 @@ exports[`can add row in preflight 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -277,6 +278,7 @@ exports[`create a table 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -422,6 +424,7 @@ exports[`get row 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -565,6 +568,7 @@ exports[`insert row 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -710,6 +714,7 @@ exports[`list table 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -854,6 +859,7 @@ exports[`tryGet row 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, @@ -1001,6 +1007,7 @@ exports[`update row 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap index fd7c3f2b626..55f284251ec 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap @@ -185,6 +185,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "env0", "path": "root/env0", }, @@ -193,6 +194,7 @@ exports.handler = async function(event) { "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap index c9b5c43361c..fcbbe9a5510 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap @@ -143,6 +143,7 @@ exports[`create a topic 1`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "root", "path": "root", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap index a009e9e6955..05db4b72192 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap @@ -44,6 +44,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -54,6 +55,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -62,6 +64,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -70,6 +73,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -90,6 +94,7 @@ exports[`bucket is public 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -98,6 +103,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -106,6 +112,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -114,6 +121,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -149,6 +157,7 @@ exports[`bucket prefix must be lowercase 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The-Uncanny.Bucket/Default", }, @@ -169,6 +178,7 @@ exports[`bucket prefix must be lowercase 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -177,6 +187,7 @@ exports[`bucket prefix must be lowercase 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -185,6 +196,7 @@ exports[`bucket prefix must be lowercase 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -193,6 +205,7 @@ exports[`bucket prefix must be lowercase 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -201,6 +214,7 @@ exports[`bucket prefix must be lowercase 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -234,6 +248,7 @@ exports[`bucket prefix valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -244,6 +259,7 @@ exports[`bucket prefix valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/the-uncanny.bucket/Default", }, @@ -264,6 +280,7 @@ exports[`bucket prefix valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -272,6 +289,7 @@ exports[`bucket prefix valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -280,6 +298,7 @@ exports[`bucket prefix valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -288,6 +307,7 @@ exports[`bucket prefix valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -441,6 +461,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -449,6 +470,9 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -457,6 +481,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -467,6 +492,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -475,6 +501,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -483,6 +510,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -491,6 +519,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, @@ -501,6 +530,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/oncreate/Default", }, @@ -509,6 +539,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", "path": "root/Default/my_bucket/oncreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, @@ -517,6 +548,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/my_bucket/oncreate/TopicSubscription0", }, @@ -539,6 +571,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_bucket/oncreate-OnMessage0/Asset", }, @@ -547,6 +580,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_bucket/oncreate-OnMessage0/CloudwatchLogGroup", }, @@ -555,6 +589,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/oncreate-OnMessage0/Default", }, @@ -563,6 +598,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRole", }, @@ -571,6 +607,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicy", }, @@ -579,6 +616,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicyAttachment", }, @@ -587,6 +625,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", "path": "root/Default/my_bucket/oncreate-OnMessage0/InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", }, @@ -595,6 +634,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_bucket/oncreate-OnMessage0/S3Object", }, @@ -627,6 +667,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -635,6 +676,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -643,6 +685,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -651,6 +694,7 @@ exports[`bucket with onCreate method 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -804,6 +848,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -812,6 +857,9 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -820,6 +868,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -830,6 +879,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -838,6 +888,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -846,6 +897,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -854,6 +906,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, @@ -864,6 +917,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/ondelete/Default", }, @@ -872,6 +926,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", "path": "root/Default/my_bucket/ondelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, @@ -880,6 +935,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/my_bucket/ondelete/TopicSubscription0", }, @@ -902,6 +958,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_bucket/ondelete-OnMessage0/Asset", }, @@ -910,6 +967,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_bucket/ondelete-OnMessage0/CloudwatchLogGroup", }, @@ -918,6 +976,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/ondelete-OnMessage0/Default", }, @@ -926,6 +985,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRole", }, @@ -934,6 +994,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicy", }, @@ -942,6 +1003,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicyAttachment", }, @@ -950,6 +1012,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", "path": "root/Default/my_bucket/ondelete-OnMessage0/InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", }, @@ -958,6 +1021,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_bucket/ondelete-OnMessage0/S3Object", }, @@ -990,6 +1054,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -998,6 +1063,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1006,6 +1072,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1014,6 +1081,7 @@ exports[`bucket with onDelete method 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1307,6 +1375,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1315,6 +1384,9 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1323,6 +1395,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1333,6 +1406,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -1341,6 +1415,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -1349,6 +1424,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -1357,6 +1433,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, @@ -1367,6 +1444,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/oncreate/Default", }, @@ -1375,6 +1453,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", "path": "root/Default/my_bucket/oncreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, @@ -1383,6 +1462,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/my_bucket/oncreate/TopicSubscription0", }, @@ -1405,6 +1485,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_bucket/oncreate-OnMessage0/Asset", }, @@ -1413,6 +1494,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_bucket/oncreate-OnMessage0/CloudwatchLogGroup", }, @@ -1421,6 +1503,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/oncreate-OnMessage0/Default", }, @@ -1429,6 +1512,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRole", }, @@ -1437,6 +1521,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicy", }, @@ -1445,6 +1530,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicyAttachment", }, @@ -1453,6 +1539,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", "path": "root/Default/my_bucket/oncreate-OnMessage0/InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", }, @@ -1461,6 +1548,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_bucket/oncreate-OnMessage0/S3Object", }, @@ -1483,6 +1571,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/ondelete/Default", }, @@ -1491,6 +1580,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", "path": "root/Default/my_bucket/ondelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, @@ -1499,6 +1589,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/my_bucket/ondelete/TopicSubscription0", }, @@ -1521,6 +1612,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_bucket/ondelete-OnMessage0/Asset", }, @@ -1529,6 +1621,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_bucket/ondelete-OnMessage0/CloudwatchLogGroup", }, @@ -1537,6 +1630,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/ondelete-OnMessage0/Default", }, @@ -1545,6 +1639,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRole", }, @@ -1553,6 +1648,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicy", }, @@ -1561,6 +1657,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicyAttachment", }, @@ -1569,6 +1666,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", "path": "root/Default/my_bucket/ondelete-OnMessage0/InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", }, @@ -1577,6 +1675,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_bucket/ondelete-OnMessage0/S3Object", }, @@ -1599,6 +1698,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/onupdate/Default", }, @@ -1607,6 +1707,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", "path": "root/Default/my_bucket/onupdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, @@ -1615,6 +1716,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/my_bucket/onupdate/TopicSubscription0", }, @@ -1637,6 +1739,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_bucket/onupdate-OnMessage0/Asset", }, @@ -1645,6 +1748,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_bucket/onupdate-OnMessage0/CloudwatchLogGroup", }, @@ -1653,6 +1757,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/onupdate-OnMessage0/Default", }, @@ -1661,6 +1766,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRole", }, @@ -1669,6 +1775,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicy", }, @@ -1677,6 +1784,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicyAttachment", }, @@ -1685,6 +1793,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", "path": "root/Default/my_bucket/onupdate-OnMessage0/InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", }, @@ -1693,6 +1802,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_bucket/onupdate-OnMessage0/S3Object", }, @@ -1725,6 +1835,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1733,6 +1844,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1741,6 +1853,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1749,6 +1862,7 @@ exports[`bucket with onEvent method 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1902,6 +2016,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1910,6 +2025,9 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1918,6 +2036,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1928,6 +2047,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -1936,6 +2056,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -1944,6 +2065,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -1952,6 +2074,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, @@ -1962,6 +2085,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/onupdate/Default", }, @@ -1970,6 +2094,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", "path": "root/Default/my_bucket/onupdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, @@ -1978,6 +2103,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/my_bucket/onupdate/TopicSubscription0", }, @@ -2000,6 +2126,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_bucket/onupdate-OnMessage0/Asset", }, @@ -2008,6 +2135,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_bucket/onupdate-OnMessage0/CloudwatchLogGroup", }, @@ -2016,6 +2144,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/onupdate-OnMessage0/Default", }, @@ -2024,6 +2153,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRole", }, @@ -2032,6 +2162,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicy", }, @@ -2040,6 +2171,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicyAttachment", }, @@ -2048,6 +2180,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", "path": "root/Default/my_bucket/onupdate-OnMessage0/InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", }, @@ -2056,6 +2189,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_bucket/onupdate-OnMessage0/S3Object", }, @@ -2088,6 +2222,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -2096,6 +2231,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -2104,6 +2240,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -2112,6 +2249,7 @@ exports[`bucket with onUpdate method 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -2175,6 +2313,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -2185,6 +2324,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -2193,6 +2333,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -2201,6 +2342,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -2209,6 +2351,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object-file1.txt", "path": "root/Default/my_bucket/S3Object-file1.txt", }, @@ -2217,6 +2360,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object-file2.txt", "path": "root/Default/my_bucket/S3Object-file2.txt", }, @@ -2237,6 +2381,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -2245,6 +2390,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -2253,6 +2399,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -2261,6 +2408,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -2324,6 +2472,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -2334,6 +2483,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -2342,6 +2492,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessBlock", "path": "root/Default/my_bucket/PublicAccessBlock", }, @@ -2350,6 +2501,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicPolicy", "path": "root/Default/my_bucket/PublicPolicy", }, @@ -2358,6 +2510,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object-file1.txt", "path": "root/Default/my_bucket/S3Object-file1.txt", }, @@ -2366,6 +2519,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object-file2.txt", "path": "root/Default/my_bucket/S3Object-file2.txt", }, @@ -2386,6 +2540,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -2394,6 +2549,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -2402,6 +2558,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -2410,6 +2567,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -2443,6 +2601,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -2453,6 +2612,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -2473,6 +2633,7 @@ exports[`create a bucket 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -2481,6 +2642,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -2489,6 +2651,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -2497,6 +2660,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap index 5c5f5b72a46..7bdbc856367 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap @@ -35,6 +35,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The.Amazing-Counter_01/Default", }, @@ -55,6 +56,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -63,6 +65,7 @@ exports[`counter name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -71,6 +74,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -79,6 +83,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -87,6 +92,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -129,6 +135,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -149,6 +156,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -157,6 +165,7 @@ exports[`counter with initial value 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -165,6 +174,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -173,6 +183,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -181,6 +192,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -283,6 +295,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -293,6 +306,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -315,6 +329,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -323,6 +338,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -331,6 +347,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -339,6 +356,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -347,6 +365,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -355,6 +374,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -363,6 +383,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -383,6 +404,9 @@ exports[`dec() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -391,6 +415,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -399,6 +424,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -407,6 +433,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -415,6 +442,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -423,6 +451,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -563,6 +592,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -573,6 +603,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -595,6 +626,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -603,6 +635,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -611,6 +644,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -619,6 +653,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -627,6 +662,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -635,6 +671,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -643,6 +680,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -663,6 +701,9 @@ exports[`function with a counter binding 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -671,6 +712,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -679,6 +721,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -687,6 +730,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -695,6 +739,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -703,6 +748,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -805,6 +851,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -815,6 +862,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -837,6 +885,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -845,6 +894,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -853,6 +903,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -861,6 +912,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -869,6 +921,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -877,6 +930,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -885,6 +939,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -905,6 +960,9 @@ exports[`inc() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -913,6 +971,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -921,6 +980,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -929,6 +989,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -937,6 +998,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -945,6 +1007,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1047,6 +1110,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1057,6 +1121,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -1079,6 +1144,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1087,6 +1153,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -1095,6 +1162,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -1103,6 +1171,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -1111,6 +1180,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -1119,6 +1189,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -1127,6 +1198,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -1147,6 +1219,9 @@ exports[`peek() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1155,6 +1230,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1163,6 +1239,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1171,6 +1248,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1179,6 +1257,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1187,6 +1266,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1229,6 +1309,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The*Amazing%Counter@01/Default", }, @@ -1249,6 +1330,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1257,6 +1339,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1265,6 +1348,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1273,6 +1357,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1281,6 +1366,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1383,6 +1469,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1393,6 +1480,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -1415,6 +1503,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1423,6 +1512,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -1431,6 +1521,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -1439,6 +1530,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -1447,6 +1539,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -1455,6 +1548,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -1463,6 +1557,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -1483,6 +1578,9 @@ exports[`set() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1491,6 +1589,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1499,6 +1598,7 @@ exports[`set() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1507,6 +1607,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1515,6 +1616,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1523,6 +1625,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap index 7e8ba626ac8..a3179f13cc1 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap @@ -192,6 +192,9 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -202,6 +205,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "AllowDistributionReadOnly", "path": "root/Default/Website/AllowDistributionReadOnly", }, @@ -210,6 +214,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "BucketWebsiteConfiguration", "path": "root/Default/Website/BucketWebsiteConfiguration", }, @@ -218,6 +223,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudfrontOac", "path": "root/Default/Website/CloudfrontOac", }, @@ -226,6 +232,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Distribution", "path": "root/Default/Website/Distribution", }, @@ -234,6 +241,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DistributionS3BucketPolicy", "path": "root/Default/Website/DistributionS3BucketPolicy", }, @@ -244,6 +252,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformOutput", "version": "0.20.3", }, + "display": {}, "id": "Url", "path": "root/Default/Website/Endpoint/Url", }, @@ -265,6 +274,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--b.html", "path": "root/Default/Website/File--b.html", }, @@ -273,6 +283,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--index.html", "path": "root/Default/Website/File--index.html", }, @@ -281,6 +292,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--inner-folder--a.html", "path": "root/Default/Website/File--inner-folder--a.html", }, @@ -289,6 +301,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Route53Record", "path": "root/Default/Website/Route53Record", }, @@ -297,6 +310,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "WebsiteBucket", "path": "root/Default/Website/WebsiteBucket", }, @@ -317,6 +331,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -325,6 +340,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -333,6 +349,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -341,6 +358,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -349,6 +367,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -548,6 +567,9 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -558,6 +580,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "AllowDistributionReadOnly", "path": "root/Default/Website/AllowDistributionReadOnly", }, @@ -566,6 +589,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "BucketWebsiteConfiguration", "path": "root/Default/Website/BucketWebsiteConfiguration", }, @@ -574,6 +598,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudfrontOac", "path": "root/Default/Website/CloudfrontOac", }, @@ -582,6 +607,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Distribution", "path": "root/Default/Website/Distribution", }, @@ -590,6 +616,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DistributionS3BucketPolicy", "path": "root/Default/Website/DistributionS3BucketPolicy", }, @@ -600,6 +627,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformOutput", "version": "0.20.3", }, + "display": {}, "id": "Url", "path": "root/Default/Website/Endpoint/Url", }, @@ -621,6 +649,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--b.html", "path": "root/Default/Website/File--b.html", }, @@ -629,6 +658,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--index.html", "path": "root/Default/Website/File--index.html", }, @@ -637,6 +667,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--inner-folder--a.html", "path": "root/Default/Website/File--inner-folder--a.html", }, @@ -645,6 +676,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Route53Record", "path": "root/Default/Website/Route53Record", }, @@ -653,6 +685,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "WebsiteBucket", "path": "root/Default/Website/WebsiteBucket", }, @@ -673,6 +706,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -681,6 +715,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -689,6 +724,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -697,6 +733,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -705,6 +742,7 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap index ea09206467e..979dfb79b63 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap @@ -81,6 +81,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -91,6 +92,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -99,6 +101,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -107,6 +110,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -115,6 +119,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -123,6 +128,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -131,6 +137,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -139,6 +146,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -159,6 +167,9 @@ exports[`basic function 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -167,6 +178,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -175,6 +187,7 @@ exports[`basic function 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -183,6 +196,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -191,6 +205,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -199,6 +214,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -287,6 +303,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -297,6 +314,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -305,6 +323,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -313,6 +332,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -321,6 +341,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -329,6 +350,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -337,6 +359,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -345,6 +368,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -365,6 +389,9 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -373,6 +400,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -381,6 +409,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -389,6 +418,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -397,6 +427,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -405,6 +436,7 @@ exports[`basic function with custom log retention 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -495,6 +527,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -505,6 +538,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -513,6 +547,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -521,6 +556,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -529,6 +565,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -537,6 +574,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -545,6 +583,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -553,6 +592,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -573,6 +613,9 @@ exports[`basic function with environment variables 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -581,6 +624,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -589,6 +633,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -597,6 +642,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -605,6 +651,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -613,6 +660,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -695,6 +743,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -705,6 +754,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -713,6 +763,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -721,6 +772,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -729,6 +781,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -737,6 +790,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -745,6 +799,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -765,6 +820,9 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -773,6 +831,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -781,6 +840,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -789,6 +849,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -797,6 +858,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -805,6 +867,7 @@ exports[`basic function with infinite log retention 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -893,6 +956,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -903,6 +967,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -911,6 +976,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -919,6 +985,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -927,6 +994,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -935,6 +1003,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -943,6 +1012,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -951,6 +1021,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -971,6 +1042,9 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -979,6 +1053,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -987,6 +1062,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -995,6 +1071,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1003,6 +1080,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1011,6 +1089,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1099,6 +1178,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1109,6 +1189,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1117,6 +1198,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -1125,6 +1207,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -1133,6 +1216,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -1141,6 +1225,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -1149,6 +1234,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -1157,6 +1243,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -1177,6 +1264,9 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1185,6 +1275,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1193,6 +1284,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1201,6 +1293,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1209,6 +1302,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1217,6 +1311,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1305,6 +1400,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1313,6 +1409,9 @@ exports[`function name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1323,6 +1422,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/The-Mighty_Function-01/Asset", }, @@ -1331,6 +1431,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/The-Mighty_Function-01/CloudwatchLogGroup", }, @@ -1339,6 +1440,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The-Mighty_Function-01/Default", }, @@ -1347,6 +1449,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/The-Mighty_Function-01/IamRole", }, @@ -1355,6 +1458,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/The-Mighty_Function-01/IamRolePolicy", }, @@ -1363,6 +1467,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/The-Mighty_Function-01/IamRolePolicyAttachment", }, @@ -1371,6 +1476,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/The-Mighty_Function-01/S3Object", }, @@ -1391,6 +1497,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1399,6 +1506,7 @@ exports[`function name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1407,6 +1515,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1415,6 +1524,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1423,6 +1533,7 @@ exports[`function name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1750,6 +1861,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1758,6 +1870,9 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1768,6 +1883,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/The%Mighty$Function/Asset", }, @@ -1776,6 +1892,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/The%Mighty$Function/CloudwatchLogGroup", }, @@ -1784,6 +1901,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The%Mighty$Function/Default", }, @@ -1792,6 +1910,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/The%Mighty$Function/IamRole", }, @@ -1800,6 +1919,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/The%Mighty$Function/IamRolePolicy", }, @@ -1808,6 +1928,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/The%Mighty$Function/IamRolePolicyAttachment", }, @@ -1816,6 +1937,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/The%Mighty$Function/S3Object", }, @@ -1836,6 +1958,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1844,6 +1967,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1852,6 +1976,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1860,6 +1985,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1868,6 +1994,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap index 8a1df419778..2452a0ec5c4 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap @@ -90,6 +90,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -98,6 +99,9 @@ exports[`create an OnDeploy 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -106,6 +110,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -118,6 +123,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_on_deploy/Function/Asset", }, @@ -126,6 +132,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_on_deploy/Function/CloudwatchLogGroup", }, @@ -134,6 +141,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_on_deploy/Function/Default", }, @@ -142,6 +150,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_on_deploy/Function/IamRole", }, @@ -150,6 +159,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_on_deploy/Function/IamRolePolicy", }, @@ -158,6 +168,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_on_deploy/Function/IamRolePolicyAttachment", }, @@ -166,6 +177,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_on_deploy/Function/S3Object", }, @@ -186,6 +198,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "Invocation", "path": "root/Default/my_on_deploy/Invocation", }, @@ -206,6 +219,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -214,6 +228,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -222,6 +237,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -230,6 +246,7 @@ exports[`create an OnDeploy 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -333,6 +350,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -341,6 +359,9 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -349,6 +370,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -359,6 +381,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -383,6 +406,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_on_deploy/Function/Asset", }, @@ -391,6 +415,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_on_deploy/Function/CloudwatchLogGroup", }, @@ -399,6 +424,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_on_deploy/Function/Default", }, @@ -407,6 +433,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_on_deploy/Function/IamRole", }, @@ -415,6 +442,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_on_deploy/Function/IamRolePolicy", }, @@ -423,6 +451,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_on_deploy/Function/IamRolePolicyAttachment", }, @@ -431,6 +460,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_on_deploy/Function/S3Object", }, @@ -451,6 +481,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "Invocation", "path": "root/Default/my_on_deploy/Invocation", }, @@ -471,6 +502,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -479,6 +511,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -487,6 +520,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -495,6 +529,7 @@ exports[`execute OnDeploy after other resources 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -599,6 +634,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -607,6 +643,9 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -615,6 +654,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -625,6 +665,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -649,6 +690,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/my_on_deploy/Function/Asset", }, @@ -657,6 +699,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/my_on_deploy/Function/CloudwatchLogGroup", }, @@ -665,6 +708,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_on_deploy/Function/Default", }, @@ -673,6 +717,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/my_on_deploy/Function/IamRole", }, @@ -681,6 +726,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/my_on_deploy/Function/IamRolePolicy", }, @@ -689,6 +735,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/my_on_deploy/Function/IamRolePolicyAttachment", }, @@ -697,6 +744,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/my_on_deploy/Function/S3Object", }, @@ -717,6 +765,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "Invocation", "path": "root/Default/my_on_deploy/Invocation", }, @@ -737,6 +786,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -745,6 +795,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -753,6 +804,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -761,6 +813,7 @@ exports[`execute OnDeploy before other resources 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap index 4d1d26c9baa..aee851cbec8 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap @@ -216,6 +216,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -226,6 +227,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -234,6 +236,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -242,6 +245,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -250,6 +254,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -258,6 +263,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -266,6 +272,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -274,6 +281,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -294,6 +302,9 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -308,6 +319,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/QueueRef/AwsConsoleField/Handler/Asset", }, @@ -316,6 +328,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/QueueRef/AwsConsoleField/Handler/CloudwatchLogGroup", }, @@ -324,6 +337,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/QueueRef/AwsConsoleField/Handler/Default", }, @@ -332,6 +346,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/QueueRef/AwsConsoleField/Handler/IamRole", }, @@ -340,6 +355,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/QueueRef/AwsConsoleField/Handler/IamRolePolicy", }, @@ -348,6 +364,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/QueueRef/AwsConsoleField/Handler/IamRolePolicyAttachment", }, @@ -356,6 +373,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/QueueRef/AwsConsoleField/Handler/S3Object", }, @@ -391,6 +409,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/QueueRef/QueueArnField/Handler/Asset", }, @@ -399,6 +418,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/QueueRef/QueueArnField/Handler/CloudwatchLogGroup", }, @@ -407,6 +427,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/QueueRef/QueueArnField/Handler/Default", }, @@ -415,6 +436,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/QueueRef/QueueArnField/Handler/IamRole", }, @@ -423,6 +445,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/QueueRef/QueueArnField/Handler/IamRolePolicy", }, @@ -431,6 +454,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/QueueRef/QueueArnField/Handler/IamRolePolicyAttachment", }, @@ -439,6 +463,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/QueueRef/QueueArnField/Handler/S3Object", }, @@ -474,6 +499,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/QueueRef/QueueUrlField/Handler/Asset", }, @@ -482,6 +508,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/QueueRef/QueueUrlField/Handler/CloudwatchLogGroup", }, @@ -490,6 +517,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/QueueRef/QueueUrlField/Handler/Default", }, @@ -498,6 +526,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/QueueRef/QueueUrlField/Handler/IamRole", }, @@ -506,6 +535,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/QueueRef/QueueUrlField/Handler/IamRolePolicy", }, @@ -514,6 +544,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/QueueRef/QueueUrlField/Handler/IamRolePolicyAttachment", }, @@ -522,6 +553,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/QueueRef/QueueUrlField/Handler/S3Object", }, @@ -583,6 +615,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -591,6 +624,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -599,6 +633,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -607,6 +642,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -615,6 +651,7 @@ exports[`QueueRef in an TFAWS app can be used to reference an existing queue 2`] "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -651,6 +688,7 @@ exports[`default queue behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Queue/Default", }, @@ -671,6 +709,7 @@ exports[`default queue behavior 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -679,6 +718,7 @@ exports[`default queue behavior 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -687,6 +727,7 @@ exports[`default queue behavior 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -695,6 +736,7 @@ exports[`default queue behavior 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -703,6 +745,7 @@ exports[`default queue behavior 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -739,6 +782,7 @@ exports[`queue name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The-Incredible_Queue-01/Default", }, @@ -759,6 +803,7 @@ exports[`queue name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -767,6 +812,7 @@ exports[`queue name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -775,6 +821,7 @@ exports[`queue name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -783,6 +830,7 @@ exports[`queue name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -791,6 +839,7 @@ exports[`queue name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -898,6 +947,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -906,6 +956,9 @@ exports[`queue with a consumer function 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -916,6 +969,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Queue/Default", }, @@ -924,6 +978,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "EventSourceMapping", "path": "root/Default/Queue/EventSourceMapping", }, @@ -946,6 +1001,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Queue-SetConsumer0/Asset", }, @@ -954,6 +1010,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Queue-SetConsumer0/CloudwatchLogGroup", }, @@ -962,6 +1019,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Queue-SetConsumer0/Default", }, @@ -970,6 +1028,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Queue-SetConsumer0/IamRole", }, @@ -978,6 +1037,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Queue-SetConsumer0/IamRolePolicy", }, @@ -986,6 +1046,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Queue-SetConsumer0/IamRolePolicyAttachment", }, @@ -994,6 +1055,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Queue-SetConsumer0/S3Object", }, @@ -1014,6 +1076,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1022,6 +1085,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1030,6 +1094,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1038,6 +1103,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1046,6 +1112,7 @@ exports[`queue with a consumer function 3`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1082,6 +1149,7 @@ exports[`queue with custom retention 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Queue/Default", }, @@ -1102,6 +1170,7 @@ exports[`queue with custom retention 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1110,6 +1179,7 @@ exports[`queue with custom retention 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1118,6 +1188,7 @@ exports[`queue with custom retention 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1126,6 +1197,7 @@ exports[`queue with custom retention 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1134,6 +1206,7 @@ exports[`queue with custom retention 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1170,6 +1243,7 @@ exports[`queue with custom timeout 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Queue/Default", }, @@ -1190,6 +1264,7 @@ exports[`queue with custom timeout 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1198,6 +1273,7 @@ exports[`queue with custom timeout 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1206,6 +1282,7 @@ exports[`queue with custom timeout 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1214,6 +1291,7 @@ exports[`queue with custom timeout 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1222,6 +1300,7 @@ exports[`queue with custom timeout 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1258,6 +1337,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The*Incredible$Queue/Default", }, @@ -1278,6 +1358,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1286,6 +1367,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1294,6 +1376,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1302,6 +1385,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1310,6 +1394,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap index e3f42f013fb..4ad855ffa6c 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap @@ -101,6 +101,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -109,6 +110,9 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -121,6 +125,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -129,6 +134,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Schedule/OnTick0/CloudwatchLogGroup", }, @@ -137,6 +143,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/Default", }, @@ -145,6 +152,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Schedule/OnTick0/IamRole", }, @@ -153,6 +161,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Schedule/OnTick0/IamRolePolicy", }, @@ -161,6 +170,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Schedule/OnTick0/IamRolePolicyAttachment", }, @@ -169,6 +179,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", "path": "root/Default/Schedule/OnTick0/InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", }, @@ -177,6 +188,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Schedule/OnTick0/S3Object", }, @@ -197,6 +209,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Schedule", "path": "root/Default/Schedule/Schedule", }, @@ -205,6 +218,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ScheduleTarget0", "path": "root/Default/Schedule/ScheduleTarget0", }, @@ -225,6 +239,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -233,6 +248,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -241,6 +257,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -249,6 +266,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -257,6 +275,7 @@ exports[`convert single dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -365,6 +384,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -373,6 +393,9 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -385,6 +408,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -393,6 +417,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Schedule/OnTick0/CloudwatchLogGroup", }, @@ -401,6 +426,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/Default", }, @@ -409,6 +435,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Schedule/OnTick0/IamRole", }, @@ -417,6 +444,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Schedule/OnTick0/IamRolePolicy", }, @@ -425,6 +453,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Schedule/OnTick0/IamRolePolicyAttachment", }, @@ -433,6 +462,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", "path": "root/Default/Schedule/OnTick0/InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", }, @@ -441,6 +471,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Schedule/OnTick0/S3Object", }, @@ -461,6 +492,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Schedule", "path": "root/Default/Schedule/Schedule", }, @@ -469,6 +501,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ScheduleTarget0", "path": "root/Default/Schedule/ScheduleTarget0", }, @@ -489,6 +522,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -497,6 +531,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -505,6 +540,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -513,6 +549,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -521,6 +558,7 @@ exports[`convert the list of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -629,6 +667,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -637,6 +676,9 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -649,6 +691,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -657,6 +700,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Schedule/OnTick0/CloudwatchLogGroup", }, @@ -665,6 +709,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/Default", }, @@ -673,6 +718,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Schedule/OnTick0/IamRole", }, @@ -681,6 +727,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Schedule/OnTick0/IamRolePolicy", }, @@ -689,6 +736,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Schedule/OnTick0/IamRolePolicyAttachment", }, @@ -697,6 +745,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", "path": "root/Default/Schedule/OnTick0/InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", }, @@ -705,6 +754,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Schedule/OnTick0/S3Object", }, @@ -725,6 +775,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Schedule", "path": "root/Default/Schedule/Schedule", }, @@ -733,6 +784,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ScheduleTarget0", "path": "root/Default/Schedule/ScheduleTarget0", }, @@ -753,6 +805,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -761,6 +814,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -769,6 +823,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -777,6 +832,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -785,6 +841,7 @@ exports[`convert the range of dayOfWeek from Unix to AWS 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -893,6 +950,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -901,6 +959,9 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -913,6 +974,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -921,6 +983,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Schedule/OnTick0/CloudwatchLogGroup", }, @@ -929,6 +992,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/Default", }, @@ -937,6 +1001,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Schedule/OnTick0/IamRole", }, @@ -945,6 +1010,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Schedule/OnTick0/IamRolePolicy", }, @@ -953,6 +1019,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Schedule/OnTick0/IamRolePolicyAttachment", }, @@ -961,6 +1028,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", "path": "root/Default/Schedule/OnTick0/InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", }, @@ -969,6 +1037,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Schedule/OnTick0/S3Object", }, @@ -989,6 +1058,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Schedule", "path": "root/Default/Schedule/Schedule", }, @@ -997,6 +1067,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ScheduleTarget0", "path": "root/Default/Schedule/ScheduleTarget0", }, @@ -1017,6 +1088,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1025,6 +1097,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1033,6 +1106,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1041,6 +1115,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1049,6 +1124,7 @@ exports[`schedule behavior with cron 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1157,6 +1233,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1165,6 +1242,9 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1177,6 +1257,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -1185,6 +1266,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Schedule/OnTick0/CloudwatchLogGroup", }, @@ -1193,6 +1275,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/Default", }, @@ -1201,6 +1284,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Schedule/OnTick0/IamRole", }, @@ -1209,6 +1293,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Schedule/OnTick0/IamRolePolicy", }, @@ -1217,6 +1302,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Schedule/OnTick0/IamRolePolicyAttachment", }, @@ -1225,6 +1311,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", "path": "root/Default/Schedule/OnTick0/InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", }, @@ -1233,6 +1320,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Schedule/OnTick0/S3Object", }, @@ -1253,6 +1341,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Schedule", "path": "root/Default/Schedule/Schedule", }, @@ -1261,6 +1350,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ScheduleTarget0", "path": "root/Default/Schedule/ScheduleTarget0", }, @@ -1281,6 +1371,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1289,6 +1380,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1297,6 +1389,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1305,6 +1398,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1313,6 +1407,7 @@ exports[`schedule behavior with rate 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1421,6 +1516,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -1429,6 +1525,9 @@ exports[`schedule with two functions 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -1441,6 +1540,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -1449,6 +1549,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Schedule/OnTick0/CloudwatchLogGroup", }, @@ -1457,6 +1558,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/Default", }, @@ -1465,6 +1567,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Schedule/OnTick0/IamRole", }, @@ -1473,6 +1576,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Schedule/OnTick0/IamRolePolicy", }, @@ -1481,6 +1585,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Schedule/OnTick0/IamRolePolicyAttachment", }, @@ -1489,6 +1594,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", "path": "root/Default/Schedule/OnTick0/InvokePermission-c8b3fc394731d07e61c00e422c6b234372c09bc3b3", }, @@ -1497,6 +1603,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Schedule/OnTick0/S3Object", }, @@ -1517,6 +1624,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Schedule", "path": "root/Default/Schedule/Schedule", }, @@ -1525,6 +1633,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ScheduleTarget0", "path": "root/Default/Schedule/ScheduleTarget0", }, @@ -1545,6 +1654,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1553,6 +1663,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1561,6 +1672,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1569,6 +1681,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1577,6 +1690,7 @@ exports[`schedule with two functions 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap index bbd3ace5ab1..0d8e49866e0 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap @@ -32,6 +32,7 @@ exports[`default secret behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Secret/Default", }, @@ -40,6 +41,7 @@ exports[`default secret behavior 2`] = ` "fqn": "cdktf.TerraformOutput", "version": "0.20.3", }, + "display": {}, "id": "SecretArn", "path": "root/Default/Secret/SecretArn", }, @@ -60,6 +62,7 @@ exports[`default secret behavior 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -68,6 +71,7 @@ exports[`default secret behavior 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -76,6 +80,7 @@ exports[`default secret behavior 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -84,6 +89,7 @@ exports[`default secret behavior 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -92,6 +98,7 @@ exports[`default secret behavior 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap index fe359f9f465..4947dc17c3c 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap @@ -140,6 +140,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -150,6 +151,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -158,6 +160,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Function/CloudwatchLogGroup", }, @@ -166,6 +169,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/Default", }, @@ -174,6 +178,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Function/IamRole", }, @@ -182,6 +187,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Function/IamRolePolicy", }, @@ -190,6 +196,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Function/IamRolePolicyAttachment", }, @@ -198,6 +205,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Function/S3Object", }, @@ -218,6 +226,9 @@ exports[`function with a table binding 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -228,6 +239,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Table/Default", }, @@ -248,6 +260,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -256,6 +269,7 @@ exports[`function with a table binding 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -264,6 +278,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -272,6 +287,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -280,6 +296,7 @@ exports[`function with a table binding 3`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap index 3e385246e3d..8360ba7c65e 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap @@ -27,6 +27,7 @@ exports[`default topic behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Topic/Default", }, @@ -47,6 +48,7 @@ exports[`default topic behavior 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -55,6 +57,7 @@ exports[`default topic behavior 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -63,6 +66,7 @@ exports[`default topic behavior 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -71,6 +75,7 @@ exports[`default topic behavior 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -79,6 +84,7 @@ exports[`default topic behavior 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -113,6 +119,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The%Spectacular@Topic/Default", }, @@ -133,6 +140,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -141,6 +149,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -149,6 +158,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -157,6 +167,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -165,6 +176,7 @@ exports[`replace invalid character from queue name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -199,6 +211,7 @@ exports[`topic name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The-Spectacular_Topic-01/Default", }, @@ -219,6 +232,7 @@ exports[`topic name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -227,6 +241,7 @@ exports[`topic name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -235,6 +250,7 @@ exports[`topic name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -243,6 +259,7 @@ exports[`topic name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -251,6 +268,7 @@ exports[`topic name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -376,6 +394,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -384,6 +403,9 @@ exports[`topic with subscriber function 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -394,6 +416,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Topic/Default", }, @@ -402,6 +425,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/Topic/TopicSubscription0", }, @@ -424,6 +448,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Topic-OnMessage0/Asset", }, @@ -432,6 +457,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Topic-OnMessage0/CloudwatchLogGroup", }, @@ -440,6 +466,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Topic-OnMessage0/Default", }, @@ -448,6 +475,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Topic-OnMessage0/IamRole", }, @@ -456,6 +484,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Topic-OnMessage0/IamRolePolicy", }, @@ -464,6 +493,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Topic-OnMessage0/IamRolePolicyAttachment", }, @@ -472,6 +502,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c8228fb70d825c2a5610c610e5246d5313ea6bd1a2", "path": "root/Default/Topic-OnMessage0/InvokePermission-c8228fb70d825c2a5610c610e5246d5313ea6bd1a2", }, @@ -480,6 +511,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Topic-OnMessage0/S3Object", }, @@ -500,6 +532,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -508,6 +541,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -516,6 +550,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -524,6 +559,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -532,6 +568,7 @@ exports[`topic with subscriber function 3`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap index b3161b78a50..3f898f2311d 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap @@ -330,6 +330,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "AllowDistributionReadOnly", "path": "root/Default/Website/AllowDistributionReadOnly", }, @@ -338,6 +339,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "BucketWebsiteConfiguration", "path": "root/Default/Website/BucketWebsiteConfiguration", }, @@ -346,6 +348,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudfrontOac", "path": "root/Default/Website/CloudfrontOac", }, @@ -354,6 +357,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Distribution", "path": "root/Default/Website/Distribution", }, @@ -362,6 +366,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DistributionS3BucketPolicy", "path": "root/Default/Website/DistributionS3BucketPolicy", }, @@ -372,6 +377,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformOutput", "version": "0.20.3", }, + "display": {}, "id": "Url", "path": "root/Default/Website/Endpoint/Url", }, @@ -393,6 +399,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--b.html", "path": "root/Default/Website/File--b.html", }, @@ -401,6 +408,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--index.html", "path": "root/Default/Website/File--index.html", }, @@ -409,6 +417,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--inner-folder--a.html", "path": "root/Default/Website/File--inner-folder--a.html", }, @@ -417,6 +426,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "WebsiteBucket", "path": "root/Default/Website/WebsiteBucket", }, @@ -437,6 +447,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -445,6 +456,7 @@ exports[`default website behavior 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -453,6 +465,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -461,6 +474,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -469,6 +483,7 @@ exports[`default website behavior 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -650,6 +665,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "AllowDistributionReadOnly", "path": "root/Default/Website/AllowDistributionReadOnly", }, @@ -658,6 +674,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "BucketWebsiteConfiguration", "path": "root/Default/Website/BucketWebsiteConfiguration", }, @@ -666,6 +683,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudfrontOac", "path": "root/Default/Website/CloudfrontOac", }, @@ -674,6 +692,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Distribution", "path": "root/Default/Website/Distribution", }, @@ -682,6 +701,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DistributionS3BucketPolicy", "path": "root/Default/Website/DistributionS3BucketPolicy", }, @@ -692,6 +712,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformOutput", "version": "0.20.3", }, + "display": {}, "id": "Url", "path": "root/Default/Website/Endpoint/Url", }, @@ -713,6 +734,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--b.html", "path": "root/Default/Website/File--b.html", }, @@ -721,6 +743,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--index.html", "path": "root/Default/Website/File--index.html", }, @@ -729,6 +752,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--inner-folder--a.html", "path": "root/Default/Website/File--inner-folder--a.html", }, @@ -737,6 +761,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File-addition.html", "path": "root/Default/Website/File-addition.html", }, @@ -745,6 +770,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "WebsiteBucket", "path": "root/Default/Website/WebsiteBucket", }, @@ -765,6 +791,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -773,6 +800,7 @@ exports[`website with addFile 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -781,6 +809,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -789,6 +818,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -797,6 +827,7 @@ exports[`website with addFile 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -978,6 +1009,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformDataSource", "version": "0.20.3", }, + "display": {}, "id": "AllowDistributionReadOnly", "path": "root/Default/Website/AllowDistributionReadOnly", }, @@ -986,6 +1018,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "BucketWebsiteConfiguration", "path": "root/Default/Website/BucketWebsiteConfiguration", }, @@ -994,6 +1027,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudfrontOac", "path": "root/Default/Website/CloudfrontOac", }, @@ -1002,6 +1036,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Distribution", "path": "root/Default/Website/Distribution", }, @@ -1010,6 +1045,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DistributionS3BucketPolicy", "path": "root/Default/Website/DistributionS3BucketPolicy", }, @@ -1020,6 +1056,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformOutput", "version": "0.20.3", }, + "display": {}, "id": "Url", "path": "root/Default/Website/Endpoint/Url", }, @@ -1041,6 +1078,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--b.html", "path": "root/Default/Website/File--b.html", }, @@ -1049,6 +1087,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--index.html", "path": "root/Default/Website/File--index.html", }, @@ -1057,6 +1096,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File--inner-folder--a.html", "path": "root/Default/Website/File--inner-folder--a.html", }, @@ -1065,6 +1105,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "File-config.json", "path": "root/Default/Website/File-config.json", }, @@ -1073,6 +1114,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "WebsiteBucket", "path": "root/Default/Website/WebsiteBucket", }, @@ -1093,6 +1135,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -1101,6 +1144,7 @@ exports[`website with addJson 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1109,6 +1153,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1117,6 +1162,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1125,6 +1171,7 @@ exports[`website with addJson 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap index 9880e3ae2be..2ba9e697c62 100644 --- a/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap @@ -42,6 +42,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -50,6 +51,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -58,6 +60,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -68,6 +71,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/my_bucket/Bucket", }, @@ -88,6 +92,7 @@ exports[`bucket is public 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -96,6 +101,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -104,6 +110,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -112,6 +119,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -161,6 +169,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -169,6 +178,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -179,6 +189,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/The-Uncanny-Bucket/Bucket", }, @@ -199,6 +210,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -207,6 +219,7 @@ exports[`bucket name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -215,6 +228,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -223,6 +237,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -231,6 +246,7 @@ exports[`bucket name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -296,6 +312,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -304,6 +321,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -312,6 +330,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -322,6 +341,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Blob-file1.txt", "path": "root/Default/my_bucket/Blob-file1.txt", }, @@ -330,6 +350,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Blob-file2.txt", "path": "root/Default/my_bucket/Blob-file2.txt", }, @@ -338,6 +359,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/my_bucket/Bucket", }, @@ -358,6 +380,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -366,6 +389,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -374,6 +398,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -382,6 +407,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -447,6 +473,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -455,6 +482,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -463,6 +491,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -473,6 +502,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Blob-file1.txt", "path": "root/Default/my_bucket/Blob-file1.txt", }, @@ -481,6 +511,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Blob-file2.txt", "path": "root/Default/my_bucket/Blob-file2.txt", }, @@ -489,6 +520,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/my_bucket/Bucket", }, @@ -509,6 +541,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -517,6 +550,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -525,6 +559,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -533,6 +568,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -582,6 +618,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -590,6 +627,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -598,6 +636,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -608,6 +647,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/my_bucket/Bucket", }, @@ -628,6 +668,7 @@ exports[`create a bucket 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -636,6 +677,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -644,6 +686,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -652,6 +695,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -706,6 +750,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -714,6 +759,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -722,6 +768,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -732,6 +779,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/my_bucket/Bucket", }, @@ -754,6 +802,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/my_bucket2/Bucket", }, @@ -774,6 +823,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -782,6 +832,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -790,6 +841,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -798,6 +850,7 @@ exports[`create multiple buckets 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-azure/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-tf-azure/__snapshots__/counter.test.ts.snap index 19cf4b14359..791ed49db60 100644 --- a/libs/wingsdk/test/target-tf-azure/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-tf-azure/__snapshots__/counter.test.ts.snap @@ -41,6 +41,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -49,6 +50,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -57,6 +59,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -67,6 +70,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/wingcounter/CounterTable", }, @@ -87,6 +91,7 @@ exports[`counter name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -95,6 +100,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -103,6 +109,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -111,6 +118,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -161,6 +169,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/Counter/CounterTable", }, @@ -181,6 +190,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -189,6 +199,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -197,6 +208,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -205,6 +217,7 @@ exports[`counter with initial value 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -213,6 +226,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -221,6 +235,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -229,6 +244,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -358,6 +374,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -368,6 +385,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/Counter/CounterTable", }, @@ -390,6 +408,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -398,6 +417,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -406,6 +426,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -416,6 +437,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -436,6 +458,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -444,6 +467,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", "path": "root/Default/Function/RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", }, @@ -464,6 +488,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -472,6 +497,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -480,6 +506,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -488,6 +515,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -496,6 +524,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -504,6 +533,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -512,6 +542,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -520,6 +551,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -528,6 +560,7 @@ exports[`dec() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -685,6 +718,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -695,6 +729,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/Counter/CounterTable", }, @@ -717,6 +752,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -725,6 +761,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -733,6 +770,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -743,6 +781,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -763,6 +802,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -771,6 +811,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", "path": "root/Default/Function/RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", }, @@ -791,6 +832,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -799,6 +841,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -807,6 +850,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -815,6 +859,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -823,6 +868,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -831,6 +877,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -839,6 +886,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -847,6 +895,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -855,6 +904,7 @@ exports[`function with a counter binding 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -984,6 +1034,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -994,6 +1045,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/Counter/CounterTable", }, @@ -1016,6 +1068,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1024,6 +1077,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -1032,6 +1086,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -1042,6 +1097,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -1062,6 +1118,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -1070,6 +1127,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", "path": "root/Default/Function/RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", }, @@ -1090,6 +1148,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -1098,6 +1157,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -1106,6 +1166,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -1114,6 +1175,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -1122,6 +1184,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -1130,6 +1193,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1138,6 +1202,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1146,6 +1211,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1154,6 +1220,7 @@ exports[`inc() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1283,6 +1350,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -1293,6 +1361,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/Counter/CounterTable", }, @@ -1315,6 +1384,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1323,6 +1393,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -1331,6 +1402,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -1341,6 +1413,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -1361,6 +1434,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -1369,6 +1443,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Reader", "path": "root/Default/Function/RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Reader", }, @@ -1389,6 +1464,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -1397,6 +1473,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -1405,6 +1482,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -1413,6 +1491,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -1421,6 +1500,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -1429,6 +1509,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1437,6 +1518,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1445,6 +1527,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1453,6 +1536,7 @@ exports[`peek() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1501,6 +1585,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -1509,6 +1594,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -1519,6 +1605,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/The*Amazing%Counter@01/CounterTable", }, @@ -1539,6 +1626,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -1547,6 +1635,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1555,6 +1644,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1563,6 +1653,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1571,6 +1662,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1700,6 +1792,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -1710,6 +1803,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CounterTable", "path": "root/Default/Counter/CounterTable", }, @@ -1732,6 +1826,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1740,6 +1835,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -1748,6 +1844,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -1758,6 +1855,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -1778,6 +1876,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -1786,6 +1885,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", "path": "root/Default/Function/RoleAssignmentc8e1d35875c13ca650f2fed5dbae08291b89c185ec_Storage Table Data Contributor", }, @@ -1806,6 +1906,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -1814,6 +1915,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -1822,6 +1924,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -1830,6 +1933,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -1838,6 +1942,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -1846,6 +1951,7 @@ exports[`set() policy statement 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1854,6 +1960,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1862,6 +1969,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1870,6 +1978,7 @@ exports[`set() policy statement 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap index eb5d861efe7..139e32c4013 100644 --- a/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap @@ -108,6 +108,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -118,6 +119,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -126,6 +128,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -134,6 +137,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -144,6 +148,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -164,6 +169,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -184,6 +190,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -192,6 +199,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -200,6 +208,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -208,6 +217,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -216,6 +226,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -224,6 +235,7 @@ exports[`basic function 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -232,6 +244,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -240,6 +253,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -248,6 +262,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -365,6 +380,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -375,6 +391,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -383,6 +400,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/Function/CodeBlob", }, @@ -391,6 +409,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/Function/Function", }, @@ -401,6 +420,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/Function/FunctionBucket/Bucket", }, @@ -421,6 +441,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/Function/ReadLambdaCodeAssignment", }, @@ -441,6 +462,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -449,6 +471,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -457,6 +480,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -465,6 +489,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -473,6 +498,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -481,6 +507,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -489,6 +516,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -497,6 +525,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -505,6 +534,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -620,6 +650,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ApplicationInsights", "path": "root/Default/ApplicationInsights", }, @@ -628,6 +659,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "LogAnalyticsWorkspace", "path": "root/Default/LogAnalyticsWorkspace", }, @@ -636,6 +668,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ResourceGroup", "path": "root/Default/ResourceGroup", }, @@ -644,6 +677,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServicePlan", "path": "root/Default/ServicePlan", }, @@ -652,6 +686,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "StorageAccount", "path": "root/Default/StorageAccount", }, @@ -660,6 +695,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "azure", "path": "root/Default/azure", }, @@ -670,6 +706,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/someFunction01/Asset", }, @@ -678,6 +715,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CodeBlob", "path": "root/Default/someFunction01/CodeBlob", }, @@ -686,6 +724,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Function", "path": "root/Default/someFunction01/Function", }, @@ -696,6 +735,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Bucket", "path": "root/Default/someFunction01/FunctionBucket/Bucket", }, @@ -716,6 +756,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ReadLambdaCodeAssignment", "path": "root/Default/someFunction01/ReadLambdaCodeAssignment", }, @@ -736,6 +777,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -744,6 +786,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -752,6 +795,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -760,6 +804,7 @@ exports[`replace invalid character from function name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap index a08908926f4..0857f557e4d 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap @@ -51,6 +51,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -61,6 +62,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -69,6 +71,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/my_bucket/IamServiceAccountCredentialsApi", }, @@ -77,6 +80,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/my_bucket/Id", }, @@ -85,6 +89,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublicAccessIamMember", "path": "root/Default/my_bucket/PublicAccessIamMember", }, @@ -105,6 +110,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -113,6 +119,7 @@ exports[`bucket is public 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -121,6 +128,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -129,6 +137,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -137,6 +146,7 @@ exports[`bucket is public 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -200,6 +210,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -210,6 +221,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -218,6 +230,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/my_bucket/IamServiceAccountCredentialsApi", }, @@ -226,6 +239,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/my_bucket/Id", }, @@ -234,6 +248,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Object-file1.txt", "path": "root/Default/my_bucket/Object-file1.txt", }, @@ -242,6 +257,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Object-file2.txt", "path": "root/Default/my_bucket/Object-file2.txt", }, @@ -262,6 +278,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -270,6 +287,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -278,6 +296,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -286,6 +305,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -294,6 +314,7 @@ exports[`bucket with two preflight files 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -357,6 +378,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -367,6 +389,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -375,6 +398,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/my_bucket/IamServiceAccountCredentialsApi", }, @@ -383,6 +407,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/my_bucket/Id", }, @@ -391,6 +416,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Object-file1.txt", "path": "root/Default/my_bucket/Object-file1.txt", }, @@ -399,6 +425,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Object-file2.txt", "path": "root/Default/my_bucket/Object-file2.txt", }, @@ -419,6 +446,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -427,6 +455,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -435,6 +464,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -443,6 +473,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -451,6 +482,7 @@ exports[`bucket with two preflight objects 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -502,6 +534,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -512,6 +545,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket/Default", }, @@ -520,6 +554,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/my_bucket/IamServiceAccountCredentialsApi", }, @@ -528,6 +563,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/my_bucket/Id", }, @@ -548,6 +584,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -556,6 +593,7 @@ exports[`create a bucket 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -564,6 +602,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -572,6 +611,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -580,6 +620,7 @@ exports[`create a bucket 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -649,6 +690,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -659,6 +701,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket1/Default", }, @@ -667,6 +710,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/my_bucket1/IamServiceAccountCredentialsApi", }, @@ -675,6 +719,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/my_bucket1/Id", }, @@ -697,6 +742,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/my_bucket2/Default", }, @@ -705,6 +751,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/my_bucket2/IamServiceAccountCredentialsApi", }, @@ -713,6 +760,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/my_bucket2/Id", }, @@ -733,6 +781,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -741,6 +790,7 @@ exports[`two buckets 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -749,6 +799,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -757,6 +808,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -765,6 +817,7 @@ exports[`two buckets 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/counter.test.ts.snap index c6376fe925a..d9ac684ad2c 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/counter.test.ts.snap @@ -43,6 +43,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/The.Amazing-Counter_01/CloudFirestoreAPI", }, @@ -51,6 +52,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The.Amazing-Counter_01/Default", }, @@ -71,6 +73,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -79,6 +82,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -87,6 +91,7 @@ exports[`counter name valid 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -95,6 +100,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -103,6 +109,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -111,6 +118,7 @@ exports[`counter name valid 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -161,6 +169,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/Counter/CloudFirestoreAPI", }, @@ -169,6 +178,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -189,6 +199,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -197,6 +208,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -205,6 +217,7 @@ exports[`counter with initial value 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -213,6 +226,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -221,6 +235,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -229,6 +244,7 @@ exports[`counter with initial value 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -353,6 +369,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/Counter/CloudFirestoreAPI", }, @@ -361,6 +378,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -383,6 +401,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -391,6 +410,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -399,6 +419,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -409,6 +430,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -417,6 +439,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -425,6 +448,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -445,6 +469,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -453,6 +478,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -461,6 +487,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -481,6 +508,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -489,6 +517,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -497,6 +526,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -505,6 +535,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -513,6 +544,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -521,6 +553,7 @@ exports[`dec() IAM permissions 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -691,6 +724,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/Counter/CloudFirestoreAPI", }, @@ -699,6 +733,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -721,6 +756,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -729,6 +765,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -737,6 +774,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -747,6 +785,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -755,6 +794,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -763,6 +803,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -783,6 +824,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -791,6 +833,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -799,6 +842,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -819,6 +863,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -827,6 +872,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -835,6 +881,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -843,6 +890,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -851,6 +899,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -859,6 +908,7 @@ exports[`function with a counter binding 3`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -983,6 +1033,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/Counter/CloudFirestoreAPI", }, @@ -991,6 +1042,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -1013,6 +1065,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1021,6 +1074,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -1029,6 +1083,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -1039,6 +1094,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -1047,6 +1103,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -1055,6 +1112,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -1075,6 +1133,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -1083,6 +1142,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -1091,6 +1151,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -1111,6 +1172,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -1119,6 +1181,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -1127,6 +1190,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1135,6 +1199,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1143,6 +1208,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1151,6 +1217,7 @@ exports[`inc() IAM permissions 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1274,6 +1341,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/Counter/CloudFirestoreAPI", }, @@ -1282,6 +1350,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -1304,6 +1373,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1312,6 +1382,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -1320,6 +1391,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -1330,6 +1402,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -1338,6 +1411,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -1346,6 +1420,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -1366,6 +1441,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -1374,6 +1450,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -1382,6 +1459,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -1402,6 +1480,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -1410,6 +1489,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -1418,6 +1498,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1426,6 +1507,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1434,6 +1516,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1442,6 +1525,7 @@ exports[`peek() IAM permissions 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1492,6 +1576,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/The*Amazing%Counter@01/CloudFirestoreAPI", }, @@ -1500,6 +1585,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/The*Amazing%Counter@01/Default", }, @@ -1520,6 +1606,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -1528,6 +1615,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -1536,6 +1624,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1544,6 +1633,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1552,6 +1642,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1560,6 +1651,7 @@ exports[`replace invalid character from counter name 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -1683,6 +1775,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudFirestoreAPI", "path": "root/Default/Counter/CloudFirestoreAPI", }, @@ -1691,6 +1784,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Counter/Default", }, @@ -1713,6 +1807,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -1721,6 +1816,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -1729,6 +1825,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -1739,6 +1836,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -1747,6 +1845,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -1755,6 +1854,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -1775,6 +1875,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -1783,6 +1884,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -1791,6 +1893,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -1811,6 +1914,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -1819,6 +1923,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -1827,6 +1932,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -1835,6 +1941,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -1843,6 +1950,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -1851,6 +1959,7 @@ exports[`set() IAM permissions 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap index ba50a9f991e..e86b896a57a 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap @@ -93,6 +93,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -101,6 +102,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -109,6 +111,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -119,6 +122,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -127,6 +131,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -135,6 +140,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -155,6 +161,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -163,6 +170,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -171,6 +179,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -191,6 +200,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -199,6 +209,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -207,6 +218,7 @@ exports[`basic function 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -215,6 +227,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -223,6 +236,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -231,6 +245,7 @@ exports[`basic function 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -334,6 +349,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -342,6 +358,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -350,6 +367,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -360,6 +378,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -368,6 +387,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -376,6 +396,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -396,6 +417,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -404,6 +426,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -412,6 +435,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -432,6 +456,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -440,6 +465,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -448,6 +474,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -456,6 +483,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -464,6 +492,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -472,6 +501,7 @@ exports[`basic function with environment variables 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -574,6 +604,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -582,6 +613,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -590,6 +622,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -600,6 +633,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -608,6 +642,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -616,6 +651,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -636,6 +672,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -644,6 +681,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -652,6 +690,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -672,6 +711,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -680,6 +720,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -688,6 +729,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -696,6 +738,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -704,6 +747,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -712,6 +756,7 @@ exports[`basic function with memory size specified 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, @@ -814,6 +859,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Function/Asset", }, @@ -822,6 +868,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/CustomRolec852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -830,6 +877,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Function/DefaultFunction", }, @@ -840,6 +888,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Function/FunctionBucket/Default", }, @@ -848,6 +897,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Function/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -856,6 +906,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Function/FunctionBucket/Id", }, @@ -876,6 +927,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Function/FunctionObjectBucket", }, @@ -884,6 +936,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Function/ProjectIamMember", }, @@ -892,6 +945,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", "path": "root/Default/Function/ServiceAccountc852aba6d7cbe50c86bbedd1463b05db52425574b5", }, @@ -912,6 +966,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -920,6 +975,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -928,6 +984,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -936,6 +993,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -944,6 +1002,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -952,6 +1011,7 @@ exports[`basic function with timeout explicitly set 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/schedule.test.ts.snap index 7f742e263fe..2ff99b9284c 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/schedule.test.ts.snap @@ -124,6 +124,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Schedule/OnTick0/Asset", }, @@ -132,6 +133,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CustomRolec8e1d4a853a6dfc6d497de76ef87d4c5a00da4ae0a", "path": "root/Default/Schedule/OnTick0/CustomRolec8e1d4a853a6dfc6d497de76ef87d4c5a00da4ae0a", }, @@ -140,6 +142,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "DefaultFunction", "path": "root/Default/Schedule/OnTick0/DefaultFunction", }, @@ -150,6 +153,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Schedule/OnTick0/FunctionBucket/Default", }, @@ -158,6 +162,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamServiceAccountCredentialsApi", "path": "root/Default/Schedule/OnTick0/FunctionBucket/IamServiceAccountCredentialsApi", }, @@ -166,6 +171,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Id", "path": "root/Default/Schedule/OnTick0/FunctionBucket/Id", }, @@ -186,6 +192,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "FunctionObjectBucket", "path": "root/Default/Schedule/OnTick0/FunctionObjectBucket", }, @@ -194,6 +201,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ProjectIamMember", "path": "root/Default/Schedule/OnTick0/ProjectIamMember", }, @@ -202,6 +210,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "ServiceAccountc8e1d4a853a6dfc6d497de76ef87d4c5a00da4ae0a", "path": "root/Default/Schedule/OnTick0/ServiceAccountc8e1d4a853a6dfc6d497de76ef87d4c5a00da4ae0a", }, @@ -210,6 +219,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "invoker-permission-KEN.11]}", "path": "root/Default/Schedule/OnTick0/invoker-permission-KEN.11]}", }, @@ -230,6 +240,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Scheduler", "path": "root/Default/Schedule/Scheduler", }, @@ -238,6 +249,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "SchedulerServiceAccount", "path": "root/Default/Schedule/SchedulerServiceAccount", }, @@ -258,6 +270,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "google", "path": "root/Default/google", }, @@ -266,6 +279,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "random", "path": "root/Default/random", }, @@ -274,6 +288,7 @@ exports[`create a schedule 2`] = ` "fqn": "constructs.Construct", "version": "10.3.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -282,6 +297,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -290,6 +306,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -298,6 +315,7 @@ exports[`create a schedule 2`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md index dae379bedc7..313b72c26fe 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md @@ -94,7 +94,8 @@ class $Root extends $stdlib.std.Resource { }); } } - this.node.root.new("@cdktf/provider-aws.s3Bucket.S3Bucket", aws.s3Bucket.S3Bucket, this, "Bucket", { bucketPrefix: "hello", versioning: ({"enabled": true, "mfaDelete": true}) }); + const bucket = this.node.root.new("@cdktf/provider-aws.s3Bucket.S3Bucket", aws.s3Bucket.S3Bucket, this, "Bucket", { bucketPrefix: "hello", versioning: ({"enabled": true, "mfaDelete": true}) }); + $helpers.nodeof(bucket).color = "pink"; } } const $PlatformManager = new $stdlib.platform.PlatformManager({platformPaths: $platforms}); diff --git a/tools/hangar/__snapshots__/tree_json.ts.snap b/tools/hangar/__snapshots__/tree_json.ts.snap index 88e2f15bb11..dc0ca6ea343 100644 --- a/tools/hangar/__snapshots__/tree_json.ts.snap +++ b/tools/hangar/__snapshots__/tree_json.ts.snap @@ -13,6 +13,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Code", "path": "root/Default/Code", }, @@ -51,6 +52,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/Bar/Foo/Counter/Default", }, @@ -126,6 +128,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/Bucket/Default", }, @@ -148,6 +151,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/Queue/Default", }, @@ -156,6 +160,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "EventSourceMapping", "path": "root/Default/Default/BigPublisher/Queue/EventSourceMapping", }, @@ -178,6 +183,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/Asset", }, @@ -186,6 +192,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/CloudwatchLogGroup", }, @@ -194,6 +201,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/Default", }, @@ -202,6 +210,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/IamRole", }, @@ -210,6 +219,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/IamRolePolicy", }, @@ -218,6 +228,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/IamRolePolicyAttachment", }, @@ -226,6 +237,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Default/BigPublisher/Queue-SetConsumer0/S3Object", }, @@ -248,6 +260,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/Topic/Default", }, @@ -256,6 +269,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/Default/BigPublisher/Topic/TopicSubscription0", }, @@ -278,6 +292,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/Asset", }, @@ -286,6 +301,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/CloudwatchLogGroup", }, @@ -294,6 +310,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/Default", }, @@ -302,6 +319,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/IamRole", }, @@ -310,6 +328,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/IamRolePolicy", }, @@ -318,6 +337,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/IamRolePolicyAttachment", }, @@ -326,6 +346,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c884cd53ef51dde6112319447c29f4ea9473f19e6a", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/InvokePermission-c884cd53ef51dde6112319447c29f4ea9473f19e6a", }, @@ -334,6 +355,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Default/BigPublisher/Topic-OnMessage0/S3Object", }, @@ -356,6 +378,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/b2/Default", }, @@ -364,6 +387,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3BucketNotification", "path": "root/Default/Default/BigPublisher/b2/S3BucketNotification", }, @@ -374,6 +398,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/b2/oncreate/Default", }, @@ -382,6 +407,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", "path": "root/Default/Default/BigPublisher/b2/oncreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", }, @@ -390,6 +416,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "TopicSubscription0", "path": "root/Default/Default/BigPublisher/b2/oncreate/TopicSubscription0", }, @@ -412,6 +439,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformAsset", "version": "0.20.3", }, + "display": {}, "id": "Asset", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/Asset", }, @@ -420,6 +448,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "CloudwatchLogGroup", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/CloudwatchLogGroup", }, @@ -428,6 +457,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/Default", }, @@ -436,6 +466,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRole", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRole", }, @@ -444,6 +475,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicy", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRolePolicy", }, @@ -452,6 +484,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "IamRolePolicyAttachment", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRolePolicyAttachment", }, @@ -460,6 +493,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a", }, @@ -468,6 +502,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "S3Object", "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/S3Object", }, @@ -511,6 +546,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, + "display": {}, "id": "Default", "path": "root/Default/Default/Bucket/Default", }, @@ -646,6 +682,9 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "@winglang/sdk.platform.ParameterRegistrar", "version": "0.0.0", }, + "display": { + "hidden": true, + }, "id": "ParameterRegistrar", "path": "root/Default/ParameterRegistrar", }, @@ -654,6 +693,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformProvider", "version": "0.20.3", }, + "display": {}, "id": "aws", "path": "root/Default/aws", }, @@ -662,6 +702,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "@winglang/sdk.core.App", "version": "0.0.0", }, + "display": {}, "id": "Default", "path": "root/Default", }, @@ -670,6 +711,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.LocalBackend", "version": "0.20.3", }, + "display": {}, "id": "backend", "path": "root/backend", }, @@ -678,6 +720,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.TerraformStack", "version": "0.20.3", }, + "display": {}, "id": "root", "path": "root", }, @@ -686,6 +729,7 @@ exports[`tree.json for an app with many resources 1`] = ` "fqn": "cdktf.App", "version": "0.20.3", }, + "display": {}, "id": "App", "path": "", }, From af69dda359e79bf2b49bacd4539d0683cf9cfe63 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Thu, 6 Jun 2024 16:03:18 +0300 Subject: [PATCH 3/6] feat: show connections for token references (#6602) Resolves #6433 by adding a connection edge when resources reference each other through tokens (e.g. a function references `api.url`). The fact that these are implicit references doesn't mean they are not references... ## Console UI Tweaks * Remove the `()` from the connection operations because oftentimes they do not represent an actual method name. If we want to distinguish between operations and other types of connections, we should add this to the model and then display. * Only show the operation when there's a `sourceOp` in the connection. Do not default to the connection name. * In the navigation pane, change the label from "Access" to "Connections". * Restore connections for `invokeAsync()`. Not sure why they were removed (resolves #6607) * Change the node title of topics created for bucket notifications to `OnXxx` instead of `onxxx` (all lowercase). * Change the lift-based connection name to `call`. * Change the title for the queue consumer function to `Consumer` instead of `SetConsumer()`, also `Tick` (for schedules), `Subscriber` (for topics). ## Misc * Make the `source` property of `nodeof(x).addConnection()` optional and default to `this`. ## Checklist - [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- .../console/ui/src/features/map-view.tsx | 2 +- .../console/ui/src/services/use-map.ts | 6 - .../console/ui/src/ui/edge-metadata.tsx | 2 +- docs/docs/04-standard-library/std/node.md | 15 +- examples/tests/sdk_tests/bucket/events.test.w | 27 +- .../test/__snapshots__/bucket.test.ts.snap | 120 +-- libs/wingsdk/src/cloud/bucket.ts | 8 +- libs/wingsdk/src/std/node.ts | 8 +- libs/wingsdk/src/std/resource.ts | 2 +- libs/wingsdk/src/target-sim/app.ts | 37 +- libs/wingsdk/src/target-sim/queue.ts | 4 +- libs/wingsdk/src/target-sim/schedule.ts | 4 +- libs/wingsdk/src/target-sim/topic.ts | 9 +- libs/wingsdk/src/target-tf-aws/queue.ts | 2 +- libs/wingsdk/src/target-tf-aws/schedule.ts | 2 +- libs/wingsdk/src/target-tf-aws/topic.ts | 2 +- libs/wingsdk/src/target-tf-gcp/schedule.ts | 2 +- .../__snapshots__/connections.test.ts.snap | 13 + libs/wingsdk/test/core/connections.test.ts | 43 +- .../target-sim/__snapshots__/api.test.ts.snap | 99 ++- .../__snapshots__/bucket.test.ts.snap | 80 +- .../__snapshots__/file-counter.test.ts.snap | 12 +- .../__snapshots__/queue.test.ts.snap | 12 +- .../__snapshots__/redis.test.ts.snap | 9 +- .../__snapshots__/schedule.test.ts.snap | 12 +- .../__snapshots__/bucket.test.ts.snap | 756 +++++++++--------- .../bucket/events.test.w_compile_tf-aws.md | 486 +++++------ ..._after_class_init.test.w_compile_tf-aws.md | 92 +-- .../valid/resource.test.w_compile_tf-aws.md | 92 +-- tools/hangar/__snapshots__/tree_json.ts.snap | 56 +- 30 files changed, 1104 insertions(+), 910 deletions(-) diff --git a/apps/wing-console/console/ui/src/features/map-view.tsx b/apps/wing-console/console/ui/src/features/map-view.tsx index ef57d63688f..5daf94be144 100644 --- a/apps/wing-console/console/ui/src/features/map-view.tsx +++ b/apps/wing-console/console/ui/src/features/map-view.tsx @@ -352,7 +352,7 @@ const ConstructNode: FunctionComponent> = "font-mono", )} > - {inflight.name}() + {inflight.name}
    diff --git a/apps/wing-console/console/ui/src/services/use-map.ts b/apps/wing-console/console/ui/src/services/use-map.ts index 1fb7009f98b..a7ee36c77a6 100644 --- a/apps/wing-console/console/ui/src/services/use-map.ts +++ b/apps/wing-console/console/ui/src/services/use-map.ts @@ -228,12 +228,6 @@ export const useMap = ({ expandedItems }: UseMapOptions) => { return bridgeConnections({ connections: rawConnections - .filter((connection) => { - return ( - connection.sourceOp !== "invokeAsync" && - connection.targetOp !== "invokeAsync" - ); - }) .filter((connection) => { return connection.source !== connection.target; }) diff --git a/apps/wing-console/console/ui/src/ui/edge-metadata.tsx b/apps/wing-console/console/ui/src/ui/edge-metadata.tsx index 2812a35e4cd..c64b3cdf881 100644 --- a/apps/wing-console/console/ui/src/ui/edge-metadata.tsx +++ b/apps/wing-console/console/ui/src/ui/edge-metadata.tsx @@ -144,7 +144,7 @@ export const EdgeMetadata = ({
    - +
    name | str | A name for the connection. | -| source | constructs.IConstruct | The source of the connection. | | target | constructs.IConstruct | The target of the connection. | +| source | constructs.IConstruct | The source of the connection. | | sourceOp | str | An operation that the source construct supports. | | targetOp | str | An operation that the target construct supports. | @@ -590,27 +590,28 @@ A name for the connection. --- -##### `source`Required +##### `target`Required ```wing -source: IConstruct; +target: IConstruct; ``` - *Type:* constructs.IConstruct -The source of the connection. +The target of the connection. --- -##### `target`Required +##### `source`Optional ```wing -target: IConstruct; +source: IConstruct; ``` - *Type:* constructs.IConstruct +- *Default:* this -The target of the connection. +The source of the connection. --- diff --git a/examples/tests/sdk_tests/bucket/events.test.w b/examples/tests/sdk_tests/bucket/events.test.w index 2bebbf6b622..df4a1e82d02 100644 --- a/examples/tests/sdk_tests/bucket/events.test.w +++ b/examples/tests/sdk_tests/bucket/events.test.w @@ -29,15 +29,15 @@ let logHistory = inflight (key: str, operation: str, source: Source) => { b.onDelete(inflight (key: str) => { - logHistory(key, "onDelete()", Source.anyEvent); + logHistory(key, "OnDelete()", Source.anyEvent); }); b.onUpdate(inflight (key: str) => { - logHistory(key, "onUpdate()", Source.anyEvent); + logHistory(key, "OnUpdate()", Source.anyEvent); }); b.onCreate(inflight (key: str) => { - logHistory(key, "onCreate()", Source.anyEvent); + logHistory(key, "OnCreate()", Source.anyEvent); }); b.onEvent(inflight (key: str, event: cloud.BucketEventType) => { @@ -54,6 +54,7 @@ struct CheckHitCountOptions { let checkHitCount = inflight (opts: CheckHitCountOptions): void => { util.waitUntil(inflight () => { let var count = 0; + for u in table.list() { if (u.get("key") == opts.key && u.get("operation") == opts.type && u.get("source") == "{opts.source}") { count = count + 1; @@ -74,19 +75,19 @@ new std.Test(inflight () => { // https://github.com/winglang/wing/issues/2724 if (util.env("WING_TARGET") != "tf-aws") { // assert that onCreate events about the "a", "b", and "c" objects were each produced exactly 1 time - checkHitCount(key: "a", type: "onCreate()", source: Source.anyEvent, count: 1); - checkHitCount(key: "b", type: "onCreate()", source: Source.anyEvent, count: 1); - checkHitCount(key: "c", type: "onCreate()", source: Source.anyEvent, count: 1); + checkHitCount(key: "a", type: "OnCreate()", source: Source.anyEvent, count: 1); + checkHitCount(key: "b", type: "OnCreate()", source: Source.anyEvent, count: 1); + checkHitCount(key: "c", type: "OnCreate()", source: Source.anyEvent, count: 1); - checkHitCount(key: "a", type: "onCreate()", source: Source.onEvent, count: 1); - checkHitCount(key: "b", type: "onCreate()", source: Source.onEvent, count: 1); - checkHitCount(key: "c", type: "onCreate()", source: Source.onEvent, count: 1); + checkHitCount(key: "a", type: "OnCreate()", source: Source.onEvent, count: 1); + checkHitCount(key: "b", type: "OnCreate()", source: Source.onEvent, count: 1); + checkHitCount(key: "c", type: "OnCreate()", source: Source.onEvent, count: 1); - checkHitCount(key: "b", type: "onUpdate()", source: Source.anyEvent, count: 1); - checkHitCount(key: "c", type: "onDelete()", source: Source.anyEvent, count: 1); + checkHitCount(key: "b", type: "OnUpdate()", source: Source.anyEvent, count: 1); + checkHitCount(key: "c", type: "OnDelete()", source: Source.anyEvent, count: 1); - checkHitCount(key: "b", type: "onUpdate()", source: Source.onEvent, count: 1); - checkHitCount(key: "c", type: "onDelete()", source: Source.onEvent, count: 1); + checkHitCount(key: "b", type: "OnUpdate()", source: Source.onEvent, count: 1); + checkHitCount(key: "c", type: "OnDelete()", source: Source.onEvent, count: 1); } }, timeout: 8m) as "hitCount is incremented according to the bucket event"; diff --git a/libs/awscdk/test/__snapshots__/bucket.test.ts.snap b/libs/awscdk/test/__snapshots__/bucket.test.ts.snap index 6fbbfd7d938..a89a7a0028e 100644 --- a/libs/awscdk/test/__snapshots__/bucket.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/bucket.test.ts.snap @@ -270,12 +270,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::IAM::Policy", }, - "mybucketAllowBucketNotificationsTomyprojectmybucketonCreate09D19557ECA49DF15": { + "mybucketAllowBucketNotificationsTomyprojectmybucketOnCreate0523E7CD109C74964": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "mybucketonCreate0503ECF25", + "mybucketOnCreate071865324", "Arn", ], }, @@ -316,7 +316,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "mybucketNotificationsB76B6B79": { "DependsOn": [ - "mybucketAllowBucketNotificationsTomyprojectmybucketonCreate09D19557ECA49DF15", + "mybucketAllowBucketNotificationsTomyprojectmybucketOnCreate0523E7CD109C74964", ], "Properties": { "BucketName": { @@ -331,7 +331,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s ], "LambdaFunctionArn": { "Fn::GetAtt": [ - "mybucketonCreate0503ECF25", + "mybucketOnCreate071865324", "Arn", ], }, @@ -347,9 +347,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "Custom::S3BucketNotifications", }, - "mybucketonCreate0503ECF25": { + "mybucketOnCreate071865324": { "DependsOn": [ - "mybucketonCreate0ServiceRole7D97CBD8", + "mybucketOnCreate0ServiceRole8EB9AE15", ], "Properties": { "Architectures": [ @@ -369,13 +369,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Handler": "index.handler", "LoggingConfig": { "LogGroup": { - "Ref": "mybucketonCreate0LogGroup56018191", + "Ref": "mybucketOnCreate0LogGroup8E3C4A72", }, }, "MemorySize": 1024, "Role": { "Fn::GetAtt": [ - "mybucketonCreate0ServiceRole7D97CBD8", + "mybucketOnCreate0ServiceRole8EB9AE15", "Arn", ], }, @@ -384,7 +384,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Function", }, - "mybucketonCreate0LogGroup56018191": { + "mybucketOnCreate0LogGroup8E3C4A72": { "DeletionPolicy": "Retain", "Properties": { "RetentionInDays": 30, @@ -392,7 +392,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Retain", }, - "mybucketonCreate0ServiceRole7D97CBD8": { + "mybucketOnCreate0ServiceRole8EB9AE15": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ @@ -627,12 +627,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::IAM::Policy", }, - "mybucketAllowBucketNotificationsTomyprojectmybucketonDelete057F4EEBE2F8EA524": { + "mybucketAllowBucketNotificationsTomyprojectmybucketOnDelete07E2A93E8688C7533": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "mybucketonDelete091EC820E", + "mybucketOnDelete0BC86CC27", "Arn", ], }, @@ -673,7 +673,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "mybucketNotificationsB76B6B79": { "DependsOn": [ - "mybucketAllowBucketNotificationsTomyprojectmybucketonDelete057F4EEBE2F8EA524", + "mybucketAllowBucketNotificationsTomyprojectmybucketOnDelete07E2A93E8688C7533", ], "Properties": { "BucketName": { @@ -688,7 +688,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s ], "LambdaFunctionArn": { "Fn::GetAtt": [ - "mybucketonDelete091EC820E", + "mybucketOnDelete0BC86CC27", "Arn", ], }, @@ -704,9 +704,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "Custom::S3BucketNotifications", }, - "mybucketonDelete091EC820E": { + "mybucketOnDelete0BC86CC27": { "DependsOn": [ - "mybucketonDelete0ServiceRole20B2A547", + "mybucketOnDelete0ServiceRole57A03DE1", ], "Properties": { "Architectures": [ @@ -726,13 +726,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Handler": "index.handler", "LoggingConfig": { "LogGroup": { - "Ref": "mybucketonDelete0LogGroupD9E8D54C", + "Ref": "mybucketOnDelete0LogGroup44992347", }, }, "MemorySize": 1024, "Role": { "Fn::GetAtt": [ - "mybucketonDelete0ServiceRole20B2A547", + "mybucketOnDelete0ServiceRole57A03DE1", "Arn", ], }, @@ -741,7 +741,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Function", }, - "mybucketonDelete0LogGroupD9E8D54C": { + "mybucketOnDelete0LogGroup44992347": { "DeletionPolicy": "Retain", "Properties": { "RetentionInDays": 30, @@ -749,7 +749,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Retain", }, - "mybucketonDelete0ServiceRole20B2A547": { + "mybucketOnDelete0ServiceRole57A03DE1": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ @@ -984,12 +984,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::IAM::Policy", }, - "mybucketAllowBucketNotificationsTomyprojectmybucketonCreate09D19557ECA49DF15": { + "mybucketAllowBucketNotificationsTomyprojectmybucketOnCreate0523E7CD109C74964": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "mybucketonCreate0503ECF25", + "mybucketOnCreate071865324", "Arn", ], }, @@ -1006,12 +1006,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Permission", }, - "mybucketAllowBucketNotificationsTomyprojectmybucketonDelete057F4EEBE2F8EA524": { + "mybucketAllowBucketNotificationsTomyprojectmybucketOnDelete07E2A93E8688C7533": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "mybucketonDelete091EC820E", + "mybucketOnDelete0BC86CC27", "Arn", ], }, @@ -1028,12 +1028,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Permission", }, - "mybucketAllowBucketNotificationsTomyprojectmybucketonUpdate0DA830360476798FF": { + "mybucketAllowBucketNotificationsTomyprojectmybucketOnUpdate036B5F47FED7981DE": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "mybucketonUpdate02A38D403", + "mybucketOnUpdate06503D6F0", "Arn", ], }, @@ -1074,9 +1074,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "mybucketNotificationsB76B6B79": { "DependsOn": [ - "mybucketAllowBucketNotificationsTomyprojectmybucketonCreate09D19557ECA49DF15", - "mybucketAllowBucketNotificationsTomyprojectmybucketonDelete057F4EEBE2F8EA524", - "mybucketAllowBucketNotificationsTomyprojectmybucketonUpdate0DA830360476798FF", + "mybucketAllowBucketNotificationsTomyprojectmybucketOnCreate0523E7CD109C74964", + "mybucketAllowBucketNotificationsTomyprojectmybucketOnDelete07E2A93E8688C7533", + "mybucketAllowBucketNotificationsTomyprojectmybucketOnUpdate036B5F47FED7981DE", ], "Properties": { "BucketName": { @@ -1091,7 +1091,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s ], "LambdaFunctionArn": { "Fn::GetAtt": [ - "mybucketonCreate0503ECF25", + "mybucketOnCreate071865324", "Arn", ], }, @@ -1102,7 +1102,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s ], "LambdaFunctionArn": { "Fn::GetAtt": [ - "mybucketonDelete091EC820E", + "mybucketOnDelete0BC86CC27", "Arn", ], }, @@ -1113,7 +1113,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s ], "LambdaFunctionArn": { "Fn::GetAtt": [ - "mybucketonUpdate02A38D403", + "mybucketOnUpdate06503D6F0", "Arn", ], }, @@ -1129,9 +1129,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "Custom::S3BucketNotifications", }, - "mybucketonCreate0503ECF25": { + "mybucketOnCreate071865324": { "DependsOn": [ - "mybucketonCreate0ServiceRole7D97CBD8", + "mybucketOnCreate0ServiceRole8EB9AE15", ], "Properties": { "Architectures": [ @@ -1151,13 +1151,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Handler": "index.handler", "LoggingConfig": { "LogGroup": { - "Ref": "mybucketonCreate0LogGroup56018191", + "Ref": "mybucketOnCreate0LogGroup8E3C4A72", }, }, "MemorySize": 1024, "Role": { "Fn::GetAtt": [ - "mybucketonCreate0ServiceRole7D97CBD8", + "mybucketOnCreate0ServiceRole8EB9AE15", "Arn", ], }, @@ -1166,7 +1166,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Function", }, - "mybucketonCreate0LogGroup56018191": { + "mybucketOnCreate0LogGroup8E3C4A72": { "DeletionPolicy": "Retain", "Properties": { "RetentionInDays": 30, @@ -1174,7 +1174,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Retain", }, - "mybucketonCreate0ServiceRole7D97CBD8": { + "mybucketOnCreate0ServiceRole8EB9AE15": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ @@ -1205,9 +1205,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::IAM::Role", }, - "mybucketonDelete091EC820E": { + "mybucketOnDelete0BC86CC27": { "DependsOn": [ - "mybucketonDelete0ServiceRole20B2A547", + "mybucketOnDelete0ServiceRole57A03DE1", ], "Properties": { "Architectures": [ @@ -1227,13 +1227,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Handler": "index.handler", "LoggingConfig": { "LogGroup": { - "Ref": "mybucketonDelete0LogGroupD9E8D54C", + "Ref": "mybucketOnDelete0LogGroup44992347", }, }, "MemorySize": 1024, "Role": { "Fn::GetAtt": [ - "mybucketonDelete0ServiceRole20B2A547", + "mybucketOnDelete0ServiceRole57A03DE1", "Arn", ], }, @@ -1242,7 +1242,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Function", }, - "mybucketonDelete0LogGroupD9E8D54C": { + "mybucketOnDelete0LogGroup44992347": { "DeletionPolicy": "Retain", "Properties": { "RetentionInDays": 30, @@ -1250,7 +1250,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Retain", }, - "mybucketonDelete0ServiceRole20B2A547": { + "mybucketOnDelete0ServiceRole57A03DE1": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ @@ -1281,9 +1281,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::IAM::Role", }, - "mybucketonUpdate02A38D403": { + "mybucketOnUpdate06503D6F0": { "DependsOn": [ - "mybucketonUpdate0ServiceRole6E92AC54", + "mybucketOnUpdate0ServiceRoleAF91E9C7", ], "Properties": { "Architectures": [ @@ -1303,13 +1303,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Handler": "index.handler", "LoggingConfig": { "LogGroup": { - "Ref": "mybucketonUpdate0LogGroupDA44D636", + "Ref": "mybucketOnUpdate0LogGroupFDC75EA3", }, }, "MemorySize": 1024, "Role": { "Fn::GetAtt": [ - "mybucketonUpdate0ServiceRole6E92AC54", + "mybucketOnUpdate0ServiceRoleAF91E9C7", "Arn", ], }, @@ -1318,7 +1318,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Function", }, - "mybucketonUpdate0LogGroupDA44D636": { + "mybucketOnUpdate0LogGroupFDC75EA3": { "DeletionPolicy": "Retain", "Properties": { "RetentionInDays": 30, @@ -1326,7 +1326,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Retain", }, - "mybucketonUpdate0ServiceRole6E92AC54": { + "mybucketOnUpdate0ServiceRoleAF91E9C7": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ @@ -1561,12 +1561,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::IAM::Policy", }, - "mybucketAllowBucketNotificationsTomyprojectmybucketonUpdate0DA830360476798FF": { + "mybucketAllowBucketNotificationsTomyprojectmybucketOnUpdate036B5F47FED7981DE": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "mybucketonUpdate02A38D403", + "mybucketOnUpdate06503D6F0", "Arn", ], }, @@ -1607,7 +1607,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "mybucketNotificationsB76B6B79": { "DependsOn": [ - "mybucketAllowBucketNotificationsTomyprojectmybucketonUpdate0DA830360476798FF", + "mybucketAllowBucketNotificationsTomyprojectmybucketOnUpdate036B5F47FED7981DE", ], "Properties": { "BucketName": { @@ -1622,7 +1622,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s ], "LambdaFunctionArn": { "Fn::GetAtt": [ - "mybucketonUpdate02A38D403", + "mybucketOnUpdate06503D6F0", "Arn", ], }, @@ -1638,9 +1638,9 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "Custom::S3BucketNotifications", }, - "mybucketonUpdate02A38D403": { + "mybucketOnUpdate06503D6F0": { "DependsOn": [ - "mybucketonUpdate0ServiceRole6E92AC54", + "mybucketOnUpdate0ServiceRoleAF91E9C7", ], "Properties": { "Architectures": [ @@ -1660,13 +1660,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Handler": "index.handler", "LoggingConfig": { "LogGroup": { - "Ref": "mybucketonUpdate0LogGroupDA44D636", + "Ref": "mybucketOnUpdate0LogGroupFDC75EA3", }, }, "MemorySize": 1024, "Role": { "Fn::GetAtt": [ - "mybucketonUpdate0ServiceRole6E92AC54", + "mybucketOnUpdate0ServiceRoleAF91E9C7", "Arn", ], }, @@ -1675,7 +1675,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s }, "Type": "AWS::Lambda::Function", }, - "mybucketonUpdate0LogGroupDA44D636": { + "mybucketOnUpdate0LogGroupFDC75EA3": { "DeletionPolicy": "Retain", "Properties": { "RetentionInDays": 30, @@ -1683,7 +1683,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Retain", }, - "mybucketonUpdate0ServiceRole6E92AC54": { + "mybucketOnUpdate0ServiceRoleAF91E9C7": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ diff --git a/libs/wingsdk/src/cloud/bucket.ts b/libs/wingsdk/src/cloud/bucket.ts index 2372be10269..28583912b55 100644 --- a/libs/wingsdk/src/cloud/bucket.ts +++ b/libs/wingsdk/src/cloud/bucket.ts @@ -89,7 +89,7 @@ export class Bucket extends Resource { * @returns the created topic */ protected createTopic(actionType: BucketEventType): Topic { - const topic = new Topic(this, actionType.toLowerCase()); + const topic = new Topic(this, actionType); this.node.addDependency(topic); return topic; } @@ -524,15 +524,15 @@ export enum BucketEventType { /** * Create */ - CREATE = "onCreate", + CREATE = "OnCreate", /** * Delete */ - DELETE = "onDelete", + DELETE = "OnDelete", /** * Update */ - UPDATE = "onUpdate", + UPDATE = "OnUpdate", } /** diff --git a/libs/wingsdk/src/std/node.ts b/libs/wingsdk/src/std/node.ts index 778f49ef316..e34074001c4 100644 --- a/libs/wingsdk/src/std/node.ts +++ b/libs/wingsdk/src/std/node.ts @@ -104,7 +104,10 @@ export class Node { * metadata describing how one construct is related to another construct. */ public addConnection(props: AddConnectionProps) { - this._connections.add(props); + this._connections.add({ + source: props.source ?? this.construct, + ...props, + }); } // ---- constructs 10.x APIs ---- @@ -423,8 +426,9 @@ export class Node { export interface AddConnectionProps { /** * The source of the connection. + * @default this */ - readonly source: IConstruct; + readonly source?: IConstruct; /** * An operation that the source construct supports. diff --git a/libs/wingsdk/src/std/resource.ts b/libs/wingsdk/src/std/resource.ts index 3573d0d7e20..bd28fed4286 100644 --- a/libs/wingsdk/src/std/resource.ts +++ b/libs/wingsdk/src/std/resource.ts @@ -228,7 +228,7 @@ function addConnectionsFromLiftMap( sourceOp: baseOp ?? op, target: dep, targetOp: depOp, - name: depOp, + name: "call", }); } } else if (hasLiftMap(dep)) { diff --git a/libs/wingsdk/src/target-sim/app.ts b/libs/wingsdk/src/target-sim/app.ts index fcdc41cc0a6..9299aaf7186 100644 --- a/libs/wingsdk/src/target-sim/app.ts +++ b/libs/wingsdk/src/target-sim/app.ts @@ -1,5 +1,6 @@ import * as fs from "fs"; import * as path from "path"; +import { IConstruct } from "constructs"; import { Api } from "./api"; import { Bucket } from "./bucket"; import { SIM_CONTAINER_FQN } from "./container"; @@ -47,6 +48,7 @@ import { TypeSchema, WingSimulatorSchema, } from "../simulator"; +import { resolveTokens } from "../simulator/tokens"; import { TEST_RUNNER_FQN } from "../std"; /** @@ -248,7 +250,9 @@ export class App extends core.App { } // write simulator.json file into workdir - this.synthSimulatorFile(this.outdir); + const spec = this.synthSimulatorFile(this.outdir); + + this.addTokenConnections(spec); // write tree.json file into workdir core.synthesizeTree(this, this.outdir); @@ -265,6 +269,35 @@ export class App extends core.App { return this.outdir; } + /** + * Scans the app spec for token references and adds connections to reflect + * this relationship. + * + * @param spec The simulator spec + */ + private addTokenConnections(spec: WingSimulatorSchema) { + const map: Record = {}; + for (const c of this.node.findAll()) { + map[c.node.path] = c; + } + + for (const [from, resource] of Object.entries(spec.resources)) { + resolveTokens(resource.props, (to) => { + // skip references to the "handle" of the target resource because it would be reflected by + // the connections created by inflight method calls. + if (to.attr !== "handle") { + core.Connections.of(this).add({ + source: map[from], + target: map[to.path], + targetOp: to.attr, + name: "", + }); + } + return ""; // <-- not used + }); + } + } + private synthSimulatorFile(outdir: string) { const resources: Record = {}; for (const r of new core.DependencyGraph(this.node).topology()) { @@ -304,5 +337,7 @@ export class App extends core.App { JSON.stringify(contents, undefined, 2), { encoding: "utf8" } ); + + return contents; } } diff --git a/libs/wingsdk/src/target-sim/queue.ts b/libs/wingsdk/src/target-sim/queue.ts index 8e6eab981a3..650473372cb 100644 --- a/libs/wingsdk/src/target-sim/queue.ts +++ b/libs/wingsdk/src/target-sim/queue.ts @@ -87,7 +87,7 @@ export class Queue extends cloud.Queue implements ISimulatorResource { ); const fnNode = Node.of(fn); fnNode.sourceModule = SDK_SOURCE_MODULE; - fnNode.title = "setConsumer()"; + fnNode.title = "Consumer"; const mapping = new EventMapping( this, @@ -113,7 +113,7 @@ export class Queue extends cloud.Queue implements ISimulatorResource { sourceOp: cloud.QueueInflightMethods.PUSH, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE, - name: "setConsumer()", + name: "consumer", }); return fn; diff --git a/libs/wingsdk/src/target-sim/schedule.ts b/libs/wingsdk/src/target-sim/schedule.ts index c324ba15673..20d90270633 100644 --- a/libs/wingsdk/src/target-sim/schedule.ts +++ b/libs/wingsdk/src/target-sim/schedule.ts @@ -44,7 +44,7 @@ export class Schedule extends cloud.Schedule implements ISimulatorResource { props ); Node.of(fn).sourceModule = SDK_SOURCE_MODULE; - Node.of(fn).title = "onTick()"; + Node.of(fn).title = "Tick"; new EventMapping(this, App.of(this).makeId(this, "OnTickMapping"), { subscriber: fn, @@ -57,7 +57,7 @@ export class Schedule extends cloud.Schedule implements ISimulatorResource { sourceOp: cloud.ScheduleInflightMethods.TICK, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE, - name: "onTick()", + name: "tick", }); this.policy.addStatement(fn, cloud.FunctionInflightMethods.INVOKE); diff --git a/libs/wingsdk/src/target-sim/topic.ts b/libs/wingsdk/src/target-sim/topic.ts index 75b3ea26f38..db2e153327e 100644 --- a/libs/wingsdk/src/target-sim/topic.ts +++ b/libs/wingsdk/src/target-sim/topic.ts @@ -35,7 +35,7 @@ export class Topic extends cloud.Topic implements ISimulatorResource { props ); Node.of(fn).sourceModule = SDK_SOURCE_MODULE; - Node.of(fn).title = "onMessage()"; + Node.of(fn).title = "Subscriber"; new EventMapping(this, App.of(this).makeId(this, "TopicEventMapping"), { subscriber: fn, @@ -48,7 +48,7 @@ export class Topic extends cloud.Topic implements ISimulatorResource { sourceOp: cloud.TopicInflightMethods.PUBLISH, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE, - name: "onMessage()", + name: "subscriber", }); this.policy.addStatement(fn, cloud.FunctionInflightMethods.INVOKE_ASYNC); @@ -69,7 +69,8 @@ export class Topic extends cloud.Topic implements ISimulatorResource { {} ); Node.of(fn).sourceModule = SDK_SOURCE_MODULE; - Node.of(fn).title = "subscribeQueue()"; + Node.of(fn).title = "QueueSubscriber"; + Node.of(fn).hidden = true; new EventMapping(this, App.of(this).makeId(this, "TopicEventMapping"), { subscriber: fn, @@ -82,7 +83,7 @@ export class Topic extends cloud.Topic implements ISimulatorResource { sourceOp: cloud.TopicInflightMethods.PUBLISH, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE_ASYNC, - name: "subscribeQueue()", + name: "push", }); this.policy.addStatement(fn, cloud.FunctionInflightMethods.INVOKE_ASYNC); diff --git a/libs/wingsdk/src/target-tf-aws/queue.ts b/libs/wingsdk/src/target-tf-aws/queue.ts index 299d1e582bb..e1e3bbd6006 100644 --- a/libs/wingsdk/src/target-tf-aws/queue.ts +++ b/libs/wingsdk/src/target-tf-aws/queue.ts @@ -117,7 +117,7 @@ export class Queue extends cloud.Queue implements IAwsQueue { sourceOp: cloud.QueueInflightMethods.PUSH, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE, - name: "setConsumer()", + name: "consumer", }); return fn; diff --git a/libs/wingsdk/src/target-tf-aws/schedule.ts b/libs/wingsdk/src/target-tf-aws/schedule.ts index f0a6bc1edaa..2a09b2aaed2 100644 --- a/libs/wingsdk/src/target-tf-aws/schedule.ts +++ b/libs/wingsdk/src/target-tf-aws/schedule.ts @@ -78,7 +78,7 @@ export class Schedule extends cloud.Schedule { sourceOp: cloud.ScheduleInflightMethods.TICK, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE, - name: "onTick()", + name: "tick", }); return fn; diff --git a/libs/wingsdk/src/target-tf-aws/topic.ts b/libs/wingsdk/src/target-tf-aws/topic.ts index 40b2fdb31ea..793d6ccc63b 100644 --- a/libs/wingsdk/src/target-tf-aws/topic.ts +++ b/libs/wingsdk/src/target-tf-aws/topic.ts @@ -86,7 +86,7 @@ export class Topic extends cloud.Topic implements IAwsTopic { sourceOp: cloud.TopicInflightMethods.PUBLISH, target: fn, targetOp: cloud.FunctionInflightMethods.INVOKE_ASYNC, - name: "onMessage()", + name: "subscriber", }); return fn; diff --git a/libs/wingsdk/src/target-tf-gcp/schedule.ts b/libs/wingsdk/src/target-tf-gcp/schedule.ts index fe4494853f2..7a9609605de 100644 --- a/libs/wingsdk/src/target-tf-gcp/schedule.ts +++ b/libs/wingsdk/src/target-tf-gcp/schedule.ts @@ -89,7 +89,7 @@ export class Schedule extends cloud.Schedule { sourceOp: cloud.ScheduleInflightMethods.TICK, target: cronFunction, targetOp: cloud.FunctionInflightMethods.INVOKE, - name: "onTick()", + name: "tick", }); return cronFunction; diff --git a/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap b/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap index 758b2123b89..1a7c3e15a81 100644 --- a/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap +++ b/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap @@ -203,3 +203,16 @@ exports.handler = async function(event) { }, } `; + +exports[`source can be omitted from \`nodeof(x).addConnection()\` 1`] = ` +{ + "connections": [ + { + "name": "my_connection", + "source": "root/B1", + "target": "root/B2", + }, + ], + "version": "connections-0.1", +} +`; diff --git a/libs/wingsdk/test/core/connections.test.ts b/libs/wingsdk/test/core/connections.test.ts index fc00b2bd2f3..633b5d2b742 100644 --- a/libs/wingsdk/test/core/connections.test.ts +++ b/libs/wingsdk/test/core/connections.test.ts @@ -1,6 +1,12 @@ import { test, expect } from "vitest"; import * as cloud from "../../src/cloud"; -import { Connections, inflight } from "../../src/core"; +import { + CONNECTIONS_FILE_PATH, + Connections, + inflight, + lift, +} from "../../src/core"; +import { Node } from "../../src/std"; import { SimApp } from "../sim-app"; test("create a bucket", async () => { @@ -22,3 +28,38 @@ test("create a bucket", async () => { // THEN expect(app.snapshot()).toMatchSnapshot(); }); + +test("implict connections based on tokens", async () => { + const app = new SimApp(); + + const api = new cloud.Api(app, "Api"); + + new cloud.Function( + app, + "Function", + lift({ url: api.url }).inflight(async (ctx) => { + console.log(ctx.url); + return undefined; + }) + ); + + expect(app.snapshot()[CONNECTIONS_FILE_PATH].connections).containSubset([ + { + name: "", + source: "root/Function", + target: "root/Api", + targetOp: "url", + }, + ]); +}); + +test("source can be omitted from `nodeof(x).addConnection()`", async () => { + const app = new SimApp(); + + const b1 = new cloud.Bucket(app, "B1"); + const b2 = new cloud.Bucket(app, "B2"); + + Node.of(b1).addConnection({ target: b2, name: "my_connection" }); + + expect(app.snapshot()[CONNECTIONS_FILE_PATH]).toMatchSnapshot(); +}); diff --git a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap index 6f853be3c33..259bcdf577a 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap @@ -61,6 +61,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -402,6 +408,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -728,6 +740,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -1055,6 +1073,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -1382,6 +1406,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -1709,6 +1739,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -2095,6 +2131,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -2505,6 +2547,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -2848,6 +2896,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -3171,6 +3225,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -3569,6 +3629,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler1", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -4023,6 +4089,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler1", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -4423,6 +4495,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -4749,6 +4827,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -5085,6 +5169,12 @@ exports.handler = async function(event) { "target": "root/my_api/OnRequestHandler0", "targetOp": "invoke", }, + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, ], "version": "connections-0.1", }, @@ -5341,7 +5431,14 @@ exports.handler = async function(event) { exports[`create an api 1`] = ` { "connections.json": { - "connections": [], + "connections": [ + { + "name": "", + "source": "root/my_api/Endpoint", + "target": "root/my_api", + "targetOp": "url", + }, + ], "version": "connections-0.1", }, "simulator.json": { diff --git a/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap index 57ef79fb33a..22cceb4f71c 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap @@ -2,21 +2,21 @@ exports[`bucket on event creates 3 topics, and sends the right event and key in the event handlers 1`] = ` [ - "root/my_bucket/oncreate started", - "root/my_bucket/onupdate started", - "root/my_bucket/ondelete started", + "root/my_bucket/OnCreate started", + "root/my_bucket/OnUpdate started", + "root/my_bucket/OnDelete started", "root/my_bucket started", "root/my_bucket/Policy started", "root/log_bucket started", - "root/my_bucket/oncreate/OnMessage0 started", - "root/my_bucket/oncreate/Policy started", - "root/my_bucket/oncreate/TopicEventMapping0 started", - "root/my_bucket/onupdate/OnMessage0 started", - "root/my_bucket/onupdate/Policy started", - "root/my_bucket/onupdate/TopicEventMapping0 started", - "root/my_bucket/ondelete/OnMessage0 started", - "root/my_bucket/ondelete/Policy started", - "root/my_bucket/ondelete/TopicEventMapping0 started", + "root/my_bucket/OnCreate/OnMessage0 started", + "root/my_bucket/OnCreate/Policy started", + "root/my_bucket/OnCreate/TopicEventMapping0 started", + "root/my_bucket/OnUpdate/OnMessage0 started", + "root/my_bucket/OnUpdate/Policy started", + "root/my_bucket/OnUpdate/TopicEventMapping0 started", + "root/my_bucket/OnDelete/OnMessage0 started", + "root/my_bucket/OnDelete/Policy started", + "root/my_bucket/OnDelete/TopicEventMapping0 started", "root/log_bucket/Policy started", "Sending message (message=a, subscriber=sim-6).", "InvokeAsync (payload="a").", @@ -41,18 +41,18 @@ exports[`bucket on event creates 3 topics, and sends the right event and key in "Get (key=a).", "root/my_bucket/Policy stopped", "root/my_bucket stopped", - "root/my_bucket/oncreate/Policy stopped", - "root/my_bucket/oncreate/TopicEventMapping0 stopped", - "root/my_bucket/oncreate stopped", - "root/my_bucket/onupdate/Policy stopped", - "root/my_bucket/onupdate/TopicEventMapping0 stopped", - "root/my_bucket/onupdate stopped", - "root/my_bucket/ondelete/Policy stopped", - "root/my_bucket/ondelete/TopicEventMapping0 stopped", - "root/my_bucket/ondelete stopped", - "root/my_bucket/oncreate/OnMessage0 stopped", - "root/my_bucket/onupdate/OnMessage0 stopped", - "root/my_bucket/ondelete/OnMessage0 stopped", + "root/my_bucket/OnCreate/Policy stopped", + "root/my_bucket/OnCreate/TopicEventMapping0 stopped", + "root/my_bucket/OnCreate stopped", + "root/my_bucket/OnUpdate/Policy stopped", + "root/my_bucket/OnUpdate/TopicEventMapping0 stopped", + "root/my_bucket/OnUpdate stopped", + "root/my_bucket/OnDelete/Policy stopped", + "root/my_bucket/OnDelete/TopicEventMapping0 stopped", + "root/my_bucket/OnDelete stopped", + "root/my_bucket/OnCreate/OnMessage0 stopped", + "root/my_bucket/OnUpdate/OnMessage0 stopped", + "root/my_bucket/OnDelete/OnMessage0 stopped", "root/log_bucket/Policy stopped", "root/log_bucket stopped", ] @@ -833,12 +833,12 @@ exports[`remove object from a bucket with mustExist as option 1`] = ` exports[`removing a key will call onDelete method 1`] = ` [ - "root/my_bucket/ondelete started", + "root/my_bucket/OnDelete started", "root/my_bucket started", "root/my_bucket/Policy started", - "root/my_bucket/ondelete/OnMessage0 started", - "root/my_bucket/ondelete/Policy started", - "root/my_bucket/ondelete/TopicEventMapping0 started", + "root/my_bucket/OnDelete/OnMessage0 started", + "root/my_bucket/OnDelete/Policy started", + "root/my_bucket/OnDelete/TopicEventMapping0 started", "Put (key=unknown.txt).", "Sending message (message=unknown.txt, subscriber=sim-3).", "InvokeAsync (payload="unknown.txt").", @@ -847,21 +847,21 @@ exports[`removing a key will call onDelete method 1`] = ` "Received unknown.txt", "root/my_bucket/Policy stopped", "root/my_bucket stopped", - "root/my_bucket/ondelete/Policy stopped", - "root/my_bucket/ondelete/TopicEventMapping0 stopped", - "root/my_bucket/ondelete stopped", - "root/my_bucket/ondelete/OnMessage0 stopped", + "root/my_bucket/OnDelete/Policy stopped", + "root/my_bucket/OnDelete/TopicEventMapping0 stopped", + "root/my_bucket/OnDelete stopped", + "root/my_bucket/OnDelete/OnMessage0 stopped", ] `; exports[`update an object in bucket 1`] = ` [ - "root/my_bucket/oncreate started", + "root/my_bucket/OnCreate started", "root/my_bucket started", "root/my_bucket/Policy started", - "root/my_bucket/oncreate/OnMessage0 started", - "root/my_bucket/oncreate/Policy started", - "root/my_bucket/oncreate/TopicEventMapping0 started", + "root/my_bucket/OnCreate/OnMessage0 started", + "root/my_bucket/OnCreate/Policy started", + "root/my_bucket/OnCreate/TopicEventMapping0 started", "Sending message (message=1.txt, subscriber=sim-3).", "InvokeAsync (payload="1.txt").", "Publish (messages=1.txt).", @@ -870,9 +870,9 @@ exports[`update an object in bucket 1`] = ` "I am done", "root/my_bucket/Policy stopped", "root/my_bucket stopped", - "root/my_bucket/oncreate/Policy stopped", - "root/my_bucket/oncreate/TopicEventMapping0 stopped", - "root/my_bucket/oncreate stopped", - "root/my_bucket/oncreate/OnMessage0 stopped", + "root/my_bucket/OnCreate/Policy stopped", + "root/my_bucket/OnCreate/TopicEventMapping0 stopped", + "root/my_bucket/OnCreate stopped", + "root/my_bucket/OnCreate/OnMessage0 stopped", ] `; diff --git a/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap index 99876988ed4..165f544cd25 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap @@ -162,7 +162,7 @@ bucket: (function() { "connections.json": { "connections": [ { - "name": "setConsumer()", + "name": "consumer", "source": "root/HelloWorld/Queue", "sourceOp": "push", "target": "root/HelloWorld/Queue/Consumer0", @@ -197,28 +197,28 @@ bucket: (function() { "targetOp": "call", }, { - "name": "inc", + "name": "call", "source": "root/HelloWorld/Queue/Consumer0", "sourceOp": "invoke", "target": "root/HelloWorld/Counter", "targetOp": "inc", }, { - "name": "put", + "name": "call", "source": "root/HelloWorld/Queue/Consumer0", "sourceOp": "invoke", "target": "root/HelloWorld/Bucket", "targetOp": "put", }, { - "name": "inc", + "name": "call", "source": "root/HelloWorld/Queue/Consumer0", "sourceOp": "invokeAsync", "target": "root/HelloWorld/Counter", "targetOp": "inc", }, { - "name": "put", + "name": "call", "source": "root/HelloWorld/Queue/Consumer0", "sourceOp": "invokeAsync", "target": "root/HelloWorld/Bucket", @@ -492,7 +492,7 @@ bucket: (function() { "display": { "description": "A cloud function (FaaS)", "sourceModule": "@winglang/sdk", - "title": "setConsumer()", + "title": "Consumer", }, "id": "Consumer0", "path": "root/HelloWorld/Queue/Consumer0", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap index 1f5e4cc0b18..21df1d0e50b 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap @@ -1032,21 +1032,21 @@ exports.handler = async function(event) { "connections.json": { "connections": [ { - "name": "setConsumer()", + "name": "consumer", "source": "root/my_queue", "sourceOp": "push", "target": "root/my_queue/Consumer0", "targetOp": "invoke", }, { - "name": "push", + "name": "call", "source": "root/my_queue_messages/Function", "sourceOp": "invoke", "target": "root/my_queue", "targetOp": "push", }, { - "name": "push", + "name": "call", "source": "root/my_queue_messages/Function", "sourceOp": "invokeAsync", "target": "root/my_queue", @@ -1246,7 +1246,7 @@ exports.handler = async function(event) { "display": { "description": "A cloud function (FaaS)", "sourceModule": "@winglang/sdk", - "title": "setConsumer()", + "title": "Consumer", }, "id": "Consumer0", "path": "root/my_queue/Consumer0", @@ -1382,7 +1382,7 @@ exports.handler = async function(event) { "connections.json": { "connections": [ { - "name": "setConsumer()", + "name": "consumer", "source": "root/my_queue", "sourceOp": "push", "target": "root/my_queue/Consumer0", @@ -1548,7 +1548,7 @@ exports.handler = async function(event) { "display": { "description": "A cloud function (FaaS)", "sourceModule": "@winglang/sdk", - "title": "setConsumer()", + "title": "Consumer", }, "id": "Consumer0", "path": "root/my_queue/Consumer0", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap index 715c2a43ed0..26d92bb5662 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap @@ -3,7 +3,14 @@ exports[`create a Redis resource 1`] = ` { "connections.json": { - "connections": [], + "connections": [ + { + "name": "", + "source": "root/my_redis", + "target": "root/my_redis/Container", + "targetOp": "host_port", + }, + ], "version": "connections-0.1", }, "simulator.json": { diff --git a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap index f2a1a4e74a2..123af737016 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap @@ -192,7 +192,7 @@ exports.handler = async function(event) { "connections.json": { "connections": [ { - "name": "onTick()", + "name": "tick", "source": "root/my_schedule", "sourceOp": "tick", "target": "root/my_schedule/OnTick0", @@ -350,7 +350,7 @@ exports.handler = async function(event) { "display": { "description": "A cloud function (FaaS)", "sourceModule": "@winglang/sdk", - "title": "onTick()", + "title": "Tick", }, "id": "OnTick0", "path": "root/my_schedule/OnTick0", @@ -443,7 +443,7 @@ exports.handler = async function(event) { "connections.json": { "connections": [ { - "name": "onTick()", + "name": "tick", "source": "root/my_schedule", "sourceOp": "tick", "target": "root/my_schedule/OnTick0", @@ -601,7 +601,7 @@ exports.handler = async function(event) { "display": { "description": "A cloud function (FaaS)", "sourceModule": "@winglang/sdk", - "title": "onTick()", + "title": "Tick", }, "id": "OnTick0", "path": "root/my_schedule/OnTick0", @@ -694,7 +694,7 @@ exports.handler = async function(event) { "connections.json": { "connections": [ { - "name": "onTick()", + "name": "tick", "source": "root/my_schedule", "sourceOp": "tick", "target": "root/my_schedule/OnTick0", @@ -852,7 +852,7 @@ exports.handler = async function(event) { "display": { "description": "A cloud function (FaaS)", "sourceModule": "@winglang/sdk", - "title": "onTick()", + "title": "Tick", }, "id": "OnTick0", "path": "root/my_schedule/OnTick0", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap index 05db4b72192..2457f05f584 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap @@ -319,47 +319,47 @@ exports[`bucket with onCreate method 1`] = ` { "resource": { "aws_cloudwatch_log_group": { - "my_bucket_oncreate-OnMessage0_CloudwatchLogGroup_E35B13F5": { - "name": "/aws/lambda/oncreate-OnMessage0-c874e955", + "my_bucket_OnCreate-OnMessage0_CloudwatchLogGroup_E3DA1BCC": { + "name": "/aws/lambda/OnCreate-OnMessage0-c8b6ea23", "retention_in_days": 30, }, }, "aws_iam_role": { - "my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5": { + "my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA": { "assume_role_policy": "{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Principal":{"Service":"lambda.amazonaws.com"},"Effect":"Allow"}]}", }, }, "aws_iam_role_policy": { - "my_bucket_oncreate-OnMessage0_IamRolePolicy_CDE0CB68": { + "my_bucket_OnCreate-OnMessage0_IamRolePolicy_8D03B4D5": { "policy": "{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"none:null","Resource":"*"}]}", - "role": "\${aws_iam_role.my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5.name}", + "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.name}", }, }, "aws_iam_role_policy_attachment": { - "my_bucket_oncreate-OnMessage0_IamRolePolicyAttachment_085EB554": { + "my_bucket_OnCreate-OnMessage0_IamRolePolicyAttachment_4F57A9D0": { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "\${aws_iam_role.my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5.name}", + "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.name}", }, }, "aws_lambda_function": { - "my_bucket_oncreate-OnMessage0_773D84E9": { + "my_bucket_OnCreate-OnMessage0_8A9D7A6E": { "architectures": [ "arm64", ], "environment": { "variables": { "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "oncreate-OnMessage0-c874e955", + "WING_FUNCTION_NAME": "OnCreate-OnMessage0-c8b6ea23", }, }, - "function_name": "oncreate-OnMessage0-c874e955", + "function_name": "OnCreate-OnMessage0-c8b6ea23", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "\${aws_iam_role.my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5.arn}", + "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.arn}", "runtime": "nodejs20.x", "s3_bucket": "\${aws_s3_bucket.Code.bucket}", - "s3_key": "\${aws_s3_object.my_bucket_oncreate-OnMessage0_S3Object_AF838DF5.key}", + "s3_key": "\${aws_s3_object.my_bucket_OnCreate-OnMessage0_S3Object_02866773.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -368,11 +368,11 @@ exports[`bucket with onCreate method 1`] = ` }, }, "aws_lambda_permission": { - "my_bucket_oncreate-OnMessage0_InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1_7675EF40": { + "my_bucket_OnCreate-OnMessage0_InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8_60C310A7": { "action": "lambda:InvokeFunction", - "function_name": "\${aws_lambda_function.my_bucket_oncreate-OnMessage0_773D84E9.function_name}", + "function_name": "\${aws_lambda_function.my_bucket_OnCreate-OnMessage0_8A9D7A6E.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", + "source_arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", }, }, "aws_s3_bucket": { @@ -388,7 +388,7 @@ exports[`bucket with onCreate method 1`] = ` "my_bucket_S3BucketNotification_DDA29E8F": { "bucket": "\${aws_s3_bucket.my_bucket.id}", "depends_on": [ - "aws_sns_topic_policy.my_bucket_oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CE3B77A7", + "aws_sns_topic_policy.my_bucket_OnCreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_F8789A85", ], "topic": [ { @@ -396,7 +396,7 @@ exports[`bucket with onCreate method 1`] = ` "s3:ObjectCreated:Put", ], "id": "on-oncreate-notification", - "topic_arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", }, ], }, @@ -420,28 +420,28 @@ exports[`bucket with onCreate method 1`] = ` }, }, "aws_s3_object": { - "my_bucket_oncreate-OnMessage0_S3Object_AF838DF5": { + "my_bucket_OnCreate-OnMessage0_S3Object_02866773": { "bucket": "\${aws_s3_bucket.Code.bucket}", "key": "", "source": "", }, }, "aws_sns_topic": { - "my_bucket_oncreate_EF5D7ECA": { - "name": "oncreate-c8ad674c", + "my_bucket_OnCreate_14226F85": { + "name": "OnCreate-c88b8dd6", }, }, "aws_sns_topic_policy": { - "my_bucket_oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CE3B77A7": { - "arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", - "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", + "my_bucket_OnCreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_F8789A85": { + "arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", + "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", }, }, "aws_sns_topic_subscription": { - "my_bucket_oncreate_TopicSubscription0_0EC6A2F3": { - "endpoint": "\${aws_lambda_function.my_bucket_oncreate-OnMessage0_773D84E9.arn}", + "my_bucket_OnCreate_TopicSubscription0_4D6EC9AA": { + "endpoint": "\${aws_lambda_function.my_bucket_OnCreate-OnMessage0_8A9D7A6E.arn}", "protocol": "lambda", - "topic_arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", }, }, }, @@ -496,34 +496,7 @@ exports[`bucket with onCreate method 2`] = ` "id": "Default", "path": "root/Default/my_bucket/Default", }, - "PublicAccessBlock": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicAccessBlock", - "path": "root/Default/my_bucket/PublicAccessBlock", - }, - "PublicPolicy": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicPolicy", - "path": "root/Default/my_bucket/PublicPolicy", - }, - "S3BucketNotification": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "S3BucketNotification", - "path": "root/Default/my_bucket/S3BucketNotification", - }, - "oncreate": { + "OnCreate": { "children": { "Default": { "constructInfo": { @@ -532,7 +505,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/oncreate/Default", + "path": "root/Default/my_bucket/OnCreate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -541,7 +514,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/oncreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/OnCreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, "TopicSubscription0": { "constructInfo": { @@ -550,7 +523,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/my_bucket/oncreate/TopicSubscription0", + "path": "root/Default/my_bucket/OnCreate/TopicSubscription0", }, }, "constructInfo": { @@ -561,10 +534,10 @@ exports[`bucket with onCreate method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "oncreate", - "path": "root/Default/my_bucket/oncreate", + "id": "OnCreate", + "path": "root/Default/my_bucket/OnCreate", }, - "oncreate-OnMessage0": { + "OnCreate-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -573,7 +546,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/my_bucket/oncreate-OnMessage0/Asset", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -582,7 +555,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/my_bucket/oncreate-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -591,7 +564,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/oncreate-OnMessage0/Default", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -600,7 +573,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRole", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -609,7 +582,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicy", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -618,16 +591,16 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1": { + "InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", - "path": "root/Default/my_bucket/oncreate-OnMessage0/InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", + "id": "InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8", }, "S3Object": { "constructInfo": { @@ -636,7 +609,7 @@ exports[`bucket with onCreate method 2`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/my_bucket/oncreate-OnMessage0/S3Object", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/S3Object", }, }, "constructInfo": { @@ -647,8 +620,35 @@ exports[`bucket with onCreate method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "oncreate-OnMessage0", - "path": "root/Default/my_bucket/oncreate-OnMessage0", + "id": "OnCreate-OnMessage0", + "path": "root/Default/my_bucket/OnCreate-OnMessage0", + }, + "PublicAccessBlock": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicAccessBlock", + "path": "root/Default/my_bucket/PublicAccessBlock", + }, + "PublicPolicy": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicPolicy", + "path": "root/Default/my_bucket/PublicPolicy", + }, + "S3BucketNotification": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "S3BucketNotification", + "path": "root/Default/my_bucket/S3BucketNotification", }, }, "constructInfo": { @@ -706,47 +706,47 @@ exports[`bucket with onDelete method 1`] = ` { "resource": { "aws_cloudwatch_log_group": { - "my_bucket_ondelete-OnMessage0_CloudwatchLogGroup_420A05F2": { - "name": "/aws/lambda/ondelete-OnMessage0-c8772675", + "my_bucket_OnDelete-OnMessage0_CloudwatchLogGroup_24024A4B": { + "name": "/aws/lambda/OnDelete-OnMessage0-c804d7e9", "retention_in_days": 30, }, }, "aws_iam_role": { - "my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC": { + "my_bucket_OnDelete-OnMessage0_IamRole_F99741C4": { "assume_role_policy": "{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Principal":{"Service":"lambda.amazonaws.com"},"Effect":"Allow"}]}", }, }, "aws_iam_role_policy": { - "my_bucket_ondelete-OnMessage0_IamRolePolicy_635C2064": { + "my_bucket_OnDelete-OnMessage0_IamRolePolicy_B1B53387": { "policy": "{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"none:null","Resource":"*"}]}", - "role": "\${aws_iam_role.my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC.name}", + "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.name}", }, }, "aws_iam_role_policy_attachment": { - "my_bucket_ondelete-OnMessage0_IamRolePolicyAttachment_C985200D": { + "my_bucket_OnDelete-OnMessage0_IamRolePolicyAttachment_221C4BFC": { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "\${aws_iam_role.my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC.name}", + "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.name}", }, }, "aws_lambda_function": { - "my_bucket_ondelete-OnMessage0_9871443D": { + "my_bucket_OnDelete-OnMessage0_DB633A4C": { "architectures": [ "arm64", ], "environment": { "variables": { "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "ondelete-OnMessage0-c8772675", + "WING_FUNCTION_NAME": "OnDelete-OnMessage0-c804d7e9", }, }, - "function_name": "ondelete-OnMessage0-c8772675", + "function_name": "OnDelete-OnMessage0-c804d7e9", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "\${aws_iam_role.my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC.arn}", + "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.arn}", "runtime": "nodejs20.x", "s3_bucket": "\${aws_s3_bucket.Code.bucket}", - "s3_key": "\${aws_s3_object.my_bucket_ondelete-OnMessage0_S3Object_BB790A1F.key}", + "s3_key": "\${aws_s3_object.my_bucket_OnDelete-OnMessage0_S3Object_B50900E0.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -755,11 +755,11 @@ exports[`bucket with onDelete method 1`] = ` }, }, "aws_lambda_permission": { - "my_bucket_ondelete-OnMessage0_InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315_E690DB87": { + "my_bucket_OnDelete-OnMessage0_InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a_63129B62": { "action": "lambda:InvokeFunction", - "function_name": "\${aws_lambda_function.my_bucket_ondelete-OnMessage0_9871443D.function_name}", + "function_name": "\${aws_lambda_function.my_bucket_OnDelete-OnMessage0_DB633A4C.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", + "source_arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", }, }, "aws_s3_bucket": { @@ -775,7 +775,7 @@ exports[`bucket with onDelete method 1`] = ` "my_bucket_S3BucketNotification_DDA29E8F": { "bucket": "\${aws_s3_bucket.my_bucket.id}", "depends_on": [ - "aws_sns_topic_policy.my_bucket_ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_1B83A43C", + "aws_sns_topic_policy.my_bucket_OnDelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_54A5EE56", ], "topic": [ { @@ -783,7 +783,7 @@ exports[`bucket with onDelete method 1`] = ` "s3:ObjectRemoved:*", ], "id": "on-ondelete-notification", - "topic_arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", }, ], }, @@ -807,28 +807,28 @@ exports[`bucket with onDelete method 1`] = ` }, }, "aws_s3_object": { - "my_bucket_ondelete-OnMessage0_S3Object_BB790A1F": { + "my_bucket_OnDelete-OnMessage0_S3Object_B50900E0": { "bucket": "\${aws_s3_bucket.Code.bucket}", "key": "", "source": "", }, }, "aws_sns_topic": { - "my_bucket_ondelete_C2E093CB": { - "name": "ondelete-c8142b51", + "my_bucket_OnDelete_E3DBFE86": { + "name": "OnDelete-c818f138", }, }, "aws_sns_topic_policy": { - "my_bucket_ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_1B83A43C": { - "arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", - "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", + "my_bucket_OnDelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_54A5EE56": { + "arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", + "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", }, }, "aws_sns_topic_subscription": { - "my_bucket_ondelete_TopicSubscription0_E374967A": { - "endpoint": "\${aws_lambda_function.my_bucket_ondelete-OnMessage0_9871443D.arn}", + "my_bucket_OnDelete_TopicSubscription0_7974ED63": { + "endpoint": "\${aws_lambda_function.my_bucket_OnDelete-OnMessage0_DB633A4C.arn}", "protocol": "lambda", - "topic_arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", }, }, }, @@ -883,34 +883,7 @@ exports[`bucket with onDelete method 2`] = ` "id": "Default", "path": "root/Default/my_bucket/Default", }, - "PublicAccessBlock": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicAccessBlock", - "path": "root/Default/my_bucket/PublicAccessBlock", - }, - "PublicPolicy": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicPolicy", - "path": "root/Default/my_bucket/PublicPolicy", - }, - "S3BucketNotification": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "S3BucketNotification", - "path": "root/Default/my_bucket/S3BucketNotification", - }, - "ondelete": { + "OnDelete": { "children": { "Default": { "constructInfo": { @@ -919,7 +892,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/ondelete/Default", + "path": "root/Default/my_bucket/OnDelete/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -928,7 +901,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/ondelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/OnDelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, "TopicSubscription0": { "constructInfo": { @@ -937,7 +910,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/my_bucket/ondelete/TopicSubscription0", + "path": "root/Default/my_bucket/OnDelete/TopicSubscription0", }, }, "constructInfo": { @@ -948,10 +921,10 @@ exports[`bucket with onDelete method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "ondelete", - "path": "root/Default/my_bucket/ondelete", + "id": "OnDelete", + "path": "root/Default/my_bucket/OnDelete", }, - "ondelete-OnMessage0": { + "OnDelete-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -960,7 +933,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/my_bucket/ondelete-OnMessage0/Asset", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -969,7 +942,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/my_bucket/ondelete-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -978,7 +951,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/ondelete-OnMessage0/Default", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -987,7 +960,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRole", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -996,7 +969,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicy", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -1005,16 +978,16 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315": { + "InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", - "path": "root/Default/my_bucket/ondelete-OnMessage0/InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", + "id": "InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a", }, "S3Object": { "constructInfo": { @@ -1023,7 +996,7 @@ exports[`bucket with onDelete method 2`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/my_bucket/ondelete-OnMessage0/S3Object", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/S3Object", }, }, "constructInfo": { @@ -1034,8 +1007,35 @@ exports[`bucket with onDelete method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "ondelete-OnMessage0", - "path": "root/Default/my_bucket/ondelete-OnMessage0", + "id": "OnDelete-OnMessage0", + "path": "root/Default/my_bucket/OnDelete-OnMessage0", + }, + "PublicAccessBlock": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicAccessBlock", + "path": "root/Default/my_bucket/PublicAccessBlock", + }, + "PublicPolicy": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicPolicy", + "path": "root/Default/my_bucket/PublicPolicy", + }, + "S3BucketNotification": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "S3BucketNotification", + "path": "root/Default/my_bucket/S3BucketNotification", }, }, "constructInfo": { @@ -1093,125 +1093,125 @@ exports[`bucket with onEvent method 1`] = ` { "resource": { "aws_cloudwatch_log_group": { - "my_bucket_oncreate-OnMessage0_CloudwatchLogGroup_E35B13F5": { - "name": "/aws/lambda/oncreate-OnMessage0-c874e955", + "my_bucket_OnCreate-OnMessage0_CloudwatchLogGroup_E3DA1BCC": { + "name": "/aws/lambda/OnCreate-OnMessage0-c8b6ea23", "retention_in_days": 30, }, - "my_bucket_ondelete-OnMessage0_CloudwatchLogGroup_420A05F2": { - "name": "/aws/lambda/ondelete-OnMessage0-c8772675", + "my_bucket_OnDelete-OnMessage0_CloudwatchLogGroup_24024A4B": { + "name": "/aws/lambda/OnDelete-OnMessage0-c804d7e9", "retention_in_days": 30, }, - "my_bucket_onupdate-OnMessage0_CloudwatchLogGroup_25463B70": { - "name": "/aws/lambda/onupdate-OnMessage0-c8a1be62", + "my_bucket_OnUpdate-OnMessage0_CloudwatchLogGroup_CA36F40B": { + "name": "/aws/lambda/OnUpdate-OnMessage0-c81076cf", "retention_in_days": 30, }, }, "aws_iam_role": { - "my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5": { + "my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA": { "assume_role_policy": "{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Principal":{"Service":"lambda.amazonaws.com"},"Effect":"Allow"}]}", }, - "my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC": { + "my_bucket_OnDelete-OnMessage0_IamRole_F99741C4": { "assume_role_policy": "{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Principal":{"Service":"lambda.amazonaws.com"},"Effect":"Allow"}]}", }, - "my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE": { + "my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF": { "assume_role_policy": "{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Principal":{"Service":"lambda.amazonaws.com"},"Effect":"Allow"}]}", }, }, "aws_iam_role_policy": { - "my_bucket_oncreate-OnMessage0_IamRolePolicy_CDE0CB68": { + "my_bucket_OnCreate-OnMessage0_IamRolePolicy_8D03B4D5": { "policy": "{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"none:null","Resource":"*"}]}", - "role": "\${aws_iam_role.my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5.name}", + "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.name}", }, - "my_bucket_ondelete-OnMessage0_IamRolePolicy_635C2064": { + "my_bucket_OnDelete-OnMessage0_IamRolePolicy_B1B53387": { "policy": "{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"none:null","Resource":"*"}]}", - "role": "\${aws_iam_role.my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC.name}", + "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.name}", }, - "my_bucket_onupdate-OnMessage0_IamRolePolicy_27D30DCE": { + "my_bucket_OnUpdate-OnMessage0_IamRolePolicy_94D2868B": { "policy": "{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"none:null","Resource":"*"}]}", - "role": "\${aws_iam_role.my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE.name}", + "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.name}", }, }, "aws_iam_role_policy_attachment": { - "my_bucket_oncreate-OnMessage0_IamRolePolicyAttachment_085EB554": { + "my_bucket_OnCreate-OnMessage0_IamRolePolicyAttachment_4F57A9D0": { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "\${aws_iam_role.my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5.name}", + "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.name}", }, - "my_bucket_ondelete-OnMessage0_IamRolePolicyAttachment_C985200D": { + "my_bucket_OnDelete-OnMessage0_IamRolePolicyAttachment_221C4BFC": { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "\${aws_iam_role.my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC.name}", + "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.name}", }, - "my_bucket_onupdate-OnMessage0_IamRolePolicyAttachment_E4288C48": { + "my_bucket_OnUpdate-OnMessage0_IamRolePolicyAttachment_5073159D": { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "\${aws_iam_role.my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE.name}", + "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.name}", }, }, "aws_lambda_function": { - "my_bucket_oncreate-OnMessage0_773D84E9": { + "my_bucket_OnCreate-OnMessage0_8A9D7A6E": { "architectures": [ "arm64", ], "environment": { "variables": { "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "oncreate-OnMessage0-c874e955", + "WING_FUNCTION_NAME": "OnCreate-OnMessage0-c8b6ea23", }, }, - "function_name": "oncreate-OnMessage0-c874e955", + "function_name": "OnCreate-OnMessage0-c8b6ea23", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "\${aws_iam_role.my_bucket_oncreate-OnMessage0_IamRole_9CAD40D5.arn}", + "role": "\${aws_iam_role.my_bucket_OnCreate-OnMessage0_IamRole_A815D0BA.arn}", "runtime": "nodejs20.x", "s3_bucket": "\${aws_s3_bucket.Code.bucket}", - "s3_key": "\${aws_s3_object.my_bucket_oncreate-OnMessage0_S3Object_AF838DF5.key}", + "s3_key": "\${aws_s3_object.my_bucket_OnCreate-OnMessage0_S3Object_02866773.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [], }, }, - "my_bucket_ondelete-OnMessage0_9871443D": { + "my_bucket_OnDelete-OnMessage0_DB633A4C": { "architectures": [ "arm64", ], "environment": { "variables": { "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "ondelete-OnMessage0-c8772675", + "WING_FUNCTION_NAME": "OnDelete-OnMessage0-c804d7e9", }, }, - "function_name": "ondelete-OnMessage0-c8772675", + "function_name": "OnDelete-OnMessage0-c804d7e9", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "\${aws_iam_role.my_bucket_ondelete-OnMessage0_IamRole_04EA7EBC.arn}", + "role": "\${aws_iam_role.my_bucket_OnDelete-OnMessage0_IamRole_F99741C4.arn}", "runtime": "nodejs20.x", "s3_bucket": "\${aws_s3_bucket.Code.bucket}", - "s3_key": "\${aws_s3_object.my_bucket_ondelete-OnMessage0_S3Object_BB790A1F.key}", + "s3_key": "\${aws_s3_object.my_bucket_OnDelete-OnMessage0_S3Object_B50900E0.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [], }, }, - "my_bucket_onupdate-OnMessage0_EB805895": { + "my_bucket_OnUpdate-OnMessage0_B4C11A28": { "architectures": [ "arm64", ], "environment": { "variables": { "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "onupdate-OnMessage0-c8a1be62", + "WING_FUNCTION_NAME": "OnUpdate-OnMessage0-c81076cf", }, }, - "function_name": "onupdate-OnMessage0-c8a1be62", + "function_name": "OnUpdate-OnMessage0-c81076cf", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "\${aws_iam_role.my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE.arn}", + "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.arn}", "runtime": "nodejs20.x", "s3_bucket": "\${aws_s3_bucket.Code.bucket}", - "s3_key": "\${aws_s3_object.my_bucket_onupdate-OnMessage0_S3Object_CD6EE6AF.key}", + "s3_key": "\${aws_s3_object.my_bucket_OnUpdate-OnMessage0_S3Object_1E352BCE.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -1220,23 +1220,23 @@ exports[`bucket with onEvent method 1`] = ` }, }, "aws_lambda_permission": { - "my_bucket_oncreate-OnMessage0_InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1_7675EF40": { + "my_bucket_OnCreate-OnMessage0_InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8_60C310A7": { "action": "lambda:InvokeFunction", - "function_name": "\${aws_lambda_function.my_bucket_oncreate-OnMessage0_773D84E9.function_name}", + "function_name": "\${aws_lambda_function.my_bucket_OnCreate-OnMessage0_8A9D7A6E.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", + "source_arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", }, - "my_bucket_ondelete-OnMessage0_InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315_E690DB87": { + "my_bucket_OnDelete-OnMessage0_InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a_63129B62": { "action": "lambda:InvokeFunction", - "function_name": "\${aws_lambda_function.my_bucket_ondelete-OnMessage0_9871443D.function_name}", + "function_name": "\${aws_lambda_function.my_bucket_OnDelete-OnMessage0_DB633A4C.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", + "source_arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", }, - "my_bucket_onupdate-OnMessage0_InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22_7EE27EAF": { + "my_bucket_OnUpdate-OnMessage0_InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229_327F1182": { "action": "lambda:InvokeFunction", - "function_name": "\${aws_lambda_function.my_bucket_onupdate-OnMessage0_EB805895.function_name}", + "function_name": "\${aws_lambda_function.my_bucket_OnUpdate-OnMessage0_B4C11A28.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", + "source_arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", }, }, "aws_s3_bucket": { @@ -1252,9 +1252,9 @@ exports[`bucket with onEvent method 1`] = ` "my_bucket_S3BucketNotification_DDA29E8F": { "bucket": "\${aws_s3_bucket.my_bucket.id}", "depends_on": [ - "aws_sns_topic_policy.my_bucket_oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CE3B77A7", - "aws_sns_topic_policy.my_bucket_onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_C89A58B9", - "aws_sns_topic_policy.my_bucket_ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_1B83A43C", + "aws_sns_topic_policy.my_bucket_OnCreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_F8789A85", + "aws_sns_topic_policy.my_bucket_OnUpdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A302B66A", + "aws_sns_topic_policy.my_bucket_OnDelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_54A5EE56", ], "topic": [ { @@ -1262,21 +1262,21 @@ exports[`bucket with onEvent method 1`] = ` "s3:ObjectCreated:Put", ], "id": "on-oncreate-notification", - "topic_arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", }, { "events": [ "s3:ObjectCreated:Post", ], "id": "on-onupdate-notification", - "topic_arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", }, { "events": [ "s3:ObjectRemoved:*", ], "id": "on-ondelete-notification", - "topic_arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", }, ], }, @@ -1300,62 +1300,62 @@ exports[`bucket with onEvent method 1`] = ` }, }, "aws_s3_object": { - "my_bucket_oncreate-OnMessage0_S3Object_AF838DF5": { + "my_bucket_OnCreate-OnMessage0_S3Object_02866773": { "bucket": "\${aws_s3_bucket.Code.bucket}", "key": "", "source": "", }, - "my_bucket_ondelete-OnMessage0_S3Object_BB790A1F": { + "my_bucket_OnDelete-OnMessage0_S3Object_B50900E0": { "bucket": "\${aws_s3_bucket.Code.bucket}", "key": "", "source": "", }, - "my_bucket_onupdate-OnMessage0_S3Object_CD6EE6AF": { + "my_bucket_OnUpdate-OnMessage0_S3Object_1E352BCE": { "bucket": "\${aws_s3_bucket.Code.bucket}", "key": "", "source": "", }, }, "aws_sns_topic": { - "my_bucket_oncreate_EF5D7ECA": { - "name": "oncreate-c8ad674c", + "my_bucket_OnCreate_14226F85": { + "name": "OnCreate-c88b8dd6", }, - "my_bucket_ondelete_C2E093CB": { - "name": "ondelete-c8142b51", + "my_bucket_OnDelete_E3DBFE86": { + "name": "OnDelete-c818f138", }, - "my_bucket_onupdate_DF9292B4": { - "name": "onupdate-c810a1e9", + "my_bucket_OnUpdate_0AC450AE": { + "name": "OnUpdate-c84ec846", }, }, "aws_sns_topic_policy": { - "my_bucket_oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CE3B77A7": { - "arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", - "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", + "my_bucket_OnCreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_F8789A85": { + "arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", + "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", }, - "my_bucket_ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_1B83A43C": { - "arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", - "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", + "my_bucket_OnDelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_54A5EE56": { + "arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", + "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", }, - "my_bucket_onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_C89A58B9": { - "arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", - "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", + "my_bucket_OnUpdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A302B66A": { + "arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", + "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", }, }, "aws_sns_topic_subscription": { - "my_bucket_oncreate_TopicSubscription0_0EC6A2F3": { - "endpoint": "\${aws_lambda_function.my_bucket_oncreate-OnMessage0_773D84E9.arn}", + "my_bucket_OnCreate_TopicSubscription0_4D6EC9AA": { + "endpoint": "\${aws_lambda_function.my_bucket_OnCreate-OnMessage0_8A9D7A6E.arn}", "protocol": "lambda", - "topic_arn": "\${aws_sns_topic.my_bucket_oncreate_EF5D7ECA.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnCreate_14226F85.arn}", }, - "my_bucket_ondelete_TopicSubscription0_E374967A": { - "endpoint": "\${aws_lambda_function.my_bucket_ondelete-OnMessage0_9871443D.arn}", + "my_bucket_OnDelete_TopicSubscription0_7974ED63": { + "endpoint": "\${aws_lambda_function.my_bucket_OnDelete-OnMessage0_DB633A4C.arn}", "protocol": "lambda", - "topic_arn": "\${aws_sns_topic.my_bucket_ondelete_C2E093CB.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnDelete_E3DBFE86.arn}", }, - "my_bucket_onupdate_TopicSubscription0_0BEAE6F8": { - "endpoint": "\${aws_lambda_function.my_bucket_onupdate-OnMessage0_EB805895.arn}", + "my_bucket_OnUpdate_TopicSubscription0_56144B6F": { + "endpoint": "\${aws_lambda_function.my_bucket_OnUpdate-OnMessage0_B4C11A28.arn}", "protocol": "lambda", - "topic_arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", }, }, }, @@ -1410,34 +1410,7 @@ exports[`bucket with onEvent method 2`] = ` "id": "Default", "path": "root/Default/my_bucket/Default", }, - "PublicAccessBlock": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicAccessBlock", - "path": "root/Default/my_bucket/PublicAccessBlock", - }, - "PublicPolicy": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicPolicy", - "path": "root/Default/my_bucket/PublicPolicy", - }, - "S3BucketNotification": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "S3BucketNotification", - "path": "root/Default/my_bucket/S3BucketNotification", - }, - "oncreate": { + "OnCreate": { "children": { "Default": { "constructInfo": { @@ -1446,7 +1419,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/oncreate/Default", + "path": "root/Default/my_bucket/OnCreate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -1455,7 +1428,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/oncreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/OnCreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, "TopicSubscription0": { "constructInfo": { @@ -1464,7 +1437,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/my_bucket/oncreate/TopicSubscription0", + "path": "root/Default/my_bucket/OnCreate/TopicSubscription0", }, }, "constructInfo": { @@ -1475,10 +1448,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "oncreate", - "path": "root/Default/my_bucket/oncreate", + "id": "OnCreate", + "path": "root/Default/my_bucket/OnCreate", }, - "oncreate-OnMessage0": { + "OnCreate-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -1487,7 +1460,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/my_bucket/oncreate-OnMessage0/Asset", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -1496,7 +1469,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/my_bucket/oncreate-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -1505,7 +1478,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/oncreate-OnMessage0/Default", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -1514,7 +1487,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRole", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -1523,7 +1496,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicy", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -1532,16 +1505,16 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/oncreate-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1": { + "InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", - "path": "root/Default/my_bucket/oncreate-OnMessage0/InvokePermission-c8ad674c480f4e6c0a6bf1a492e393e9ccaed211a1", + "id": "InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/InvokePermission-c88b8dd64481dc3b326d5e0afc3b583852a5c383f8", }, "S3Object": { "constructInfo": { @@ -1550,7 +1523,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/my_bucket/oncreate-OnMessage0/S3Object", + "path": "root/Default/my_bucket/OnCreate-OnMessage0/S3Object", }, }, "constructInfo": { @@ -1561,10 +1534,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "oncreate-OnMessage0", - "path": "root/Default/my_bucket/oncreate-OnMessage0", + "id": "OnCreate-OnMessage0", + "path": "root/Default/my_bucket/OnCreate-OnMessage0", }, - "ondelete": { + "OnDelete": { "children": { "Default": { "constructInfo": { @@ -1573,7 +1546,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/ondelete/Default", + "path": "root/Default/my_bucket/OnDelete/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -1582,7 +1555,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/ondelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/OnDelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, "TopicSubscription0": { "constructInfo": { @@ -1591,7 +1564,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/my_bucket/ondelete/TopicSubscription0", + "path": "root/Default/my_bucket/OnDelete/TopicSubscription0", }, }, "constructInfo": { @@ -1602,10 +1575,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "ondelete", - "path": "root/Default/my_bucket/ondelete", + "id": "OnDelete", + "path": "root/Default/my_bucket/OnDelete", }, - "ondelete-OnMessage0": { + "OnDelete-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -1614,7 +1587,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/my_bucket/ondelete-OnMessage0/Asset", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -1623,7 +1596,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/my_bucket/ondelete-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -1632,7 +1605,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/ondelete-OnMessage0/Default", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -1641,7 +1614,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRole", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -1650,7 +1623,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicy", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -1659,16 +1632,16 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/ondelete-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315": { + "InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", - "path": "root/Default/my_bucket/ondelete-OnMessage0/InvokePermission-c8142b51acc0b500d0402de71ecbd0ecf4977ec315", + "id": "InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/InvokePermission-c818f13827fc0721db2eca69eab078997f6f9a8c7a", }, "S3Object": { "constructInfo": { @@ -1677,7 +1650,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/my_bucket/ondelete-OnMessage0/S3Object", + "path": "root/Default/my_bucket/OnDelete-OnMessage0/S3Object", }, }, "constructInfo": { @@ -1688,10 +1661,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "ondelete-OnMessage0", - "path": "root/Default/my_bucket/ondelete-OnMessage0", + "id": "OnDelete-OnMessage0", + "path": "root/Default/my_bucket/OnDelete-OnMessage0", }, - "onupdate": { + "OnUpdate": { "children": { "Default": { "constructInfo": { @@ -1700,7 +1673,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/onupdate/Default", + "path": "root/Default/my_bucket/OnUpdate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -1709,7 +1682,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/onupdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/OnUpdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, "TopicSubscription0": { "constructInfo": { @@ -1718,7 +1691,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/my_bucket/onupdate/TopicSubscription0", + "path": "root/Default/my_bucket/OnUpdate/TopicSubscription0", }, }, "constructInfo": { @@ -1729,10 +1702,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "onupdate", - "path": "root/Default/my_bucket/onupdate", + "id": "OnUpdate", + "path": "root/Default/my_bucket/OnUpdate", }, - "onupdate-OnMessage0": { + "OnUpdate-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -1741,7 +1714,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/my_bucket/onupdate-OnMessage0/Asset", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -1750,7 +1723,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/my_bucket/onupdate-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -1759,7 +1732,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/onupdate-OnMessage0/Default", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -1768,7 +1741,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRole", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -1777,7 +1750,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicy", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -1786,16 +1759,16 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22": { + "InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", - "path": "root/Default/my_bucket/onupdate-OnMessage0/InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", + "id": "InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229", }, "S3Object": { "constructInfo": { @@ -1804,7 +1777,7 @@ exports[`bucket with onEvent method 2`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/my_bucket/onupdate-OnMessage0/S3Object", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/S3Object", }, }, "constructInfo": { @@ -1815,8 +1788,35 @@ exports[`bucket with onEvent method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "onupdate-OnMessage0", - "path": "root/Default/my_bucket/onupdate-OnMessage0", + "id": "OnUpdate-OnMessage0", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0", + }, + "PublicAccessBlock": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicAccessBlock", + "path": "root/Default/my_bucket/PublicAccessBlock", + }, + "PublicPolicy": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicPolicy", + "path": "root/Default/my_bucket/PublicPolicy", + }, + "S3BucketNotification": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "S3BucketNotification", + "path": "root/Default/my_bucket/S3BucketNotification", }, }, "constructInfo": { @@ -1874,47 +1874,47 @@ exports[`bucket with onUpdate method 1`] = ` { "resource": { "aws_cloudwatch_log_group": { - "my_bucket_onupdate-OnMessage0_CloudwatchLogGroup_25463B70": { - "name": "/aws/lambda/onupdate-OnMessage0-c8a1be62", + "my_bucket_OnUpdate-OnMessage0_CloudwatchLogGroup_CA36F40B": { + "name": "/aws/lambda/OnUpdate-OnMessage0-c81076cf", "retention_in_days": 30, }, }, "aws_iam_role": { - "my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE": { + "my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF": { "assume_role_policy": "{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Principal":{"Service":"lambda.amazonaws.com"},"Effect":"Allow"}]}", }, }, "aws_iam_role_policy": { - "my_bucket_onupdate-OnMessage0_IamRolePolicy_27D30DCE": { + "my_bucket_OnUpdate-OnMessage0_IamRolePolicy_94D2868B": { "policy": "{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"none:null","Resource":"*"}]}", - "role": "\${aws_iam_role.my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE.name}", + "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.name}", }, }, "aws_iam_role_policy_attachment": { - "my_bucket_onupdate-OnMessage0_IamRolePolicyAttachment_E4288C48": { + "my_bucket_OnUpdate-OnMessage0_IamRolePolicyAttachment_5073159D": { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "\${aws_iam_role.my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE.name}", + "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.name}", }, }, "aws_lambda_function": { - "my_bucket_onupdate-OnMessage0_EB805895": { + "my_bucket_OnUpdate-OnMessage0_B4C11A28": { "architectures": [ "arm64", ], "environment": { "variables": { "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "onupdate-OnMessage0-c8a1be62", + "WING_FUNCTION_NAME": "OnUpdate-OnMessage0-c81076cf", }, }, - "function_name": "onupdate-OnMessage0-c8a1be62", + "function_name": "OnUpdate-OnMessage0-c81076cf", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "\${aws_iam_role.my_bucket_onupdate-OnMessage0_IamRole_9C1FBCBE.arn}", + "role": "\${aws_iam_role.my_bucket_OnUpdate-OnMessage0_IamRole_846F92CF.arn}", "runtime": "nodejs20.x", "s3_bucket": "\${aws_s3_bucket.Code.bucket}", - "s3_key": "\${aws_s3_object.my_bucket_onupdate-OnMessage0_S3Object_CD6EE6AF.key}", + "s3_key": "\${aws_s3_object.my_bucket_OnUpdate-OnMessage0_S3Object_1E352BCE.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -1923,11 +1923,11 @@ exports[`bucket with onUpdate method 1`] = ` }, }, "aws_lambda_permission": { - "my_bucket_onupdate-OnMessage0_InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22_7EE27EAF": { + "my_bucket_OnUpdate-OnMessage0_InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229_327F1182": { "action": "lambda:InvokeFunction", - "function_name": "\${aws_lambda_function.my_bucket_onupdate-OnMessage0_EB805895.function_name}", + "function_name": "\${aws_lambda_function.my_bucket_OnUpdate-OnMessage0_B4C11A28.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", + "source_arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", }, }, "aws_s3_bucket": { @@ -1943,7 +1943,7 @@ exports[`bucket with onUpdate method 1`] = ` "my_bucket_S3BucketNotification_DDA29E8F": { "bucket": "\${aws_s3_bucket.my_bucket.id}", "depends_on": [ - "aws_sns_topic_policy.my_bucket_onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_C89A58B9", + "aws_sns_topic_policy.my_bucket_OnUpdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A302B66A", ], "topic": [ { @@ -1951,7 +1951,7 @@ exports[`bucket with onUpdate method 1`] = ` "s3:ObjectCreated:Post", ], "id": "on-onupdate-notification", - "topic_arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", }, ], }, @@ -1975,28 +1975,28 @@ exports[`bucket with onUpdate method 1`] = ` }, }, "aws_s3_object": { - "my_bucket_onupdate-OnMessage0_S3Object_CD6EE6AF": { + "my_bucket_OnUpdate-OnMessage0_S3Object_1E352BCE": { "bucket": "\${aws_s3_bucket.Code.bucket}", "key": "", "source": "", }, }, "aws_sns_topic": { - "my_bucket_onupdate_DF9292B4": { - "name": "onupdate-c810a1e9", + "my_bucket_OnUpdate_0AC450AE": { + "name": "OnUpdate-c84ec846", }, }, "aws_sns_topic_policy": { - "my_bucket_onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_C89A58B9": { - "arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", - "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", + "my_bucket_OnUpdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A302B66A": { + "arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", + "policy": "{"Statement":[{"Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"sns:Publish","Resource":"\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}","Condition":{"ArnEquals":{"aws:SourceArn":"\${aws_s3_bucket.my_bucket.arn}"}}}]}", }, }, "aws_sns_topic_subscription": { - "my_bucket_onupdate_TopicSubscription0_0BEAE6F8": { - "endpoint": "\${aws_lambda_function.my_bucket_onupdate-OnMessage0_EB805895.arn}", + "my_bucket_OnUpdate_TopicSubscription0_56144B6F": { + "endpoint": "\${aws_lambda_function.my_bucket_OnUpdate-OnMessage0_B4C11A28.arn}", "protocol": "lambda", - "topic_arn": "\${aws_sns_topic.my_bucket_onupdate_DF9292B4.arn}", + "topic_arn": "\${aws_sns_topic.my_bucket_OnUpdate_0AC450AE.arn}", }, }, }, @@ -2051,34 +2051,7 @@ exports[`bucket with onUpdate method 2`] = ` "id": "Default", "path": "root/Default/my_bucket/Default", }, - "PublicAccessBlock": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicAccessBlock", - "path": "root/Default/my_bucket/PublicAccessBlock", - }, - "PublicPolicy": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "PublicPolicy", - "path": "root/Default/my_bucket/PublicPolicy", - }, - "S3BucketNotification": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "S3BucketNotification", - "path": "root/Default/my_bucket/S3BucketNotification", - }, - "onupdate": { + "OnUpdate": { "children": { "Default": { "constructInfo": { @@ -2087,7 +2060,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/onupdate/Default", + "path": "root/Default/my_bucket/OnUpdate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -2096,7 +2069,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/onupdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/OnUpdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, "TopicSubscription0": { "constructInfo": { @@ -2105,7 +2078,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/my_bucket/onupdate/TopicSubscription0", + "path": "root/Default/my_bucket/OnUpdate/TopicSubscription0", }, }, "constructInfo": { @@ -2116,10 +2089,10 @@ exports[`bucket with onUpdate method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "onupdate", - "path": "root/Default/my_bucket/onupdate", + "id": "OnUpdate", + "path": "root/Default/my_bucket/OnUpdate", }, - "onupdate-OnMessage0": { + "OnUpdate-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -2128,7 +2101,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/my_bucket/onupdate-OnMessage0/Asset", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -2137,7 +2110,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/my_bucket/onupdate-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -2146,7 +2119,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/my_bucket/onupdate-OnMessage0/Default", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -2155,7 +2128,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRole", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -2164,7 +2137,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicy", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -2173,16 +2146,16 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/onupdate-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22": { + "InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", - "path": "root/Default/my_bucket/onupdate-OnMessage0/InvokePermission-c810a1e91f70a36a50557a2c23bc28c96365a22f22", + "id": "InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/InvokePermission-c84ec84688efaa3bd78e7099e53e40fb2fe4ca5229", }, "S3Object": { "constructInfo": { @@ -2191,7 +2164,7 @@ exports[`bucket with onUpdate method 2`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/my_bucket/onupdate-OnMessage0/S3Object", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0/S3Object", }, }, "constructInfo": { @@ -2202,8 +2175,35 @@ exports[`bucket with onUpdate method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "onupdate-OnMessage0", - "path": "root/Default/my_bucket/onupdate-OnMessage0", + "id": "OnUpdate-OnMessage0", + "path": "root/Default/my_bucket/OnUpdate-OnMessage0", + }, + "PublicAccessBlock": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicAccessBlock", + "path": "root/Default/my_bucket/PublicAccessBlock", + }, + "PublicPolicy": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "PublicPolicy", + "path": "root/Default/my_bucket/PublicPolicy", + }, + "S3BucketNotification": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "S3BucketNotification", + "path": "root/Default/my_bucket/S3BucketNotification", }, }, "constructInfo": { diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md index 5aab097ce26..fd0815e36ad 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md @@ -18,64 +18,64 @@ }, "resource": { "aws_cloudwatch_log_group": { - "Bucket_oncreate-OnMessage0_CloudwatchLogGroup_9ADBAD73": { + "Bucket_OnCreate-OnMessage0_CloudwatchLogGroup_6BF9DEA3": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/CloudwatchLogGroup", - "uniqueId": "Bucket_oncreate-OnMessage0_CloudwatchLogGroup_9ADBAD73" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/CloudwatchLogGroup", + "uniqueId": "Bucket_OnCreate-OnMessage0_CloudwatchLogGroup_6BF9DEA3" } }, - "name": "/aws/lambda/oncreate-OnMessage0-c87abc21", + "name": "/aws/lambda/OnCreate-OnMessage0-c8740b4b", "retention_in_days": 30 }, - "Bucket_oncreate-OnMessage1_CloudwatchLogGroup_37B9C8C4": { + "Bucket_OnCreate-OnMessage1_CloudwatchLogGroup_A09583DA": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/CloudwatchLogGroup", - "uniqueId": "Bucket_oncreate-OnMessage1_CloudwatchLogGroup_37B9C8C4" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/CloudwatchLogGroup", + "uniqueId": "Bucket_OnCreate-OnMessage1_CloudwatchLogGroup_A09583DA" } }, - "name": "/aws/lambda/oncreate-OnMessage1-c800fec8", + "name": "/aws/lambda/OnCreate-OnMessage1-c8347a52", "retention_in_days": 30 }, - "Bucket_ondelete-OnMessage0_CloudwatchLogGroup_5F88C98D": { + "Bucket_OnDelete-OnMessage0_CloudwatchLogGroup_682144EA": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/CloudwatchLogGroup", - "uniqueId": "Bucket_ondelete-OnMessage0_CloudwatchLogGroup_5F88C98D" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/CloudwatchLogGroup", + "uniqueId": "Bucket_OnDelete-OnMessage0_CloudwatchLogGroup_682144EA" } }, - "name": "/aws/lambda/ondelete-OnMessage0-c8a38b5a", + "name": "/aws/lambda/OnDelete-OnMessage0-c8e711ef", "retention_in_days": 30 }, - "Bucket_ondelete-OnMessage1_CloudwatchLogGroup_AE7AA81E": { + "Bucket_OnDelete-OnMessage1_CloudwatchLogGroup_ADB44727": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/CloudwatchLogGroup", - "uniqueId": "Bucket_ondelete-OnMessage1_CloudwatchLogGroup_AE7AA81E" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/CloudwatchLogGroup", + "uniqueId": "Bucket_OnDelete-OnMessage1_CloudwatchLogGroup_ADB44727" } }, - "name": "/aws/lambda/ondelete-OnMessage1-c82792b8", + "name": "/aws/lambda/OnDelete-OnMessage1-c8905f5b", "retention_in_days": 30 }, - "Bucket_onupdate-OnMessage0_CloudwatchLogGroup_C8045188": { + "Bucket_OnUpdate-OnMessage0_CloudwatchLogGroup_9492CFAF": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/CloudwatchLogGroup", - "uniqueId": "Bucket_onupdate-OnMessage0_CloudwatchLogGroup_C8045188" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/CloudwatchLogGroup", + "uniqueId": "Bucket_OnUpdate-OnMessage0_CloudwatchLogGroup_9492CFAF" } }, - "name": "/aws/lambda/onupdate-OnMessage0-c835180c", + "name": "/aws/lambda/OnUpdate-OnMessage0-c81b9fec", "retention_in_days": 30 }, - "Bucket_onupdate-OnMessage1_CloudwatchLogGroup_D6757AF5": { + "Bucket_OnUpdate-OnMessage1_CloudwatchLogGroup_FA500C0F": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/CloudwatchLogGroup", - "uniqueId": "Bucket_onupdate-OnMessage1_CloudwatchLogGroup_D6757AF5" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/CloudwatchLogGroup", + "uniqueId": "Bucket_OnUpdate-OnMessage1_CloudwatchLogGroup_FA500C0F" } }, - "name": "/aws/lambda/onupdate-OnMessage1-c8826493", + "name": "/aws/lambda/OnUpdate-OnMessage1-c8513427", "retention_in_days": 30 } }, @@ -119,191 +119,191 @@ } }, "aws_iam_role": { - "Bucket_oncreate-OnMessage0_IamRole_0DECFA72": { + "Bucket_OnCreate-OnMessage0_IamRole_D3BF2935": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/IamRole", - "uniqueId": "Bucket_oncreate-OnMessage0_IamRole_0DECFA72" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/IamRole", + "uniqueId": "Bucket_OnCreate-OnMessage0_IamRole_D3BF2935" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "Bucket_oncreate-OnMessage1_IamRole_EAFD952E": { + "Bucket_OnCreate-OnMessage1_IamRole_0E855131": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/IamRole", - "uniqueId": "Bucket_oncreate-OnMessage1_IamRole_EAFD952E" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/IamRole", + "uniqueId": "Bucket_OnCreate-OnMessage1_IamRole_0E855131" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "Bucket_ondelete-OnMessage0_IamRole_50F5B4CA": { + "Bucket_OnDelete-OnMessage0_IamRole_A52E721B": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/IamRole", - "uniqueId": "Bucket_ondelete-OnMessage0_IamRole_50F5B4CA" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/IamRole", + "uniqueId": "Bucket_OnDelete-OnMessage0_IamRole_A52E721B" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "Bucket_ondelete-OnMessage1_IamRole_BE60A7EC": { + "Bucket_OnDelete-OnMessage1_IamRole_AA3A5721": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/IamRole", - "uniqueId": "Bucket_ondelete-OnMessage1_IamRole_BE60A7EC" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/IamRole", + "uniqueId": "Bucket_OnDelete-OnMessage1_IamRole_AA3A5721" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "Bucket_onupdate-OnMessage0_IamRole_B95F0C0C": { + "Bucket_OnUpdate-OnMessage0_IamRole_96499EB9": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/IamRole", - "uniqueId": "Bucket_onupdate-OnMessage0_IamRole_B95F0C0C" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/IamRole", + "uniqueId": "Bucket_OnUpdate-OnMessage0_IamRole_96499EB9" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "Bucket_onupdate-OnMessage1_IamRole_93BC24D8": { + "Bucket_OnUpdate-OnMessage1_IamRole_7B19D23F": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/IamRole", - "uniqueId": "Bucket_onupdate-OnMessage1_IamRole_93BC24D8" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/IamRole", + "uniqueId": "Bucket_OnUpdate-OnMessage1_IamRole_7B19D23F" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" } }, "aws_iam_role_policy": { - "Bucket_oncreate-OnMessage0_IamRolePolicy_ED4BBB06": { + "Bucket_OnCreate-OnMessage0_IamRolePolicy_9749552C": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/IamRolePolicy", - "uniqueId": "Bucket_oncreate-OnMessage0_IamRolePolicy_ED4BBB06" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/IamRolePolicy", + "uniqueId": "Bucket_OnCreate-OnMessage0_IamRolePolicy_9749552C" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.Table.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Bucket_oncreate-OnMessage0_IamRole_0DECFA72.name}" + "role": "${aws_iam_role.Bucket_OnCreate-OnMessage0_IamRole_D3BF2935.name}" }, - "Bucket_oncreate-OnMessage1_IamRolePolicy_555608BE": { + "Bucket_OnCreate-OnMessage1_IamRolePolicy_975FD372": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/IamRolePolicy", - "uniqueId": "Bucket_oncreate-OnMessage1_IamRolePolicy_555608BE" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/IamRolePolicy", + "uniqueId": "Bucket_OnCreate-OnMessage1_IamRolePolicy_975FD372" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.Table.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Bucket_oncreate-OnMessage1_IamRole_EAFD952E.name}" + "role": "${aws_iam_role.Bucket_OnCreate-OnMessage1_IamRole_0E855131.name}" }, - "Bucket_ondelete-OnMessage0_IamRolePolicy_EE79076B": { + "Bucket_OnDelete-OnMessage0_IamRolePolicy_A027DCBC": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/IamRolePolicy", - "uniqueId": "Bucket_ondelete-OnMessage0_IamRolePolicy_EE79076B" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/IamRolePolicy", + "uniqueId": "Bucket_OnDelete-OnMessage0_IamRolePolicy_A027DCBC" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.Table.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Bucket_ondelete-OnMessage0_IamRole_50F5B4CA.name}" + "role": "${aws_iam_role.Bucket_OnDelete-OnMessage0_IamRole_A52E721B.name}" }, - "Bucket_ondelete-OnMessage1_IamRolePolicy_517C3979": { + "Bucket_OnDelete-OnMessage1_IamRolePolicy_07F086F7": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/IamRolePolicy", - "uniqueId": "Bucket_ondelete-OnMessage1_IamRolePolicy_517C3979" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/IamRolePolicy", + "uniqueId": "Bucket_OnDelete-OnMessage1_IamRolePolicy_07F086F7" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.Table.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Bucket_ondelete-OnMessage1_IamRole_BE60A7EC.name}" + "role": "${aws_iam_role.Bucket_OnDelete-OnMessage1_IamRole_AA3A5721.name}" }, - "Bucket_onupdate-OnMessage0_IamRolePolicy_95CC8F41": { + "Bucket_OnUpdate-OnMessage0_IamRolePolicy_DAF73AB9": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/IamRolePolicy", - "uniqueId": "Bucket_onupdate-OnMessage0_IamRolePolicy_95CC8F41" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/IamRolePolicy", + "uniqueId": "Bucket_OnUpdate-OnMessage0_IamRolePolicy_DAF73AB9" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.Table.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Bucket_onupdate-OnMessage0_IamRole_B95F0C0C.name}" + "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage0_IamRole_96499EB9.name}" }, - "Bucket_onupdate-OnMessage1_IamRolePolicy_9C89E111": { + "Bucket_OnUpdate-OnMessage1_IamRolePolicy_E38714A4": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/IamRolePolicy", - "uniqueId": "Bucket_onupdate-OnMessage1_IamRolePolicy_9C89E111" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/IamRolePolicy", + "uniqueId": "Bucket_OnUpdate-OnMessage1_IamRolePolicy_E38714A4" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.Table.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Bucket_onupdate-OnMessage1_IamRole_93BC24D8.name}" + "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage1_IamRole_7B19D23F.name}" } }, "aws_iam_role_policy_attachment": { - "Bucket_oncreate-OnMessage0_IamRolePolicyAttachment_1AE31BFB": { + "Bucket_OnCreate-OnMessage0_IamRolePolicyAttachment_B9851CC6": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/IamRolePolicyAttachment", - "uniqueId": "Bucket_oncreate-OnMessage0_IamRolePolicyAttachment_1AE31BFB" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/IamRolePolicyAttachment", + "uniqueId": "Bucket_OnCreate-OnMessage0_IamRolePolicyAttachment_B9851CC6" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Bucket_oncreate-OnMessage0_IamRole_0DECFA72.name}" + "role": "${aws_iam_role.Bucket_OnCreate-OnMessage0_IamRole_D3BF2935.name}" }, - "Bucket_oncreate-OnMessage1_IamRolePolicyAttachment_FE0643F9": { + "Bucket_OnCreate-OnMessage1_IamRolePolicyAttachment_CAB55010": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/IamRolePolicyAttachment", - "uniqueId": "Bucket_oncreate-OnMessage1_IamRolePolicyAttachment_FE0643F9" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/IamRolePolicyAttachment", + "uniqueId": "Bucket_OnCreate-OnMessage1_IamRolePolicyAttachment_CAB55010" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Bucket_oncreate-OnMessage1_IamRole_EAFD952E.name}" + "role": "${aws_iam_role.Bucket_OnCreate-OnMessage1_IamRole_0E855131.name}" }, - "Bucket_ondelete-OnMessage0_IamRolePolicyAttachment_7C1D0962": { + "Bucket_OnDelete-OnMessage0_IamRolePolicyAttachment_9AC35049": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/IamRolePolicyAttachment", - "uniqueId": "Bucket_ondelete-OnMessage0_IamRolePolicyAttachment_7C1D0962" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/IamRolePolicyAttachment", + "uniqueId": "Bucket_OnDelete-OnMessage0_IamRolePolicyAttachment_9AC35049" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Bucket_ondelete-OnMessage0_IamRole_50F5B4CA.name}" + "role": "${aws_iam_role.Bucket_OnDelete-OnMessage0_IamRole_A52E721B.name}" }, - "Bucket_ondelete-OnMessage1_IamRolePolicyAttachment_A21F4631": { + "Bucket_OnDelete-OnMessage1_IamRolePolicyAttachment_EFA92AD6": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/IamRolePolicyAttachment", - "uniqueId": "Bucket_ondelete-OnMessage1_IamRolePolicyAttachment_A21F4631" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/IamRolePolicyAttachment", + "uniqueId": "Bucket_OnDelete-OnMessage1_IamRolePolicyAttachment_EFA92AD6" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Bucket_ondelete-OnMessage1_IamRole_BE60A7EC.name}" + "role": "${aws_iam_role.Bucket_OnDelete-OnMessage1_IamRole_AA3A5721.name}" }, - "Bucket_onupdate-OnMessage0_IamRolePolicyAttachment_753AF495": { + "Bucket_OnUpdate-OnMessage0_IamRolePolicyAttachment_FAF69EA1": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/IamRolePolicyAttachment", - "uniqueId": "Bucket_onupdate-OnMessage0_IamRolePolicyAttachment_753AF495" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/IamRolePolicyAttachment", + "uniqueId": "Bucket_OnUpdate-OnMessage0_IamRolePolicyAttachment_FAF69EA1" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Bucket_onupdate-OnMessage0_IamRole_B95F0C0C.name}" + "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage0_IamRole_96499EB9.name}" }, - "Bucket_onupdate-OnMessage1_IamRolePolicyAttachment_A8068B10": { + "Bucket_OnUpdate-OnMessage1_IamRolePolicyAttachment_5CF4587E": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/IamRolePolicyAttachment", - "uniqueId": "Bucket_onupdate-OnMessage1_IamRolePolicyAttachment_A8068B10" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/IamRolePolicyAttachment", + "uniqueId": "Bucket_OnUpdate-OnMessage1_IamRolePolicyAttachment_5CF4587E" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Bucket_onupdate-OnMessage1_IamRole_93BC24D8.name}" + "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage1_IamRole_7B19D23F.name}" } }, "aws_lambda_function": { - "Bucket_oncreate-OnMessage0_64FDCB47": { + "Bucket_OnCreate-OnMessage0_4C972FB4": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/Default", - "uniqueId": "Bucket_oncreate-OnMessage0_64FDCB47" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/Default", + "uniqueId": "Bucket_OnCreate-OnMessage0_4C972FB4" } }, "architectures": [ @@ -316,29 +316,29 @@ "DYNAMODB_TABLE_NAME_e7245baa_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_e7245baa_PRIMARY_KEY": "_id", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "oncreate-OnMessage0-c87abc21", + "WING_FUNCTION_NAME": "OnCreate-OnMessage0-c8740b4b", "WING_TARGET": "tf-aws" } }, - "function_name": "oncreate-OnMessage0-c87abc21", + "function_name": "OnCreate-OnMessage0-c8740b4b", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Bucket_oncreate-OnMessage0_IamRole_0DECFA72.arn}", + "role": "${aws_iam_role.Bucket_OnCreate-OnMessage0_IamRole_D3BF2935.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Bucket_oncreate-OnMessage0_S3Object_F105B125.key}", + "s3_key": "${aws_s3_object.Bucket_OnCreate-OnMessage0_S3Object_3AC22680.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "Bucket_oncreate-OnMessage1_BC956365": { + "Bucket_OnCreate-OnMessage1_18599D01": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/Default", - "uniqueId": "Bucket_oncreate-OnMessage1_BC956365" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/Default", + "uniqueId": "Bucket_OnCreate-OnMessage1_18599D01" } }, "architectures": [ @@ -351,29 +351,29 @@ "DYNAMODB_TABLE_NAME_e7245baa_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_e7245baa_PRIMARY_KEY": "_id", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "oncreate-OnMessage1-c800fec8", + "WING_FUNCTION_NAME": "OnCreate-OnMessage1-c8347a52", "WING_TARGET": "tf-aws" } }, - "function_name": "oncreate-OnMessage1-c800fec8", + "function_name": "OnCreate-OnMessage1-c8347a52", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Bucket_oncreate-OnMessage1_IamRole_EAFD952E.arn}", + "role": "${aws_iam_role.Bucket_OnCreate-OnMessage1_IamRole_0E855131.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Bucket_oncreate-OnMessage1_S3Object_F92E0B51.key}", + "s3_key": "${aws_s3_object.Bucket_OnCreate-OnMessage1_S3Object_24FED042.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "Bucket_ondelete-OnMessage0_31A1E9E4": { + "Bucket_OnDelete-OnMessage0_BBD3A051": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/Default", - "uniqueId": "Bucket_ondelete-OnMessage0_31A1E9E4" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/Default", + "uniqueId": "Bucket_OnDelete-OnMessage0_BBD3A051" } }, "architectures": [ @@ -386,29 +386,29 @@ "DYNAMODB_TABLE_NAME_e7245baa_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_e7245baa_PRIMARY_KEY": "_id", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "ondelete-OnMessage0-c8a38b5a", + "WING_FUNCTION_NAME": "OnDelete-OnMessage0-c8e711ef", "WING_TARGET": "tf-aws" } }, - "function_name": "ondelete-OnMessage0-c8a38b5a", + "function_name": "OnDelete-OnMessage0-c8e711ef", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Bucket_ondelete-OnMessage0_IamRole_50F5B4CA.arn}", + "role": "${aws_iam_role.Bucket_OnDelete-OnMessage0_IamRole_A52E721B.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Bucket_ondelete-OnMessage0_S3Object_DE6CDD43.key}", + "s3_key": "${aws_s3_object.Bucket_OnDelete-OnMessage0_S3Object_555C9D08.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "Bucket_ondelete-OnMessage1_5BBC7743": { + "Bucket_OnDelete-OnMessage1_A17F4764": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/Default", - "uniqueId": "Bucket_ondelete-OnMessage1_5BBC7743" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/Default", + "uniqueId": "Bucket_OnDelete-OnMessage1_A17F4764" } }, "architectures": [ @@ -421,29 +421,29 @@ "DYNAMODB_TABLE_NAME_e7245baa_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_e7245baa_PRIMARY_KEY": "_id", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "ondelete-OnMessage1-c82792b8", + "WING_FUNCTION_NAME": "OnDelete-OnMessage1-c8905f5b", "WING_TARGET": "tf-aws" } }, - "function_name": "ondelete-OnMessage1-c82792b8", + "function_name": "OnDelete-OnMessage1-c8905f5b", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Bucket_ondelete-OnMessage1_IamRole_BE60A7EC.arn}", + "role": "${aws_iam_role.Bucket_OnDelete-OnMessage1_IamRole_AA3A5721.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Bucket_ondelete-OnMessage1_S3Object_DE98D974.key}", + "s3_key": "${aws_s3_object.Bucket_OnDelete-OnMessage1_S3Object_DE01EBE1.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "Bucket_onupdate-OnMessage0_2FBE69C5": { + "Bucket_OnUpdate-OnMessage0_ABC5042C": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/Default", - "uniqueId": "Bucket_onupdate-OnMessage0_2FBE69C5" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/Default", + "uniqueId": "Bucket_OnUpdate-OnMessage0_ABC5042C" } }, "architectures": [ @@ -456,29 +456,29 @@ "DYNAMODB_TABLE_NAME_e7245baa_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_e7245baa_PRIMARY_KEY": "_id", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "onupdate-OnMessage0-c835180c", + "WING_FUNCTION_NAME": "OnUpdate-OnMessage0-c81b9fec", "WING_TARGET": "tf-aws" } }, - "function_name": "onupdate-OnMessage0-c835180c", + "function_name": "OnUpdate-OnMessage0-c81b9fec", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Bucket_onupdate-OnMessage0_IamRole_B95F0C0C.arn}", + "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage0_IamRole_96499EB9.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Bucket_onupdate-OnMessage0_S3Object_B4B3C51E.key}", + "s3_key": "${aws_s3_object.Bucket_OnUpdate-OnMessage0_S3Object_45CBA374.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "Bucket_onupdate-OnMessage1_DDC08FAE": { + "Bucket_OnUpdate-OnMessage1_A9787FC1": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/Default", - "uniqueId": "Bucket_onupdate-OnMessage1_DDC08FAE" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/Default", + "uniqueId": "Bucket_OnUpdate-OnMessage1_A9787FC1" } }, "architectures": [ @@ -491,18 +491,18 @@ "DYNAMODB_TABLE_NAME_e7245baa_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_e7245baa_PRIMARY_KEY": "_id", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "onupdate-OnMessage1-c8826493", + "WING_FUNCTION_NAME": "OnUpdate-OnMessage1-c8513427", "WING_TARGET": "tf-aws" } }, - "function_name": "onupdate-OnMessage1-c8826493", + "function_name": "OnUpdate-OnMessage1-c8513427", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Bucket_onupdate-OnMessage1_IamRole_93BC24D8.arn}", + "role": "${aws_iam_role.Bucket_OnUpdate-OnMessage1_IamRole_7B19D23F.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Bucket_onupdate-OnMessage1_S3Object_12D7055B.key}", + "s3_key": "${aws_s3_object.Bucket_OnUpdate-OnMessage1_S3Object_A8B89403.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -511,77 +511,77 @@ } }, "aws_lambda_permission": { - "Bucket_oncreate-OnMessage0_InvokePermission-c80311dcc4aadf68b1b7fbea8bf5da640f0dde68f4_DD3AB632": { + "Bucket_OnCreate-OnMessage0_InvokePermission-c8b721b0d6157aa6ade66017aa9bfcbb77f8df59d7_F5383BED": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/InvokePermission-c80311dcc4aadf68b1b7fbea8bf5da640f0dde68f4", - "uniqueId": "Bucket_oncreate-OnMessage0_InvokePermission-c80311dcc4aadf68b1b7fbea8bf5da640f0dde68f4_DD3AB632" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/InvokePermission-c8b721b0d6157aa6ade66017aa9bfcbb77f8df59d7", + "uniqueId": "Bucket_OnCreate-OnMessage0_InvokePermission-c8b721b0d6157aa6ade66017aa9bfcbb77f8df59d7_F5383BED" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Bucket_oncreate-OnMessage0_64FDCB47.function_name}", + "function_name": "${aws_lambda_function.Bucket_OnCreate-OnMessage0_4C972FB4.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}" + "source_arn": "${aws_sns_topic.Bucket_OnCreate_9682272C.arn}" }, - "Bucket_oncreate-OnMessage1_InvokePermission-c80311dcc4aadf68b1b7fbea8bf5da640f0dde68f4_F6194849": { + "Bucket_OnCreate-OnMessage1_InvokePermission-c8b721b0d6157aa6ade66017aa9bfcbb77f8df59d7_C0F2EA79": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/InvokePermission-c80311dcc4aadf68b1b7fbea8bf5da640f0dde68f4", - "uniqueId": "Bucket_oncreate-OnMessage1_InvokePermission-c80311dcc4aadf68b1b7fbea8bf5da640f0dde68f4_F6194849" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/InvokePermission-c8b721b0d6157aa6ade66017aa9bfcbb77f8df59d7", + "uniqueId": "Bucket_OnCreate-OnMessage1_InvokePermission-c8b721b0d6157aa6ade66017aa9bfcbb77f8df59d7_C0F2EA79" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Bucket_oncreate-OnMessage1_BC956365.function_name}", + "function_name": "${aws_lambda_function.Bucket_OnCreate-OnMessage1_18599D01.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}" + "source_arn": "${aws_sns_topic.Bucket_OnCreate_9682272C.arn}" }, - "Bucket_ondelete-OnMessage0_InvokePermission-c8d079b3d06057215794f77e7e4bf9c5113e5b753b_AFF2F4D8": { + "Bucket_OnDelete-OnMessage0_InvokePermission-c8951577e6e6b8b443e69cf3aa712434a41064d057_3C678F8E": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/InvokePermission-c8d079b3d06057215794f77e7e4bf9c5113e5b753b", - "uniqueId": "Bucket_ondelete-OnMessage0_InvokePermission-c8d079b3d06057215794f77e7e4bf9c5113e5b753b_AFF2F4D8" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/InvokePermission-c8951577e6e6b8b443e69cf3aa712434a41064d057", + "uniqueId": "Bucket_OnDelete-OnMessage0_InvokePermission-c8951577e6e6b8b443e69cf3aa712434a41064d057_3C678F8E" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Bucket_ondelete-OnMessage0_31A1E9E4.function_name}", + "function_name": "${aws_lambda_function.Bucket_OnDelete-OnMessage0_BBD3A051.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}" + "source_arn": "${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}" }, - "Bucket_ondelete-OnMessage1_InvokePermission-c8d079b3d06057215794f77e7e4bf9c5113e5b753b_ADE9F930": { + "Bucket_OnDelete-OnMessage1_InvokePermission-c8951577e6e6b8b443e69cf3aa712434a41064d057_DB38FC8F": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/InvokePermission-c8d079b3d06057215794f77e7e4bf9c5113e5b753b", - "uniqueId": "Bucket_ondelete-OnMessage1_InvokePermission-c8d079b3d06057215794f77e7e4bf9c5113e5b753b_ADE9F930" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/InvokePermission-c8951577e6e6b8b443e69cf3aa712434a41064d057", + "uniqueId": "Bucket_OnDelete-OnMessage1_InvokePermission-c8951577e6e6b8b443e69cf3aa712434a41064d057_DB38FC8F" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Bucket_ondelete-OnMessage1_5BBC7743.function_name}", + "function_name": "${aws_lambda_function.Bucket_OnDelete-OnMessage1_A17F4764.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}" + "source_arn": "${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}" }, - "Bucket_onupdate-OnMessage0_InvokePermission-c83c88094423e3602c58db2402f439eb720806a401_3F79E9CA": { + "Bucket_OnUpdate-OnMessage0_InvokePermission-c81749ea32d17e6c85fdd886350ce3ffe9fd7c0be7_026E0359": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/InvokePermission-c83c88094423e3602c58db2402f439eb720806a401", - "uniqueId": "Bucket_onupdate-OnMessage0_InvokePermission-c83c88094423e3602c58db2402f439eb720806a401_3F79E9CA" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/InvokePermission-c81749ea32d17e6c85fdd886350ce3ffe9fd7c0be7", + "uniqueId": "Bucket_OnUpdate-OnMessage0_InvokePermission-c81749ea32d17e6c85fdd886350ce3ffe9fd7c0be7_026E0359" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Bucket_onupdate-OnMessage0_2FBE69C5.function_name}", + "function_name": "${aws_lambda_function.Bucket_OnUpdate-OnMessage0_ABC5042C.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Bucket_onupdate_658D07E4.arn}" + "source_arn": "${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}" }, - "Bucket_onupdate-OnMessage1_InvokePermission-c83c88094423e3602c58db2402f439eb720806a401_656518F7": { + "Bucket_OnUpdate-OnMessage1_InvokePermission-c81749ea32d17e6c85fdd886350ce3ffe9fd7c0be7_E1A5BEF6": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/InvokePermission-c83c88094423e3602c58db2402f439eb720806a401", - "uniqueId": "Bucket_onupdate-OnMessage1_InvokePermission-c83c88094423e3602c58db2402f439eb720806a401_656518F7" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/InvokePermission-c81749ea32d17e6c85fdd886350ce3ffe9fd7c0be7", + "uniqueId": "Bucket_OnUpdate-OnMessage1_InvokePermission-c81749ea32d17e6c85fdd886350ce3ffe9fd7c0be7_E1A5BEF6" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Bucket_onupdate-OnMessage1_DDC08FAE.function_name}", + "function_name": "${aws_lambda_function.Bucket_OnUpdate-OnMessage1_A9787FC1.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Bucket_onupdate_658D07E4.arn}" + "source_arn": "${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}" } }, "aws_s3_bucket": { @@ -615,9 +615,9 @@ }, "bucket": "${aws_s3_bucket.Bucket.id}", "depends_on": [ - "aws_sns_topic_policy.Bucket_ondelete_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_ABACCC4A", - "aws_sns_topic_policy.Bucket_onupdate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_CFB72F4E", - "aws_sns_topic_policy.Bucket_oncreate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_E0552A1A" + "aws_sns_topic_policy.Bucket_OnDelete_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_89434C6B", + "aws_sns_topic_policy.Bucket_OnUpdate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_9BF3340C", + "aws_sns_topic_policy.Bucket_OnCreate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_E9DA9F8C" ], "topic": [ { @@ -625,86 +625,86 @@ "s3:ObjectRemoved:*" ], "id": "on-ondelete-notification", - "topic_arn": "${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}" }, { "events": [ "s3:ObjectCreated:Post" ], "id": "on-onupdate-notification", - "topic_arn": "${aws_sns_topic.Bucket_onupdate_658D07E4.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}" }, { "events": [ "s3:ObjectCreated:Put" ], "id": "on-oncreate-notification", - "topic_arn": "${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnCreate_9682272C.arn}" } ] } }, "aws_s3_object": { - "Bucket_oncreate-OnMessage0_S3Object_F105B125": { + "Bucket_OnCreate-OnMessage0_S3Object_3AC22680": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage0/S3Object", - "uniqueId": "Bucket_oncreate-OnMessage0_S3Object_F105B125" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage0/S3Object", + "uniqueId": "Bucket_OnCreate-OnMessage0_S3Object_3AC22680" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "Bucket_oncreate-OnMessage1_S3Object_F92E0B51": { + "Bucket_OnCreate-OnMessage1_S3Object_24FED042": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate-OnMessage1/S3Object", - "uniqueId": "Bucket_oncreate-OnMessage1_S3Object_F92E0B51" + "path": "root/Default/Default/Bucket/OnCreate-OnMessage1/S3Object", + "uniqueId": "Bucket_OnCreate-OnMessage1_S3Object_24FED042" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "Bucket_ondelete-OnMessage0_S3Object_DE6CDD43": { + "Bucket_OnDelete-OnMessage0_S3Object_555C9D08": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage0/S3Object", - "uniqueId": "Bucket_ondelete-OnMessage0_S3Object_DE6CDD43" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage0/S3Object", + "uniqueId": "Bucket_OnDelete-OnMessage0_S3Object_555C9D08" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "Bucket_ondelete-OnMessage1_S3Object_DE98D974": { + "Bucket_OnDelete-OnMessage1_S3Object_DE01EBE1": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete-OnMessage1/S3Object", - "uniqueId": "Bucket_ondelete-OnMessage1_S3Object_DE98D974" + "path": "root/Default/Default/Bucket/OnDelete-OnMessage1/S3Object", + "uniqueId": "Bucket_OnDelete-OnMessage1_S3Object_DE01EBE1" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "Bucket_onupdate-OnMessage0_S3Object_B4B3C51E": { + "Bucket_OnUpdate-OnMessage0_S3Object_45CBA374": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage0/S3Object", - "uniqueId": "Bucket_onupdate-OnMessage0_S3Object_B4B3C51E" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage0/S3Object", + "uniqueId": "Bucket_OnUpdate-OnMessage0_S3Object_45CBA374" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "Bucket_onupdate-OnMessage1_S3Object_12D7055B": { + "Bucket_OnUpdate-OnMessage1_S3Object_A8B89403": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate-OnMessage1/S3Object", - "uniqueId": "Bucket_onupdate-OnMessage1_S3Object_12D7055B" + "path": "root/Default/Default/Bucket/OnUpdate-OnMessage1/S3Object", + "uniqueId": "Bucket_OnUpdate-OnMessage1_S3Object_A8B89403" } }, "bucket": "${aws_s3_bucket.Code.bucket}", @@ -713,132 +713,132 @@ } }, "aws_sns_topic": { - "Bucket_oncreate_05DB4E53": { + "Bucket_OnCreate_9682272C": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate/Default", - "uniqueId": "Bucket_oncreate_05DB4E53" + "path": "root/Default/Default/Bucket/OnCreate/Default", + "uniqueId": "Bucket_OnCreate_9682272C" } }, - "name": "oncreate-c80311dc" + "name": "OnCreate-c8b721b0" }, - "Bucket_ondelete_7F3A2B6C": { + "Bucket_OnDelete_0EB7243C": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete/Default", - "uniqueId": "Bucket_ondelete_7F3A2B6C" + "path": "root/Default/Default/Bucket/OnDelete/Default", + "uniqueId": "Bucket_OnDelete_0EB7243C" } }, - "name": "ondelete-c8d079b3" + "name": "OnDelete-c8951577" }, - "Bucket_onupdate_658D07E4": { + "Bucket_OnUpdate_E297838E": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate/Default", - "uniqueId": "Bucket_onupdate_658D07E4" + "path": "root/Default/Default/Bucket/OnUpdate/Default", + "uniqueId": "Bucket_OnUpdate_E297838E" } }, - "name": "onupdate-c83c8809" + "name": "OnUpdate-c81749ea" } }, "aws_sns_topic_policy": { - "Bucket_oncreate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_E0552A1A": { + "Bucket_OnCreate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_E9DA9F8C": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate/PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a", - "uniqueId": "Bucket_oncreate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_E0552A1A" + "path": "root/Default/Default/Bucket/OnCreate/PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a", + "uniqueId": "Bucket_OnCreate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_E9DA9F8C" } }, - "arn": "${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Bucket.arn}\"}}}]}" + "arn": "${aws_sns_topic.Bucket_OnCreate_9682272C.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Bucket_OnCreate_9682272C.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Bucket.arn}\"}}}]}" }, - "Bucket_ondelete_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_ABACCC4A": { + "Bucket_OnDelete_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_89434C6B": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete/PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a", - "uniqueId": "Bucket_ondelete_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_ABACCC4A" + "path": "root/Default/Default/Bucket/OnDelete/PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a", + "uniqueId": "Bucket_OnDelete_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_89434C6B" } }, - "arn": "${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Bucket.arn}\"}}}]}" + "arn": "${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Bucket.arn}\"}}}]}" }, - "Bucket_onupdate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_CFB72F4E": { + "Bucket_OnUpdate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_9BF3340C": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate/PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a", - "uniqueId": "Bucket_onupdate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_CFB72F4E" + "path": "root/Default/Default/Bucket/OnUpdate/PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a", + "uniqueId": "Bucket_OnUpdate_PublishPermission-c88fdc5f491a51d8438235500a4821fbc31357ca3a_9BF3340C" } }, - "arn": "${aws_sns_topic.Bucket_onupdate_658D07E4.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Bucket_onupdate_658D07E4.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Bucket.arn}\"}}}]}" + "arn": "${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Bucket.arn}\"}}}]}" } }, "aws_sns_topic_subscription": { - "Bucket_oncreate_TopicSubscription0_02705B37": { + "Bucket_OnCreate_TopicSubscription0_A2B42747": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate/TopicSubscription0", - "uniqueId": "Bucket_oncreate_TopicSubscription0_02705B37" + "path": "root/Default/Default/Bucket/OnCreate/TopicSubscription0", + "uniqueId": "Bucket_OnCreate_TopicSubscription0_A2B42747" } }, - "endpoint": "${aws_lambda_function.Bucket_oncreate-OnMessage0_64FDCB47.arn}", + "endpoint": "${aws_lambda_function.Bucket_OnCreate-OnMessage0_4C972FB4.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnCreate_9682272C.arn}" }, - "Bucket_oncreate_TopicSubscription1_CAD043F1": { + "Bucket_OnCreate_TopicSubscription1_8F485EA8": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/oncreate/TopicSubscription1", - "uniqueId": "Bucket_oncreate_TopicSubscription1_CAD043F1" + "path": "root/Default/Default/Bucket/OnCreate/TopicSubscription1", + "uniqueId": "Bucket_OnCreate_TopicSubscription1_8F485EA8" } }, - "endpoint": "${aws_lambda_function.Bucket_oncreate-OnMessage1_BC956365.arn}", + "endpoint": "${aws_lambda_function.Bucket_OnCreate-OnMessage1_18599D01.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Bucket_oncreate_05DB4E53.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnCreate_9682272C.arn}" }, - "Bucket_ondelete_TopicSubscription0_4F3E33C7": { + "Bucket_OnDelete_TopicSubscription0_4D741190": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete/TopicSubscription0", - "uniqueId": "Bucket_ondelete_TopicSubscription0_4F3E33C7" + "path": "root/Default/Default/Bucket/OnDelete/TopicSubscription0", + "uniqueId": "Bucket_OnDelete_TopicSubscription0_4D741190" } }, - "endpoint": "${aws_lambda_function.Bucket_ondelete-OnMessage0_31A1E9E4.arn}", + "endpoint": "${aws_lambda_function.Bucket_OnDelete-OnMessage0_BBD3A051.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}" }, - "Bucket_ondelete_TopicSubscription1_575AD2C4": { + "Bucket_OnDelete_TopicSubscription1_8362A2BD": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/ondelete/TopicSubscription1", - "uniqueId": "Bucket_ondelete_TopicSubscription1_575AD2C4" + "path": "root/Default/Default/Bucket/OnDelete/TopicSubscription1", + "uniqueId": "Bucket_OnDelete_TopicSubscription1_8362A2BD" } }, - "endpoint": "${aws_lambda_function.Bucket_ondelete-OnMessage1_5BBC7743.arn}", + "endpoint": "${aws_lambda_function.Bucket_OnDelete-OnMessage1_A17F4764.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Bucket_ondelete_7F3A2B6C.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnDelete_0EB7243C.arn}" }, - "Bucket_onupdate_TopicSubscription0_7ED55DE3": { + "Bucket_OnUpdate_TopicSubscription0_6ECDED15": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate/TopicSubscription0", - "uniqueId": "Bucket_onupdate_TopicSubscription0_7ED55DE3" + "path": "root/Default/Default/Bucket/OnUpdate/TopicSubscription0", + "uniqueId": "Bucket_OnUpdate_TopicSubscription0_6ECDED15" } }, - "endpoint": "${aws_lambda_function.Bucket_onupdate-OnMessage0_2FBE69C5.arn}", + "endpoint": "${aws_lambda_function.Bucket_OnUpdate-OnMessage0_ABC5042C.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Bucket_onupdate_658D07E4.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}" }, - "Bucket_onupdate_TopicSubscription1_8652ABA3": { + "Bucket_OnUpdate_TopicSubscription1_3F3174F8": { "//": { "metadata": { - "path": "root/Default/Default/Bucket/onupdate/TopicSubscription1", - "uniqueId": "Bucket_onupdate_TopicSubscription1_8652ABA3" + "path": "root/Default/Default/Bucket/OnUpdate/TopicSubscription1", + "uniqueId": "Bucket_OnUpdate_TopicSubscription1_3F3174F8" } }, - "endpoint": "${aws_lambda_function.Bucket_onupdate-OnMessage1_DDC08FAE.arn}", + "endpoint": "${aws_lambda_function.Bucket_OnUpdate-OnMessage1_A9787FC1.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Bucket_onupdate_658D07E4.arn}" + "topic_arn": "${aws_sns_topic.Bucket_OnUpdate_E297838E.arn}" } } } diff --git a/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md index 5857d521f2a..6b7558fe72e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/mutation_after_class_init.test.w_compile_tf-aws.md @@ -120,14 +120,14 @@ module.exports = function({ }) { }, "resource": { "aws_cloudwatch_log_group": { - "Queue_Bucket_oncreate-OnMessage0_CloudwatchLogGroup_9C74780C": { + "Queue_Bucket_OnCreate-OnMessage0_CloudwatchLogGroup_BF038703": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/CloudwatchLogGroup", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_CloudwatchLogGroup_9C74780C" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/CloudwatchLogGroup", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_CloudwatchLogGroup_BF038703" } }, - "name": "/aws/lambda/oncreate-OnMessage0-c8eb573e", + "name": "/aws/lambda/OnCreate-OnMessage0-c8cf52b9", "retention_in_days": 30 } }, @@ -151,46 +151,46 @@ module.exports = function({ }) { } }, "aws_iam_role": { - "Queue_Bucket_oncreate-OnMessage0_IamRole_9A71BD20": { + "Queue_Bucket_OnCreate-OnMessage0_IamRole_210FCAAB": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/IamRole", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_IamRole_9A71BD20" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/IamRole", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_IamRole_210FCAAB" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" } }, "aws_iam_role_policy": { - "Queue_Bucket_oncreate-OnMessage0_IamRolePolicy_DA330440": { + "Queue_Bucket_OnCreate-OnMessage0_IamRolePolicy_10E86967": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/IamRolePolicy", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_IamRolePolicy_DA330440" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/IamRolePolicy", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_IamRolePolicy_10E86967" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.Counter.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.Queue_Bucket_oncreate-OnMessage0_IamRole_9A71BD20.name}" + "role": "${aws_iam_role.Queue_Bucket_OnCreate-OnMessage0_IamRole_210FCAAB.name}" } }, "aws_iam_role_policy_attachment": { - "Queue_Bucket_oncreate-OnMessage0_IamRolePolicyAttachment_C9B56BC6": { + "Queue_Bucket_OnCreate-OnMessage0_IamRolePolicyAttachment_C6B42DE8": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/IamRolePolicyAttachment", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_IamRolePolicyAttachment_C9B56BC6" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/IamRolePolicyAttachment", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_IamRolePolicyAttachment_C6B42DE8" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.Queue_Bucket_oncreate-OnMessage0_IamRole_9A71BD20.name}" + "role": "${aws_iam_role.Queue_Bucket_OnCreate-OnMessage0_IamRole_210FCAAB.name}" } }, "aws_lambda_function": { - "Queue_Bucket_oncreate-OnMessage0_E6447040": { + "Queue_Bucket_OnCreate-OnMessage0_F7EE1690": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/Default", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_E6447040" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/Default", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_F7EE1690" } }, "architectures": [ @@ -200,18 +200,18 @@ module.exports = function({ }) { "variables": { "DYNAMODB_TABLE_NAME_6cb5a3a4": "${aws_dynamodb_table.Counter.name}", "NODE_OPTIONS": "--enable-source-maps", - "WING_FUNCTION_NAME": "oncreate-OnMessage0-c8eb573e", + "WING_FUNCTION_NAME": "OnCreate-OnMessage0-c8cf52b9", "WING_TARGET": "tf-aws" } }, - "function_name": "oncreate-OnMessage0-c8eb573e", + "function_name": "OnCreate-OnMessage0-c8cf52b9", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.Queue_Bucket_oncreate-OnMessage0_IamRole_9A71BD20.arn}", + "role": "${aws_iam_role.Queue_Bucket_OnCreate-OnMessage0_IamRole_210FCAAB.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.Queue_Bucket_oncreate-OnMessage0_S3Object_25BC6E4D.key}", + "s3_key": "${aws_s3_object.Queue_Bucket_OnCreate-OnMessage0_S3Object_D3C5CDCB.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -220,17 +220,17 @@ module.exports = function({ }) { } }, "aws_lambda_permission": { - "Queue_Bucket_oncreate-OnMessage0_InvokePermission-c8dcd31783c1522bf1463bb2ca490732c273cb2aa5_8197A736": { + "Queue_Bucket_OnCreate-OnMessage0_InvokePermission-c858cf97f3e1a27ecdbc73b06b0748fac8d80bfa4e_BD57ACF0": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/InvokePermission-c8dcd31783c1522bf1463bb2ca490732c273cb2aa5", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_InvokePermission-c8dcd31783c1522bf1463bb2ca490732c273cb2aa5_8197A736" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/InvokePermission-c858cf97f3e1a27ecdbc73b06b0748fac8d80bfa4e", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_InvokePermission-c858cf97f3e1a27ecdbc73b06b0748fac8d80bfa4e_BD57ACF0" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.Queue_Bucket_oncreate-OnMessage0_E6447040.function_name}", + "function_name": "${aws_lambda_function.Queue_Bucket_OnCreate-OnMessage0_F7EE1690.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.Queue_Bucket_oncreate_793B52C5.arn}" + "source_arn": "${aws_sns_topic.Queue_Bucket_OnCreate_DA88E2C3.arn}" } }, "aws_s3_bucket": { @@ -264,7 +264,7 @@ module.exports = function({ }) { }, "bucket": "${aws_s3_bucket.Queue_Bucket_A87615FF.id}", "depends_on": [ - "aws_sns_topic_policy.Queue_Bucket_oncreate_PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489_27F9C442" + "aws_sns_topic_policy.Queue_Bucket_OnCreate_PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489_3E123A5B" ], "topic": [ { @@ -272,17 +272,17 @@ module.exports = function({ }) { "s3:ObjectCreated:Put" ], "id": "on-oncreate-notification", - "topic_arn": "${aws_sns_topic.Queue_Bucket_oncreate_793B52C5.arn}" + "topic_arn": "${aws_sns_topic.Queue_Bucket_OnCreate_DA88E2C3.arn}" } ] } }, "aws_s3_object": { - "Queue_Bucket_oncreate-OnMessage0_S3Object_25BC6E4D": { + "Queue_Bucket_OnCreate-OnMessage0_S3Object_D3C5CDCB": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate-OnMessage0/S3Object", - "uniqueId": "Queue_Bucket_oncreate-OnMessage0_S3Object_25BC6E4D" + "path": "root/Default/Default/Queue/Bucket/OnCreate-OnMessage0/S3Object", + "uniqueId": "Queue_Bucket_OnCreate-OnMessage0_S3Object_D3C5CDCB" } }, "bucket": "${aws_s3_bucket.Code.bucket}", @@ -291,39 +291,39 @@ module.exports = function({ }) { } }, "aws_sns_topic": { - "Queue_Bucket_oncreate_793B52C5": { + "Queue_Bucket_OnCreate_DA88E2C3": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate/Default", - "uniqueId": "Queue_Bucket_oncreate_793B52C5" + "path": "root/Default/Default/Queue/Bucket/OnCreate/Default", + "uniqueId": "Queue_Bucket_OnCreate_DA88E2C3" } }, - "name": "oncreate-c8dcd317" + "name": "OnCreate-c858cf97" } }, "aws_sns_topic_policy": { - "Queue_Bucket_oncreate_PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489_27F9C442": { + "Queue_Bucket_OnCreate_PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489_3E123A5B": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate/PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489", - "uniqueId": "Queue_Bucket_oncreate_PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489_27F9C442" + "path": "root/Default/Default/Queue/Bucket/OnCreate/PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489", + "uniqueId": "Queue_Bucket_OnCreate_PublishPermission-c81048e6ea798f253db9714095de7ff4c76c443489_3E123A5B" } }, - "arn": "${aws_sns_topic.Queue_Bucket_oncreate_793B52C5.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Queue_Bucket_oncreate_793B52C5.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Queue_Bucket_A87615FF.arn}\"}}}]}" + "arn": "${aws_sns_topic.Queue_Bucket_OnCreate_DA88E2C3.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.Queue_Bucket_OnCreate_DA88E2C3.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.Queue_Bucket_A87615FF.arn}\"}}}]}" } }, "aws_sns_topic_subscription": { - "Queue_Bucket_oncreate_TopicSubscription0_1F6BA14E": { + "Queue_Bucket_OnCreate_TopicSubscription0_9E4D200B": { "//": { "metadata": { - "path": "root/Default/Default/Queue/Bucket/oncreate/TopicSubscription0", - "uniqueId": "Queue_Bucket_oncreate_TopicSubscription0_1F6BA14E" + "path": "root/Default/Default/Queue/Bucket/OnCreate/TopicSubscription0", + "uniqueId": "Queue_Bucket_OnCreate_TopicSubscription0_9E4D200B" } }, - "endpoint": "${aws_lambda_function.Queue_Bucket_oncreate-OnMessage0_E6447040.arn}", + "endpoint": "${aws_lambda_function.Queue_Bucket_OnCreate-OnMessage0_F7EE1690.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.Queue_Bucket_oncreate_793B52C5.arn}" + "topic_arn": "${aws_sns_topic.Queue_Bucket_OnCreate_DA88E2C3.arn}" } } } diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md index c43fc4d5a66..068b3920520 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md @@ -264,14 +264,14 @@ module.exports = function({ }) { "name": "/aws/lambda/Topic-OnMessage0-c8bea057", "retention_in_days": 30 }, - "BigPublisher_b2_oncreate-OnMessage0_CloudwatchLogGroup_E98CA40A": { + "BigPublisher_b2_OnCreate-OnMessage0_CloudwatchLogGroup_8914F373": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/CloudwatchLogGroup", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_CloudwatchLogGroup_E98CA40A" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/CloudwatchLogGroup", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_CloudwatchLogGroup_8914F373" } }, - "name": "/aws/lambda/oncreate-OnMessage0-c8946df1", + "name": "/aws/lambda/OnCreate-OnMessage0-c8ab841c", "retention_in_days": 30 } }, @@ -313,11 +313,11 @@ module.exports = function({ }) { }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "BigPublisher_b2_oncreate-OnMessage0_IamRole_FF154497": { + "BigPublisher_b2_OnCreate-OnMessage0_IamRole_2B7C8C04": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRole", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_IamRole_FF154497" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/IamRole", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_IamRole_2B7C8C04" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" @@ -344,15 +344,15 @@ module.exports = function({ }) { "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:PutObject*\",\"s3:Abort*\"],\"Resource\":[\"${aws_s3_bucket.BigPublisher_Bucket_F4CC95F6.arn}\",\"${aws_s3_bucket.BigPublisher_Bucket_F4CC95F6.arn}/*\"],\"Effect\":\"Allow\"}]}", "role": "${aws_iam_role.BigPublisher_Topic-OnMessage0_IamRole_FEF4CFBB.name}" }, - "BigPublisher_b2_oncreate-OnMessage0_IamRolePolicy_983EC08F": { + "BigPublisher_b2_OnCreate-OnMessage0_IamRolePolicy_7D531F15": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRolePolicy", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_IamRolePolicy_983EC08F" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/IamRolePolicy", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_IamRolePolicy_7D531F15" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sqs:GetQueueUrl\"],\"Resource\":[\"${aws_sqs_queue.BigPublisher_Queue_2C024F97.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"sqs:SendMessage\"],\"Resource\":[\"${aws_sqs_queue.BigPublisher_Queue_2C024F97.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.BigPublisher_b2_oncreate-OnMessage0_IamRole_FF154497.name}" + "role": "${aws_iam_role.BigPublisher_b2_OnCreate-OnMessage0_IamRole_2B7C8C04.name}" } }, "aws_iam_role_policy_attachment": { @@ -376,15 +376,15 @@ module.exports = function({ }) { "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", "role": "${aws_iam_role.BigPublisher_Topic-OnMessage0_IamRole_FEF4CFBB.name}" }, - "BigPublisher_b2_oncreate-OnMessage0_IamRolePolicyAttachment_7DE224FF": { + "BigPublisher_b2_OnCreate-OnMessage0_IamRolePolicyAttachment_56FA395A": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRolePolicyAttachment", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_IamRolePolicyAttachment_7DE224FF" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/IamRolePolicyAttachment", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_IamRolePolicyAttachment_56FA395A" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.BigPublisher_b2_oncreate-OnMessage0_IamRole_FF154497.name}" + "role": "${aws_iam_role.BigPublisher_b2_OnCreate-OnMessage0_IamRole_2B7C8C04.name}" } }, "aws_lambda_event_source_mapping": { @@ -468,11 +468,11 @@ module.exports = function({ }) { "subnet_ids": [] } }, - "BigPublisher_b2_oncreate-OnMessage0_3ECAAB35": { + "BigPublisher_b2_OnCreate-OnMessage0_F967A96B": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/Default", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_3ECAAB35" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/Default", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_F967A96B" } }, "architectures": [ @@ -482,18 +482,18 @@ module.exports = function({ }) { "variables": { "NODE_OPTIONS": "--enable-source-maps", "QUEUE_URL_cb1bcecf": "${aws_sqs_queue.BigPublisher_Queue_2C024F97.url}", - "WING_FUNCTION_NAME": "oncreate-OnMessage0-c8946df1", + "WING_FUNCTION_NAME": "OnCreate-OnMessage0-c8ab841c", "WING_TARGET": "tf-aws" } }, - "function_name": "oncreate-OnMessage0-c8946df1", + "function_name": "OnCreate-OnMessage0-c8ab841c", "handler": "index.handler", "memory_size": 1024, "publish": true, - "role": "${aws_iam_role.BigPublisher_b2_oncreate-OnMessage0_IamRole_FF154497.arn}", + "role": "${aws_iam_role.BigPublisher_b2_OnCreate-OnMessage0_IamRole_2B7C8C04.arn}", "runtime": "nodejs20.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.BigPublisher_b2_oncreate-OnMessage0_S3Object_1489E104.key}", + "s3_key": "${aws_s3_object.BigPublisher_b2_OnCreate-OnMessage0_S3Object_75F3ED03.key}", "timeout": 60, "vpc_config": { "security_group_ids": [], @@ -514,17 +514,17 @@ module.exports = function({ }) { "principal": "sns.amazonaws.com", "source_arn": "${aws_sns_topic.BigPublisher_Topic_F8E12E52.arn}" }, - "BigPublisher_b2_oncreate-OnMessage0_InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a_9E58F097": { + "BigPublisher_b2_OnCreate-OnMessage0_InvokePermission-c8957161bd24a9a75910007bdeef4fc517fd85b21a_AB564705": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a_9E58F097" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/InvokePermission-c8957161bd24a9a75910007bdeef4fc517fd85b21a", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_InvokePermission-c8957161bd24a9a75910007bdeef4fc517fd85b21a_AB564705" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.BigPublisher_b2_oncreate-OnMessage0_3ECAAB35.function_name}", + "function_name": "${aws_lambda_function.BigPublisher_b2_OnCreate-OnMessage0_F967A96B.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.BigPublisher_b2_oncreate_44F68983.arn}" + "source_arn": "${aws_sns_topic.BigPublisher_b2_OnCreate_25B21222.arn}" } }, "aws_s3_bucket": { @@ -578,7 +578,7 @@ module.exports = function({ }) { }, "bucket": "${aws_s3_bucket.BigPublisher_b2_702AC841.id}", "depends_on": [ - "aws_sns_topic_policy.BigPublisher_b2_oncreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_8A5E9A05" + "aws_sns_topic_policy.BigPublisher_b2_OnCreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_4DA82EC3" ], "topic": [ { @@ -586,7 +586,7 @@ module.exports = function({ }) { "s3:ObjectCreated:Put" ], "id": "on-oncreate-notification", - "topic_arn": "${aws_sns_topic.BigPublisher_b2_oncreate_44F68983.arn}" + "topic_arn": "${aws_sns_topic.BigPublisher_b2_OnCreate_25B21222.arn}" } ] } @@ -614,11 +614,11 @@ module.exports = function({ }) { "key": "", "source": "" }, - "BigPublisher_b2_oncreate-OnMessage0_S3Object_1489E104": { + "BigPublisher_b2_OnCreate-OnMessage0_S3Object_75F3ED03": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/S3Object", - "uniqueId": "BigPublisher_b2_oncreate-OnMessage0_S3Object_1489E104" + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/S3Object", + "uniqueId": "BigPublisher_b2_OnCreate-OnMessage0_S3Object_75F3ED03" } }, "bucket": "${aws_s3_bucket.Code.bucket}", @@ -636,26 +636,26 @@ module.exports = function({ }) { }, "name": "Topic-c884cd53" }, - "BigPublisher_b2_oncreate_44F68983": { + "BigPublisher_b2_OnCreate_25B21222": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate/Default", - "uniqueId": "BigPublisher_b2_oncreate_44F68983" + "path": "root/Default/Default/BigPublisher/b2/OnCreate/Default", + "uniqueId": "BigPublisher_b2_OnCreate_25B21222" } }, - "name": "oncreate-c849e824" + "name": "OnCreate-c8957161" } }, "aws_sns_topic_policy": { - "BigPublisher_b2_oncreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_8A5E9A05": { + "BigPublisher_b2_OnCreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_4DA82EC3": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", - "uniqueId": "BigPublisher_b2_oncreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_8A5E9A05" + "path": "root/Default/Default/BigPublisher/b2/OnCreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", + "uniqueId": "BigPublisher_b2_OnCreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_4DA82EC3" } }, - "arn": "${aws_sns_topic.BigPublisher_b2_oncreate_44F68983.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.BigPublisher_b2_oncreate_44F68983.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.BigPublisher_b2_702AC841.arn}\"}}}]}" + "arn": "${aws_sns_topic.BigPublisher_b2_OnCreate_25B21222.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.BigPublisher_b2_OnCreate_25B21222.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.BigPublisher_b2_702AC841.arn}\"}}}]}" } }, "aws_sns_topic_subscription": { @@ -670,16 +670,16 @@ module.exports = function({ }) { "protocol": "lambda", "topic_arn": "${aws_sns_topic.BigPublisher_Topic_F8E12E52.arn}" }, - "BigPublisher_b2_oncreate_TopicSubscription0_692E956B": { + "BigPublisher_b2_OnCreate_TopicSubscription0_E6A5285C": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/oncreate/TopicSubscription0", - "uniqueId": "BigPublisher_b2_oncreate_TopicSubscription0_692E956B" + "path": "root/Default/Default/BigPublisher/b2/OnCreate/TopicSubscription0", + "uniqueId": "BigPublisher_b2_OnCreate_TopicSubscription0_E6A5285C" } }, - "endpoint": "${aws_lambda_function.BigPublisher_b2_oncreate-OnMessage0_3ECAAB35.arn}", + "endpoint": "${aws_lambda_function.BigPublisher_b2_OnCreate-OnMessage0_F967A96B.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.BigPublisher_b2_oncreate_44F68983.arn}" + "topic_arn": "${aws_sns_topic.BigPublisher_b2_OnCreate_25B21222.arn}" } }, "aws_sqs_queue": { diff --git a/tools/hangar/__snapshots__/tree_json.ts.snap b/tools/hangar/__snapshots__/tree_json.ts.snap index dc0ca6ea343..2714d9cf470 100644 --- a/tools/hangar/__snapshots__/tree_json.ts.snap +++ b/tools/hangar/__snapshots__/tree_json.ts.snap @@ -382,16 +382,7 @@ exports[`tree.json for an app with many resources 1`] = ` "id": "Default", "path": "root/Default/Default/BigPublisher/b2/Default", }, - "S3BucketNotification": { - "constructInfo": { - "fqn": "cdktf.TerraformResource", - "version": "0.20.3", - }, - "display": {}, - "id": "S3BucketNotification", - "path": "root/Default/Default/BigPublisher/b2/S3BucketNotification", - }, - "oncreate": { + "OnCreate": { "children": { "Default": { "constructInfo": { @@ -400,7 +391,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/Default/BigPublisher/b2/oncreate/Default", + "path": "root/Default/Default/BigPublisher/b2/OnCreate/Default", }, "PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad": { "constructInfo": { @@ -409,7 +400,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", - "path": "root/Default/Default/BigPublisher/b2/oncreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", + "path": "root/Default/Default/BigPublisher/b2/OnCreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", }, "TopicSubscription0": { "constructInfo": { @@ -418,7 +409,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "TopicSubscription0", - "path": "root/Default/Default/BigPublisher/b2/oncreate/TopicSubscription0", + "path": "root/Default/Default/BigPublisher/b2/OnCreate/TopicSubscription0", }, }, "constructInfo": { @@ -429,10 +420,10 @@ exports[`tree.json for an app with many resources 1`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "oncreate", - "path": "root/Default/Default/BigPublisher/b2/oncreate", + "id": "OnCreate", + "path": "root/Default/Default/BigPublisher/b2/OnCreate", }, - "oncreate-OnMessage0": { + "OnCreate-OnMessage0": { "children": { "Asset": { "constructInfo": { @@ -441,7 +432,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "Asset", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/Asset", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/Asset", }, "CloudwatchLogGroup": { "constructInfo": { @@ -450,7 +441,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "CloudwatchLogGroup", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/CloudwatchLogGroup", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/CloudwatchLogGroup", }, "Default": { "constructInfo": { @@ -459,7 +450,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "Default", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/Default", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/Default", }, "IamRole": { "constructInfo": { @@ -468,7 +459,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "IamRole", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRole", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -477,7 +468,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "IamRolePolicy", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRolePolicy", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -486,16 +477,16 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "IamRolePolicyAttachment", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/IamRolePolicyAttachment", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/IamRolePolicyAttachment", }, - "InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a": { + "InvokePermission-c8957161bd24a9a75910007bdeef4fc517fd85b21a": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.20.3", }, "display": {}, - "id": "InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/InvokePermission-c849e824f9ffcc17825860cf0b7344a60826b3ba1a", + "id": "InvokePermission-c8957161bd24a9a75910007bdeef4fc517fd85b21a", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/InvokePermission-c8957161bd24a9a75910007bdeef4fc517fd85b21a", }, "S3Object": { "constructInfo": { @@ -504,7 +495,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": {}, "id": "S3Object", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0/S3Object", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0/S3Object", }, }, "constructInfo": { @@ -515,8 +506,17 @@ exports[`tree.json for an app with many resources 1`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "oncreate-OnMessage0", - "path": "root/Default/Default/BigPublisher/b2/oncreate-OnMessage0", + "id": "OnCreate-OnMessage0", + "path": "root/Default/Default/BigPublisher/b2/OnCreate-OnMessage0", + }, + "S3BucketNotification": { + "constructInfo": { + "fqn": "cdktf.TerraformResource", + "version": "0.20.3", + }, + "display": {}, + "id": "S3BucketNotification", + "path": "root/Default/Default/BigPublisher/b2/S3BucketNotification", }, }, "constructInfo": { From 6031415d350bd459334a1dd8d5dbfa1bdef10a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Thu, 6 Jun 2024 15:53:57 +0200 Subject: [PATCH 4/6] fix(console): strange map connections (#6646) Fixes a visual bug introduced by #6602 where strange connections would show floating around the map. --- .../console/ui/src/services/use-map.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/wing-console/console/ui/src/services/use-map.ts b/apps/wing-console/console/ui/src/services/use-map.ts index a7ee36c77a6..33793961929 100644 --- a/apps/wing-console/console/ui/src/services/use-map.ts +++ b/apps/wing-console/console/ui/src/services/use-map.ts @@ -228,6 +228,21 @@ export const useMap = ({ expandedItems }: UseMapOptions) => { return bridgeConnections({ connections: rawConnections + .map((connection) => { + // Convert invokeAsync to invoke, since they + // are the same to the map view. + return { + ...connection, + sourceOp: + connection.sourceOp === "invokeAsync" + ? "invoke" + : connection.sourceOp, + targetOp: + connection.targetOp === "invokeAsync" + ? "invoke" + : connection.targetOp, + }; + }) .filter((connection) => { return connection.source !== connection.target; }) From 22beb04b79dbc2015b4f9f642daf39dd243ac64d Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Thu, 6 Jun 2024 13:56:37 +0000 Subject: [PATCH 5/6] chore: self mutation (e2e-1of2.diff) Signed-off-by: monada-bot[bot] --- .../sdk_tests/bucket/get.test.w_test_sim.md | 3 +-- .../sdk_tests/expect/assert.test.w_test_sim.md | 16 ++-------------- .../sdk_tests/util/exec.test.w_test_sim.md | 9 ++------- .../sdk_tests/util/shell.test.w_test_sim.md | 3 +-- 4 files changed, 6 insertions(+), 25 deletions(-) diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/get.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/get.test.w_test_sim.md index 9403d53b743..34cb9db1213 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/get.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/get.test.w_test_sim.md @@ -3,9 +3,8 @@ ## stdout.log ```log pass ─ get.test.wsim » root/env0/test:get range of an object -pass ─ get.test.wsim » root/env1/test:get empty object -Tests 2 passed (2) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_test_sim.md index ac401c1da4a..6c952495aa8 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_test_sim.md @@ -2,21 +2,9 @@ ## stdout.log ```log -pass ─ assert.test.wsim » root/env0/test:equal num -pass ─ assert.test.wsim » root/env1/test:equal str -pass ─ assert.test.wsim » root/env10/test:negative ok test -pass ─ assert.test.wsim » root/env11/test:negative match test -pass ─ assert.test.wsim » root/env12/test:negative doesNotMatch test -pass ─ assert.test.wsim » root/env2/test:equal bool -pass ─ assert.test.wsim » root/env3/test:equal array of strings -pass ─ assert.test.wsim » root/env4/test:equal array of numbers -pass ─ assert.test.wsim » root/env5/test:equal objects -pass ─ assert.test.wsim » root/env6/test:equal maps -pass ─ assert.test.wsim » root/env7/test:equal sets -pass ─ assert.test.wsim » root/env8/test:equal durations -pass ─ assert.test.wsim » root/env9/test:positive fail test +pass ─ assert.test.wsim » root/env0/test:expect -Tests 13 passed (13) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/exec.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/exec.test.w_test_sim.md index 265cd497b4c..1ae379cdd0d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/exec.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/exec.test.w_test_sim.md @@ -2,14 +2,9 @@ ## stdout.log ```log -pass ─ exec.test.wsim » root/env0/test:exec() with valid program -pass ─ exec.test.wsim » root/env1/test:exec() with invalid program -pass ─ exec.test.wsim » root/env2/test:exec() with explicit non-zero exit status -pass ─ exec.test.wsim » root/env3/test:exec() with env option -pass ─ exec.test.wsim » root/env4/test:exec() with inheritEnv option -pass ─ exec.test.wsim » root/env5/test:exec() with cwd option +pass ─ exec.test.wsim » root/env0/test:exec() -Tests 6 passed (6) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/shell.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/shell.test.w_test_sim.md index 3879bc10fef..34e551c4a6e 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/shell.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/shell.test.w_test_sim.md @@ -8,9 +8,8 @@ pass ─ shell.test.wsim » root/env2/test:shell() with explicit non-zero exit s pass ─ shell.test.wsim » root/env3/test:shell() with env option pass ─ shell.test.wsim » root/env4/test:shell() with inheritEnv option pass ─ shell.test.wsim » root/env5/test:shell() with cwd option -pass ─ shell.test.wsim » root/env6/test:shell() with throw option -Tests 7 passed (7) +Tests 6 passed (6) Snapshots 1 skipped Test Files 1 passed (1) Duration From b268575877cace1be44b6f4d02b82254935dca54 Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Thu, 6 Jun 2024 13:56:37 +0000 Subject: [PATCH 6/6] chore: self mutation (e2e-2of2.diff) Signed-off-by: monada-bot[bot] --- .../function/aws-function.test.w_test_sim.md | 5 +-- .../function/invoke.test.w_test_sim.md | 10 ++--- .../sdk_tests/util/env.test.w_test_sim.md | 3 +- .../sdk_tests/util/spawn.test.w_test_sim.md | 8 +--- .../util/wait-until.test.w_compile_tf-aws.md | 42 +++++++++++++++++-- .../util/wait-until.test.w_test_sim.md | 9 +--- 6 files changed, 49 insertions(+), 28 deletions(-) diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_test_sim.md index 0354a7858e7..2f9b4ca05a9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_test_sim.md @@ -2,10 +2,9 @@ ## stdout.log ```log -pass ─ aws-function.test.wsim » root/env0/test:validates the AWS Function -pass ─ aws-function.test.wsim » root/env1/test:can access lambda context +pass ─ aws-function.test.wsim » root/env0/test:AWS Function -Tests 2 passed (2) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_test_sim.md index 8f07e0f0b6f..9224154fdf5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_test_sim.md @@ -3,16 +3,14 @@ ## stdout.log ```log log preflight -log preflight [INFO] invoke | log inside test [INFO] invoke | log inside function [INFO] invoke | contains 2 lines -[INFO] invoke without inputs and outputs | no event, no return! -[INFO] invoke without inputs and outputs | bang! -pass ─ invoke.test.wsim » root/env0/test:invoke -pass ─ invoke.test.wsim » root/env1/test:invoke without inputs and outputs +[INFO] invoke | no event, no return! +[INFO] invoke | bang! +pass ─ invoke.test.wsim » root/env0/test:invoke -Tests 2 passed (2) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_test_sim.md index 30dd87de42f..5e7129688f2 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_test_sim.md @@ -3,9 +3,8 @@ ## stdout.log ```log pass ─ env.test.wsim » root/env0/test:use util from inflight -pass ─ env.test.wsim » root/env1/test:set env from inflight -Tests 2 passed (2) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/spawn.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/spawn.test.w_test_sim.md index c7212d7d8c5..80bbb943061 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/spawn.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/spawn.test.w_test_sim.md @@ -2,13 +2,9 @@ ## stdout.log ```log -pass ─ spawn.test.wsim » root/env0/test:spawn() with successful execution -pass ─ spawn.test.wsim » root/env1/test:spawn() with empty args -pass ─ spawn.test.wsim » root/env2/test:spawn() with non-existent program -pass ─ spawn.test.wsim » root/env3/test:spawn() and wait for terminated program -pass ─ spawn.test.wsim » root/env4/test:spawn() and kill process +pass ─ spawn.test.wsim » root/env0/test:spawn() -Tests 5 passed (5) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md index 034c384db14..59131abc2d7 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md @@ -18,11 +18,11 @@ }, "resource": { "aws_dynamodb_table": { - "Counter": { + "invoke-counter1": { "//": { "metadata": { - "path": "root/Default/Default/Counter/Default", - "uniqueId": "Counter" + "path": "root/Default/Default/invoke-counter1/Default", + "uniqueId": "invoke-counter1" } }, "attribute": [ @@ -33,7 +33,41 @@ ], "billing_mode": "PAY_PER_REQUEST", "hash_key": "id", - "name": "wing-counter-Counter-c824ef62" + "name": "wing-counter-invoke-counter1-c8df96b3" + }, + "invoke-counter2": { + "//": { + "metadata": { + "path": "root/Default/Default/invoke-counter2/Default", + "uniqueId": "invoke-counter2" + } + }, + "attribute": [ + { + "name": "id", + "type": "S" + } + ], + "billing_mode": "PAY_PER_REQUEST", + "hash_key": "id", + "name": "wing-counter-invoke-counter2-c8400881" + }, + "invoke-counter3": { + "//": { + "metadata": { + "path": "root/Default/Default/invoke-counter3/Default", + "uniqueId": "invoke-counter3" + } + }, + "attribute": [ + { + "name": "id", + "type": "S" + } + ], + "billing_mode": "PAY_PER_REQUEST", + "hash_key": "id", + "name": "wing-counter-invoke-counter3-c8668bff" } } } diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_test_sim.md index a040889a3b1..78fd5318735 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_test_sim.md @@ -2,14 +2,9 @@ ## stdout.log ```log -pass ─ wait-until.test.wsim » root/env0/test:waitUntil returns true if the predicate is met immediately -pass ─ wait-until.test.wsim » root/env1/test:waitUntil throws if the predicate is never met -pass ─ wait-until.test.wsim » root/env2/test:waitUntil returns false if the predicate is never met and 'throws: false' is set -pass ─ wait-until.test.wsim » root/env3/test:waitUntil returns true if the predicate is met after some time waiting -pass ─ wait-until.test.wsim » root/env4/test:waitUntil with custom props -pass ─ wait-until.test.wsim » root/env5/test:throwing exception from predicate should throw immediately +pass ─ wait-until.test.wsim » root/env0/test:waitUntil -Tests 6 passed (6) +Tests 1 passed (1) Snapshots 1 skipped Test Files 1 passed (1) Duration