diff --git a/apps/wing-console/console/app/demo/index.w b/apps/wing-console/console/app/demo/index.w index 9df6c86afb6..d1e914a9bf4 100644 --- a/apps/wing-console/console/app/demo/index.w +++ b/apps/wing-console/console/app/demo/index.w @@ -1,6 +1,5 @@ bring cloud; bring ex; -// bring redis; let bucket = new cloud.Bucket(); let queue = new cloud.Queue(); @@ -46,7 +45,7 @@ topic.onMessage(inflight (message: str): str => { return message; }); -// let r = new redis.Redis(); +// let r = new ex.Redis(); // new cloud.Function(inflight (message :str) :str => { // log("${r.url()}"); // r.set("wing", message); diff --git a/apps/wing-console/console/design-system/src/attribute.tsx b/apps/wing-console/console/design-system/src/attribute.tsx index 11c77f688a9..cb1321f7f13 100644 --- a/apps/wing-console/console/design-system/src/attribute.tsx +++ b/apps/wing-console/console/design-system/src/attribute.tsx @@ -10,6 +10,7 @@ interface AttributeProps { type?: "url"; url?: string; noLeftPadding?: boolean; + centerLabel?: boolean; dataTestId?: string; } @@ -20,6 +21,7 @@ export const Attribute = ({ url, children, noLeftPadding = false, + centerLabel = true, dataTestId, }: PropsWithChildren) => { const { theme } = useTheme(); @@ -27,8 +29,9 @@ export const Attribute = ({ return (
); }; diff --git a/apps/wing-console/console/server/src/router/app.ts b/apps/wing-console/console/server/src/router/app.ts index 94413b1811a..99e3fa2c19e 100644 --- a/apps/wing-console/console/server/src/router/app.ts +++ b/apps/wing-console/console/server/src/router/app.ts @@ -380,6 +380,79 @@ export const createAppRouter = () => { }), }; }), + "app.edgeMetadata": createProcedure + .input( + z.object({ + edgeId: z.string(), + showTests: z.boolean().optional(), + }), + ) + .query(async ({ ctx, input }) => { + const { edgeId, showTests } = input; + const simulator = await ctx.simulator(); + + const { tree } = simulator.tree().rawData(); + const nodeMap = buildConstructTreeNodeMap(shakeTree(tree)); + + const sourcePath = edgeId.split("->")[0]?.trim(); + const targetPath = edgeId.split("->")[1]?.trim(); + const sourceNode = nodeMap.get(sourcePath); + if (!sourceNode) { + throw new TRPCError({ + code: "NOT_FOUND", + message: "Node was not found.", + }); + } + const connections = + sourceNode?.attributes?.["wing:resource:connections"]; + + const targetResource = connections?.find( + (connection) => connection.resource === targetPath, + ); + const targetNode = nodeMap.get(targetResource?.resource); + + const inflights = sourceNode.display?.hidden + ? [] + : connections + ?.filter(({ direction, resource, relationship }) => { + if (direction !== "outbound") { + return false; + } + + if (resource !== targetPath) { + return false; + } + + if (relationship === "$inflight_init()") { + return false; + } + + if (!showTests && matchTest(sourceNode.path)) { + return false; + } + + return true; + }) + .map((connection) => { + return { + name: connection.relationship, + }; + }) ?? []; + + return { + source: { + id: sourceNode.id, + path: sourceNode.path, + type: getResourceType(sourceNode, simulator), + }, + target: { + id: targetNode?.id ?? "", + path: targetNode?.path ?? "", + type: (targetNode && getResourceType(targetNode, simulator)) ?? "", + }, + inflights, + }; + }), "app.invalidateQuery": createProcedure.subscription(({ ctx }) => { return observable((emit) => { ctx.emitter.on("invalidateQuery", emit.next); 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 672ffe46ccc..b2e2876d185 100644 --- a/apps/wing-console/console/ui/src/features/map-view.tsx +++ b/apps/wing-console/console/ui/src/features/map-view.tsx @@ -12,6 +12,8 @@ export interface MapViewProps { showTests?: boolean; showMapControls?: boolean; onSelectedNodeIdChange?: (id: string | undefined) => void; + selectedEdgeId?: string; + onSelectedEdgeIdChange?: (id: string | undefined) => void; } export const MapView = ({ @@ -19,6 +21,8 @@ export const MapView = ({ showTests, selectedNodeId, onSelectedNodeIdChange, + selectedEdgeId, + onSelectedEdgeIdChange, }: MapViewProps) => { const { mapData } = useMap({ showTests: showTests ?? false }); @@ -41,6 +45,8 @@ export const MapView = ({ edges={mapData?.edges ?? []} selectedNodeId={selectedNodeId} onSelectedNodeIdChange={onSelectedNodeIdChange} + selectedEdgeId={selectedEdgeId} + onSelectedEdgeIdChange={onSelectedEdgeIdChange} node={({ node, depth }) => (
setSelectedItems(nodeId ? [nodeId] : []) } + selectedEdgeId={selectedEdgeId} + onSelectedEdgeIdChange={setSelectedEdgeId} />
@@ -317,6 +323,17 @@ export const DefaultLayout = ({ }} /> )} + {selectedEdgeId && edgeMetadata.data && ( + { + expand(path); + setSelectedItems([path]); + }} + /> + )} 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 2cf1d48f76a..4c2b689cb93 100644 --- a/apps/wing-console/console/ui/src/layout/use-layout.tsx +++ b/apps/wing-console/console/ui/src/layout/use-layout.tsx @@ -1,7 +1,14 @@ import { useTheme } from "@wingconsole/design-system"; import type { LogEntry, LogLevel, State } from "@wingconsole/server"; import { useLoading } from "@wingconsole/use-loading"; -import { useEffect, useState, useContext, useRef, useMemo } from "react"; +import { + useEffect, + useState, + useContext, + useRef, + useMemo, + useCallback, +} from "react"; import { trpc } from "../services/trpc.js"; import { useExplorer } from "../services/use-explorer.js"; @@ -38,6 +45,18 @@ export const useLayout = ({ const [logsTimeFilter, setLogsTimeFilter] = useState(0); + const [selectedEdgeId, setSelectedEdgeId] = useState(); + + const onSelectedItemsChange = useCallback((items: string[]) => { + setSelectedEdgeId(undefined); + setSelectedItems(items); + }, []); + + const onSelectedEdgeIdChange = useCallback((edgeId: string | undefined) => { + onSelectedItemsChange([]); + setSelectedEdgeId(edgeId); + }, []); + const wingfile = trpc["app.wingfile"].useQuery(); const title = useMemo(() => { if (!wingfile.data) { @@ -89,6 +108,16 @@ export const useLayout = ({ }, ); + const edgeMetadata = trpc["app.edgeMetadata"].useQuery( + { + edgeId: selectedEdgeId || "", + showTests, + }, + { + enabled: !!selectedEdgeId, + }, + ); + const { loading, setLoading } = useLoading({ duration: 400, }); @@ -112,7 +141,7 @@ export const useLayout = ({ return { items, selectedItems, - setSelectedItems, + setSelectedItems: onSelectedItemsChange, expandedItems, setExpandedItems, expand, @@ -122,6 +151,9 @@ export const useLayout = ({ errorMessage, loading, metadata, + selectedEdgeId, + setSelectedEdgeId: onSelectedEdgeIdChange, + edgeMetadata, setSearchText, selectedLogTypeFilters, setSelectedLogTypeFilters, 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 ea025cca97c..3c9988b06fd 100644 --- a/apps/wing-console/console/ui/src/services/use-explorer.tsx +++ b/apps/wing-console/console/ui/src/services/use-explorer.tsx @@ -47,12 +47,9 @@ export const useExplorer = () => { const onSelectedItemsChange = useCallback( (selectedItems: string[]) => { - if (selectedItems.length === 0 || !selectedItems[0]) { - return; - } setSelectedItems(selectedItems); setSelectedNode.mutate({ - resourcePath: selectedItems[0], + resourcePath: selectedItems[0] ?? "", }); }, [setSelectedNode, setSelectedItems], diff --git a/apps/wing-console/console/ui/src/ui/edge-item.tsx b/apps/wing-console/console/ui/src/ui/edge-item.tsx index 0c0c2ae5ae1..c4312ff7548 100644 --- a/apps/wing-console/console/ui/src/ui/edge-item.tsx +++ b/apps/wing-console/console/ui/src/ui/edge-item.tsx @@ -1,6 +1,7 @@ import classNames from "classnames"; import { ElkExtendedEdge } from "elkjs/lib/elk.bundled.js"; import { motion } from "framer-motion"; +import { useMemo, useState } from "react"; export const EdgeItem = ({ edge, @@ -10,6 +11,10 @@ export const EdgeItem = ({ highlighted, fade, transitionDuration, + selected, + onMouseEnter, + onMouseLeave, + onClick, }: { edge: ElkExtendedEdge; offset?: { x: number; y: number }; @@ -18,16 +23,23 @@ export const EdgeItem = ({ highlighted?: boolean; fade?: boolean; transitionDuration?: number; + selected?: boolean; + onMouseEnter?: () => void; + onMouseLeave?: () => void; + onClick?: (id: string) => void; }) => { - const d = edge.sections - ?.map((section) => { - const points = - [...(section.bendPoints ?? []), section.endPoint] - ?.map((point) => `L${point.x},${point.y}`) - .join(" ") ?? ""; - return `M${section.startPoint.x},${section.startPoint.y} ${points}`; - }) - .join(" "); + const d = useMemo(() => { + return edge.sections + ?.map((section) => { + const points = + [...(section.bendPoints ?? []), section.endPoint] + ?.map((point) => `L${point.x},${point.y}`) + .join(" ") ?? ""; + + return `M${section.startPoint.x},${section.startPoint.y} ${points}`; + }) + .join(" "); + }, [edge.sections]); const [source] = edge.sources; const [target] = edge.targets; @@ -37,10 +49,10 @@ export const EdgeItem = ({ return ( + onClick?.(edge.id)} + className="opacity-0 pointer-events-auto" + style={{ translateX: offset.x, translateY: offset.y }} + markerStart={`url(#${markerStart})`} + markerEnd={`url(#${markerEnd})`} + d={d} + strokeWidth="8" + /> ); }; diff --git a/apps/wing-console/console/ui/src/ui/edge-metadata.tsx b/apps/wing-console/console/ui/src/ui/edge-metadata.tsx new file mode 100644 index 00000000000..b114b61ba07 --- /dev/null +++ b/apps/wing-console/console/ui/src/ui/edge-metadata.tsx @@ -0,0 +1,159 @@ +import { + ArrowPathRoundedSquareIcon, + ArrowsRightLeftIcon, +} from "@heroicons/react/24/outline"; +import { + useTheme, + InspectorSection, + ScrollableArea, + ResourceIcon, + Pill, + Tree, + Attribute, +} from "@wingconsole/design-system"; +import classNames from "classnames"; +import { useMemo, useState } from "react"; + +import { MetadataNode } from "./resource-metadata.js"; + +export interface EdgeMetadataProps { + source: MetadataNode; + target: MetadataNode; + inflights: { name: string }[]; + onConnectionNodeClick?: (path: string) => void; +} + +export const EdgeMetadata = ({ + source, + target, + inflights, + onConnectionNodeClick, +}: EdgeMetadataProps) => { + const { theme } = useTheme(); + + const [openInspectorSections, setOpenInspectorSections] = useState(() => [ + "properties", + ]); + + const toggleInspectorSection = (section: string) => { + setOpenInspectorSections(([...sections]) => { + const index = sections.indexOf(section); + if (index === -1) { + sections.push(section); + return sections; + } else { + sections.splice(index, 1); + return sections; + } + }); + }; + + const entries = useMemo(() => { + return inflights.map((inflight) => { + return { + id: inflight.name, + name: inflight.name, + }; + }); + }, [inflights]); + + return ( + +
+
+
+ +
+ +
+
Relationship
+
+ Relationship +
+
+
+
+ + toggleInspectorSection("properties")} + headingClassName="pl-2" + > +
+ + + + + + + +
+ +
+ {}} + className="min-h-[6rem] h-48 overflow-y-auto resize-y" + /> +
+
+
+
+
+
+
+ ); +}; diff --git a/apps/wing-console/console/ui/src/ui/elk-map.tsx b/apps/wing-console/console/ui/src/ui/elk-map.tsx index 0359db9dc41..0b98749fe7a 100644 --- a/apps/wing-console/console/ui/src/ui/elk-map.tsx +++ b/apps/wing-console/console/ui/src/ui/elk-map.tsx @@ -123,6 +123,8 @@ export interface ElkMapProps { node: FC>; selectedNodeId?: string; onSelectedNodeIdChange?: (id: string) => void; + selectedEdgeId?: string; + onSelectedEdgeIdChange?: (id: string) => void; } export const ElkMap = ({ @@ -131,6 +133,8 @@ export const ElkMap = ({ node: NodeItem, selectedNodeId, onSelectedNodeIdChange, + selectedEdgeId, + onSelectedEdgeIdChange, }: ElkMapProps) => { const { nodeRecord } = useNodeStaticData({ nodes, @@ -248,7 +252,10 @@ export const ElkMap = ({ height: node.height ?? 0, offset, depth, - edges: edges ?? [], + edges: + edges?.filter( + (edge) => edge.source === node.id || edge.target === node.id, + ) ?? [], data, }); } @@ -458,21 +465,33 @@ export const ElkMap = ({ const isNodeHighlighted = isHighlighted(edge.sources[0]!) || isHighlighted(edge.targets[0]!); - const isSelected = + const isEdgeHighlighted = edge.sources[0] === selectedNodeId || edge.targets[0] === selectedNodeId; const visible = !highlighted || isNodeHighlighted; + const selected = edge.id === selectedEdgeId; + return ( { + setHighlighted(edge.sources[0] ?? edge.targets[0]); + }} + onMouseLeave={() => setHighlighted(undefined)} + onClick={onSelectedEdgeIdChange} /> ); })} diff --git a/examples/tests/sdk_tests/bucket/events.w b/examples/tests/sdk_tests/bucket/events.w index 3362fac3029..0439a9ee088 100644 --- a/examples/tests/sdk_tests/bucket/events.w +++ b/examples/tests/sdk_tests/bucket/events.w @@ -29,19 +29,19 @@ let logHistory = inflight (key: str, operation: str, source: Source) => { b.onDelete(inflight (key: str) => { - logHistory(key, "DELETE", Source.anyEvent); + logHistory(key, "onDelete()", Source.anyEvent); }); b.onUpdate(inflight (key: str) => { - logHistory(key, "UPDATE", Source.anyEvent); + logHistory(key, "onUpdate()", Source.anyEvent); }); b.onCreate(inflight (key: str) => { - logHistory(key, "CREATE", Source.anyEvent); + logHistory(key, "onCreate()", Source.anyEvent); }); b.onEvent(inflight (key: str, event: cloud.BucketEventType) => { - logHistory(key, "${event}", Source.onEvent); + logHistory(key, "${event}()", Source.onEvent); }); let wait = inflight (pred: inflight (): bool): bool => { @@ -92,19 +92,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 - assert(wait(checkHitCount(key: "a", type: "CREATE", source: Source.anyEvent, count: 1))); - assert(wait(checkHitCount(key: "b", type: "CREATE", source: Source.anyEvent, count: 1))); - assert(wait(checkHitCount(key: "c", type: "CREATE", source: Source.anyEvent, count: 1))); + assert(wait(checkHitCount(key: "a", type: "onCreate()", source: Source.anyEvent, count: 1))); + assert(wait(checkHitCount(key: "b", type: "onCreate()", source: Source.anyEvent, count: 1))); + assert(wait(checkHitCount(key: "c", type: "onCreate()", source: Source.anyEvent, count: 1))); - assert(wait(checkHitCount(key: "a", type: "CREATE", source: Source.onEvent, count: 1))); - assert(wait(checkHitCount(key: "b", type: "CREATE", source: Source.onEvent, count: 1))); - assert(wait(checkHitCount(key: "c", type: "CREATE", source: Source.onEvent, count: 1))); + assert(wait(checkHitCount(key: "a", type: "onCreate()", source: Source.onEvent, count: 1))); + assert(wait(checkHitCount(key: "b", type: "onCreate()", source: Source.onEvent, count: 1))); + assert(wait(checkHitCount(key: "c", type: "onCreate()", source: Source.onEvent, count: 1))); - assert(wait(checkHitCount(key: "b", type: "UPDATE", source: Source.anyEvent, count: 1))); - assert(wait(checkHitCount(key: "c", type: "DELETE", source: Source.anyEvent, count: 1))); + assert(wait(checkHitCount(key: "b", type: "onUpdate()", source: Source.anyEvent, count: 1))); + assert(wait(checkHitCount(key: "c", type: "onDelete()", source: Source.anyEvent, count: 1))); - assert(wait(checkHitCount(key: "b", type: "UPDATE", source: Source.onEvent, count: 1))); - assert(wait(checkHitCount(key: "c", type: "DELETE", source: Source.onEvent, count: 1))); + assert(wait(checkHitCount(key: "b", type: "onUpdate()", source: Source.onEvent, count: 1))); + assert(wait(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/wingsdk/src/cloud/bucket.ts b/libs/wingsdk/src/cloud/bucket.ts index be952e1f32b..f9b0fb0fef6 100644 --- a/libs/wingsdk/src/cloud/bucket.ts +++ b/libs/wingsdk/src/cloud/bucket.ts @@ -81,7 +81,7 @@ export abstract class Bucket extends Resource { protected createTopic(actionType: BucketEventType): Topic { const topic = Topic._newTopic( this, - `${this.node.id}-on_${actionType.toLowerCase()}` + `${this.node.id}-${actionType.toLowerCase()}` ); this.node.addDependency(topic); @@ -89,7 +89,7 @@ export abstract class Bucket extends Resource { Resource.addConnection({ from: this, to: topic, - relationship: actionType, + relationship: `${actionType}()`, }); return topic; @@ -385,15 +385,15 @@ export enum BucketEventType { /** * Create */ - CREATE = "CREATE", + CREATE = "onCreate", /** * Delete */ - DELETE = "DELETE", + DELETE = "onDelete", /** * Update */ - UPDATE = "UPDATE", + UPDATE = "onUpdate", } /** diff --git a/libs/wingsdk/src/std/resource.ts b/libs/wingsdk/src/std/resource.ts index d55d656b29d..2a598f855df 100644 --- a/libs/wingsdk/src/std/resource.ts +++ b/libs/wingsdk/src/std/resource.ts @@ -312,7 +312,7 @@ export abstract class Resource extends Construct implements IResource { Resource.addConnection({ from: host, to: this, - relationship: op, + relationship: op.endsWith("()") ? op : `${op}()`, }); } } diff --git a/libs/wingsdk/src/target-awscdk/bucket.ts b/libs/wingsdk/src/target-awscdk/bucket.ts index bfcb25fabdf..3432574f563 100644 --- a/libs/wingsdk/src/target-awscdk/bucket.ts +++ b/libs/wingsdk/src/target-awscdk/bucket.ts @@ -98,7 +98,7 @@ export class Bucket extends cloud.Bucket { Resource.addConnection({ from: this, to: fn, - relationship: cloud.BucketEventType.CREATE, + relationship: "onCreate()", }); this.bucket.addEventNotification( @@ -116,7 +116,7 @@ export class Bucket extends cloud.Bucket { Resource.addConnection({ from: this, to: fn, - relationship: cloud.BucketEventType.DELETE, + relationship: "onDelete()", }); this.bucket.addEventNotification( @@ -134,7 +134,7 @@ export class Bucket extends cloud.Bucket { Resource.addConnection({ from: this, to: fn, - relationship: cloud.BucketEventType.UPDATE, + relationship: "onUpdate()", }); this.bucket.addEventNotification( @@ -152,7 +152,7 @@ export class Bucket extends cloud.Bucket { Resource.addConnection({ from: this, to: fn, - relationship: cloud.BucketEventType.CREATE, + relationship: "onCreate()", }); this.bucket.addEventNotification( EVENTS[cloud.BucketEventType.CREATE], @@ -162,7 +162,7 @@ export class Bucket extends cloud.Bucket { Resource.addConnection({ from: this, to: fn, - relationship: cloud.BucketEventType.DELETE, + relationship: "onDelete()", }); this.bucket.addEventNotification( EVENTS[cloud.BucketEventType.DELETE], @@ -172,7 +172,7 @@ export class Bucket extends cloud.Bucket { Resource.addConnection({ from: this, to: fn, - relationship: cloud.BucketEventType.UPDATE, + relationship: "onUpdate()", }); this.bucket.addEventNotification( EVENTS[cloud.BucketEventType.UPDATE], diff --git a/libs/wingsdk/src/target-awscdk/queue.ts b/libs/wingsdk/src/target-awscdk/queue.ts index ad0bed95173..057fd7f3dee 100644 --- a/libs/wingsdk/src/target-awscdk/queue.ts +++ b/libs/wingsdk/src/target-awscdk/queue.ts @@ -73,7 +73,7 @@ export class Queue extends cloud.Queue { Resource.addConnection({ from: this, to: fn, - relationship: "consumer", + relationship: "setConsumer()", }); return fn; diff --git a/libs/wingsdk/src/target-awscdk/schedule.ts b/libs/wingsdk/src/target-awscdk/schedule.ts index 55d4bc7f700..99643f73678 100644 --- a/libs/wingsdk/src/target-awscdk/schedule.ts +++ b/libs/wingsdk/src/target-awscdk/schedule.ts @@ -97,7 +97,7 @@ export class Schedule extends cloud.Schedule { Resource.addConnection({ from: this, to: fn, - relationship: "on_tick", + relationship: "onTick()", }); return fn; diff --git a/libs/wingsdk/src/target-awscdk/topic.ts b/libs/wingsdk/src/target-awscdk/topic.ts index 55a29219cb5..30d396f850c 100644 --- a/libs/wingsdk/src/target-awscdk/topic.ts +++ b/libs/wingsdk/src/target-awscdk/topic.ts @@ -63,7 +63,7 @@ export class Topic extends cloud.Topic { Resource.addConnection({ from: this, to: fn, - relationship: "on_message", + relationship: "onMessage()", }); return fn; diff --git a/libs/wingsdk/src/target-sim/api.ts b/libs/wingsdk/src/target-sim/api.ts index 5cc155c7b73..1bd70ce5f3f 100644 --- a/libs/wingsdk/src/target-sim/api.ts +++ b/libs/wingsdk/src/target-sim/api.ts @@ -79,7 +79,7 @@ export class Api extends cloud.Api implements ISimulatorResource { Resource.addConnection({ from: this, to: fn, - relationship: `on_${method.toLowerCase()}_request`, + relationship: `${method.toLowerCase()}()`, }); } diff --git a/libs/wingsdk/src/target-sim/queue.ts b/libs/wingsdk/src/target-sim/queue.ts index b86e97a4d9b..44841aaff4e 100644 --- a/libs/wingsdk/src/target-sim/queue.ts +++ b/libs/wingsdk/src/target-sim/queue.ts @@ -89,7 +89,7 @@ export class Queue extends cloud.Queue implements ISimulatorResource { Resource.addConnection({ from: this, to: fn, - relationship: "consumer", + relationship: "setConsumer()", }); return fn; diff --git a/libs/wingsdk/src/target-sim/schedule.ts b/libs/wingsdk/src/target-sim/schedule.ts index 43184abab4f..f80db48a8d4 100644 --- a/libs/wingsdk/src/target-sim/schedule.ts +++ b/libs/wingsdk/src/target-sim/schedule.ts @@ -59,7 +59,7 @@ export class Schedule extends cloud.Schedule implements ISimulatorResource { Resource.addConnection({ from: this, to: fn, - relationship: "on_tick", + relationship: "onTick()", }); return fn; diff --git a/libs/wingsdk/src/target-sim/service.ts b/libs/wingsdk/src/target-sim/service.ts index 84b94cf9c53..c990dea1ee7 100644 --- a/libs/wingsdk/src/target-sim/service.ts +++ b/libs/wingsdk/src/target-sim/service.ts @@ -29,7 +29,7 @@ export class Service extends cloud.Service implements ISimulatorResource { Resource.addConnection({ from: this, to: onStartFunction, - relationship: "on_start", + relationship: "onStart()", }); // On Stop Handler @@ -43,7 +43,7 @@ export class Service extends cloud.Service implements ISimulatorResource { Resource.addConnection({ from: this, to: onStopFunction, - relationship: "on_stop", + relationship: "onStop()", }); } } diff --git a/libs/wingsdk/src/target-sim/topic.ts b/libs/wingsdk/src/target-sim/topic.ts index f40e2dc925a..c9ddfc81bba 100644 --- a/libs/wingsdk/src/target-sim/topic.ts +++ b/libs/wingsdk/src/target-sim/topic.ts @@ -50,7 +50,7 @@ export class Topic extends cloud.Topic implements ISimulatorResource { Resource.addConnection({ from: this, to: fn, - relationship: "on_message", + relationship: "onMessage()", }); return fn; diff --git a/libs/wingsdk/src/target-tf-aws/api.ts b/libs/wingsdk/src/target-tf-aws/api.ts index 55c6561e4e5..b43767118c5 100644 --- a/libs/wingsdk/src/target-tf-aws/api.ts +++ b/libs/wingsdk/src/target-tf-aws/api.ts @@ -73,7 +73,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_get_request", + relationship: "get()", }); } @@ -100,7 +100,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_post_request", + relationship: "post()", }); } @@ -127,7 +127,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_put_request", + relationship: "put()", }); } @@ -154,7 +154,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_delete_request", + relationship: "delete()", }); } @@ -181,7 +181,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_patch_request", + relationship: "patch()", }); } @@ -208,7 +208,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_options_request", + relationship: "options()", }); } @@ -235,7 +235,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_head_request", + relationship: "head()", }); } @@ -262,7 +262,7 @@ export class Api extends cloud.Api { Resource.addConnection({ from: this, to: fn, - relationship: "on_connect_request", + relationship: "connect()", }); } diff --git a/libs/wingsdk/src/target-tf-aws/queue.ts b/libs/wingsdk/src/target-tf-aws/queue.ts index 4c675ce9c18..be63dce2bab 100644 --- a/libs/wingsdk/src/target-tf-aws/queue.ts +++ b/libs/wingsdk/src/target-tf-aws/queue.ts @@ -93,7 +93,7 @@ export class Queue extends cloud.Queue { Resource.addConnection({ from: this, to: fn, - relationship: "consumer", + relationship: "setConsumer()", }); return fn; diff --git a/libs/wingsdk/src/target-tf-aws/schedule.ts b/libs/wingsdk/src/target-tf-aws/schedule.ts index 2ede3253258..3e921f42be1 100644 --- a/libs/wingsdk/src/target-tf-aws/schedule.ts +++ b/libs/wingsdk/src/target-tf-aws/schedule.ts @@ -81,7 +81,7 @@ export class Schedule extends cloud.Schedule { Resource.addConnection({ from: this, to: fn, - relationship: "on_tick", + relationship: "onTick()", }); return fn; diff --git a/libs/wingsdk/src/target-tf-aws/topic.ts b/libs/wingsdk/src/target-tf-aws/topic.ts index 776fb7ce9e2..1fa14664799 100644 --- a/libs/wingsdk/src/target-tf-aws/topic.ts +++ b/libs/wingsdk/src/target-tf-aws/topic.ts @@ -91,7 +91,7 @@ export class Topic extends cloud.Topic { Resource.addConnection({ from: this, to: fn, - relationship: "on_message", + relationship: "onMessage()", }); return fn; 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 6dfa2e45577..3bc8b16976a 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap @@ -140,7 +140,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -166,7 +166,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -347,7 +347,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -373,7 +373,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -554,7 +554,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -580,7 +580,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -761,7 +761,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -787,7 +787,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -968,7 +968,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -994,7 +994,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -1277,43 +1277,43 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, { "direction": "outbound", "implicit": false, - "relationship": "on_post_request", + "relationship": "post()", "resource": "root/my_api/OnRequestHandler-e645076f", }, { "direction": "outbound", "implicit": false, - "relationship": "on_put_request", + "relationship": "put()", "resource": "root/my_api/OnRequestHandler-e645076f", }, { "direction": "outbound", "implicit": false, - "relationship": "on_delete_request", + "relationship": "delete()", "resource": "root/my_api/OnRequestHandler-e645076f", }, { "direction": "outbound", "implicit": false, - "relationship": "on_head_request", + "relationship": "head()", "resource": "root/my_api/OnRequestHandler-e645076f", }, { "direction": "outbound", "implicit": false, - "relationship": "on_options_request", + "relationship": "options()", "resource": "root/my_api/OnRequestHandler-e645076f", }, { "direction": "outbound", "implicit": false, - "relationship": "on_patch_request", + "relationship": "patch()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -1339,43 +1339,43 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, { "direction": "inbound", "implicit": false, - "relationship": "on_post_request", + "relationship": "post()", "resource": "root/my_api", }, { "direction": "inbound", "implicit": false, - "relationship": "on_put_request", + "relationship": "put()", "resource": "root/my_api", }, { "direction": "inbound", "implicit": false, - "relationship": "on_delete_request", + "relationship": "delete()", "resource": "root/my_api", }, { "direction": "inbound", "implicit": false, - "relationship": "on_head_request", + "relationship": "head()", "resource": "root/my_api", }, { "direction": "inbound", "implicit": false, - "relationship": "on_options_request", + "relationship": "options()", "resource": "root/my_api", }, { "direction": "inbound", "implicit": false, - "relationship": "on_patch_request", + "relationship": "patch()", "resource": "root/my_api", }, ], @@ -1554,7 +1554,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -1580,7 +1580,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -1836,13 +1836,13 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-7c48a9f0", }, { "direction": "outbound", "implicit": false, - "relationship": "on_post_request", + "relationship": "post()", "resource": "root/my_api/OnRequestHandler-f6d90a7f", }, ], @@ -1882,7 +1882,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -1904,7 +1904,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_post_request", + "relationship": "post()", "resource": "root/my_api", }, ], @@ -2162,13 +2162,13 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-7c48a9f0", }, { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-f6d90a7f", }, ], @@ -2208,7 +2208,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -2230,7 +2230,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -2411,7 +2411,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -2437,7 +2437,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -2627,7 +2627,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -2653,7 +2653,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_get_request", + "relationship": "get()", "resource": "root/my_api", }, ], @@ -2834,7 +2834,7 @@ return class Handler { { "direction": "outbound", "implicit": false, - "relationship": "on_post_request", + "relationship": "post()", "resource": "root/my_api/OnRequestHandler-e645076f", }, ], @@ -2860,7 +2860,7 @@ return class Handler { { "direction": "inbound", "implicit": false, - "relationship": "on_post_request", + "relationship": "post()", "resource": "root/my_api", }, ], 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 83d1fa426d7..42d032ded2b 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 @@ -111,13 +111,13 @@ bucket: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, ], @@ -139,13 +139,13 @@ bucket: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, ], @@ -167,13 +167,13 @@ bucket: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, ], @@ -196,7 +196,7 @@ bucket: (function(env) { { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/HelloWorld/Queue-SetConsumer-401ee792", }, ], @@ -234,43 +234,43 @@ bucket: (function(env) { { "direction": "outbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/HelloWorld/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/HelloWorld/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/HelloWorld/Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/HelloWorld/Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/HelloWorld/Processor", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/HelloWorld/Processor", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/HelloWorld/Queue", }, ], 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 d3f62187586..c54e3cf0b60 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 @@ -200,7 +200,7 @@ my_buckets: [(function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -222,7 +222,7 @@ my_buckets: [(function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -244,13 +244,13 @@ my_buckets: [(function(env) { { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B1", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B2", }, ], @@ -1160,7 +1160,7 @@ my_map: new Map([[\\"foo\\",(function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -1182,7 +1182,7 @@ my_map: new Map([[\\"foo\\",(function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -1204,13 +1204,13 @@ my_map: new Map([[\\"foo\\",(function(env) { { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B1", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B2", }, ], @@ -2064,7 +2064,7 @@ my_struct: {bucky: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -2086,7 +2086,7 @@ my_struct: {bucky: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -2108,7 +2108,7 @@ my_struct: {bucky: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -2130,7 +2130,7 @@ my_struct: {bucky: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -2152,7 +2152,7 @@ my_struct: {bucky: (function(env) { { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Function", }, ], @@ -2174,31 +2174,31 @@ my_struct: {bucky: (function(env) { { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B1", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B2", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B3", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B4", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/B5", }, ], 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 a3ca99e3a5c..6aaef9043bd 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap @@ -166,13 +166,13 @@ async handle(message) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_queue-SetConsumer-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -211,7 +211,7 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -249,19 +249,19 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue", }, ], @@ -398,13 +398,13 @@ async handle(message) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_queue-SetConsumer-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -443,7 +443,7 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -481,19 +481,19 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue", }, ], @@ -634,13 +634,13 @@ async handle(message) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_queue-SetConsumer-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -679,7 +679,7 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -717,19 +717,19 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue", }, ], @@ -956,13 +956,13 @@ async handle(message) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_queue-SetConsumer-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -1001,7 +1001,7 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -1039,19 +1039,19 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue", }, ], @@ -1187,13 +1187,13 @@ async handle(message) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_queue-SetConsumer-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -1232,7 +1232,7 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue-SetConsumer-e645076f", }, ], @@ -1270,19 +1270,19 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/my_queue", }, ], 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 07aa6ad5f4b..01f111d246d 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap @@ -140,13 +140,13 @@ console.log(\\"Hello from schedule!\\"); { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_schedule-OnTick-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_schedule-OnTick-e645076f", }, ], @@ -185,7 +185,7 @@ console.log(\\"Hello from schedule!\\"); { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/my_schedule-OnTick-e645076f", }, ], @@ -223,19 +223,19 @@ console.log(\\"Hello from schedule!\\"); { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/my_schedule", }, ], @@ -348,13 +348,13 @@ console.log(\\"Hello from schedule!\\"); { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_schedule-OnTick-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_schedule-OnTick-e645076f", }, ], @@ -393,7 +393,7 @@ console.log(\\"Hello from schedule!\\"); { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/my_schedule-OnTick-e645076f", }, ], @@ -431,19 +431,19 @@ console.log(\\"Hello from schedule!\\"); { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/my_schedule", }, ], @@ -556,13 +556,13 @@ console.log(\\"Hello from schedule!\\"); { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_schedule-OnTick-e645076f", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_schedule-OnTick-e645076f", }, ], @@ -601,7 +601,7 @@ console.log(\\"Hello from schedule!\\"); { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/my_schedule-OnTick-e645076f", }, ], @@ -639,19 +639,19 @@ console.log(\\"Hello from schedule!\\"); { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/my_schedule", }, ], 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 95d826d30b6..d40cec64967 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap @@ -61,13 +61,13 @@ async handle(message) { { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/my_service-ServiceOnStartef2b13b9", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/my_service-ServiceOnStartef2b13b9", }, ], @@ -106,7 +106,7 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "on_start", + "relationship": "onStart()", "resource": "root/my_service-ServiceOnStartef2b13b9", }, ], @@ -142,19 +142,19 @@ async handle(message) { { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/OnStartHandler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/OnStartHandler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_start", + "relationship": "onStart()", "resource": "root/my_service", }, ], 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 1f88d6681b4..437ef215a61 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 @@ -500,36 +500,36 @@ exports[`bucket with onCreate method 1`] = ` }, \\"resource\\": { \\"aws_iam_role\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F\\": { \\"assume_role_policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Action\\\\\\":\\\\\\"sts:AssumeRole\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"lambda.amazonaws.com\\\\\\"},\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\"}]}\\" } }, \\"aws_iam_role_policy\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRolePolicy_E00CE47F\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRolePolicy_97F83F8D\\": { \\"policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":\\\\\\"none:null\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"*\\\\\\"}]}\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F.name}\\" } }, \\"aws_iam_role_policy_attachment\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRolePolicyAttachment_02930F2C\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRolePolicyAttachment_66038538\\": { \\"policy_arn\\": \\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F.name}\\" } }, \\"aws_lambda_function\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_ACD91BBA\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_21FC0692\\": { \\"environment\\": { \\"variables\\": { - \\"WING_FUNCTION_NAME\\": \\"my_bucket-on_create-OnMessage-2c90a36b-c87c1659\\" + \\"WING_FUNCTION_NAME\\": \\"my_bucket-oncreate-OnMessage-1000fbe7-c8902807\\" } }, - \\"function_name\\": \\"my_bucket-on_create-OnMessage-2c90a36b-c87c1659\\", + \\"function_name\\": \\"my_bucket-oncreate-OnMessage-1000fbe7-c8902807\\", \\"handler\\": \\"index.handler\\", \\"publish\\": true, - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124.arn}\\", + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F.arn}\\", \\"runtime\\": \\"nodejs18.x\\", \\"s3_bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", - \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_S3Object_94BFE334.key}\\", + \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_S3Object_0EFF5E1C.key}\\", \\"timeout\\": 30, \\"vpc_config\\": { \\"security_group_ids\\": [], @@ -538,11 +538,11 @@ exports[`bucket with onCreate method 1`] = ` } }, \\"aws_lambda_permission\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190_575B3554\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3_9B4C34C5\\": { \\"action\\": \\"lambda:InvokeFunction\\", - \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_ACD91BBA.function_name}\\", + \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_21FC0692.function_name}\\", \\"principal\\": \\"sns.amazonaws.com\\", - \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\" + \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\" } }, \\"aws_s3_bucket\\": { @@ -558,15 +558,15 @@ 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_my_bucket-on_create_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_4338D29D\\" + \\"aws_sns_topic_policy.my_bucket_my_bucket-oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_DC469583\\" ], \\"topic\\": [ { \\"events\\": [ \\"s3:ObjectCreated:Put\\" ], - \\"id\\": \\"on-create-notification\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\" + \\"id\\": \\"on-oncreate-notification\\", + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\" } ] } @@ -602,28 +602,28 @@ exports[`bucket with onCreate method 1`] = ` } }, \\"aws_s3_object\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_S3Object_94BFE334\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_S3Object_0EFF5E1C\\": { \\"bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", \\"key\\": \\"\\", \\"source\\": \\"\\" } }, \\"aws_sns_topic\\": { - \\"my_bucket_my_bucket-on_create_CA4D65D3\\": { - \\"name\\": \\"my_bucket-on_create-c8ab9ab8\\" + \\"my_bucket_my_bucket-oncreate_820372FA\\": { + \\"name\\": \\"my_bucket-oncreate-c81e8728\\" } }, \\"aws_sns_topic_policy\\": { - \\"my_bucket_my_bucket-on_create_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_4338D29D\\": { - \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\", - \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" + \\"my_bucket_my_bucket-oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_DC469583\\": { + \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\", + \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" } }, \\"aws_sns_topic_subscription\\": { - \\"my_bucket_my_bucket-on_create_my_bucket-on_create-TopicSubscription-2c90a36b_155F87CA\\": { - \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_ACD91BBA.arn}\\", + \\"my_bucket_my_bucket-oncreate_my_bucket-oncreate-TopicSubscription-1000fbe7_9F6DDCDF\\": { + \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_21FC0692.arn}\\", \\"protocol\\": \\"lambda\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\" + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\" } } } @@ -686,14 +686,14 @@ exports[`bucket with onCreate method 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, ], }, @@ -715,8 +715,8 @@ exports[`bucket with onCreate method 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "CREATE", - "resource": "root/Default/my_bucket/my_bucket-on_create", + "relationship": "onCreate()", + "resource": "root/Default/my_bucket/my_bucket-oncreate", }, ], }, @@ -761,20 +761,20 @@ exports[`bucket with onCreate method 2`] = ` "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, - "my_bucket-on_create": { + "my_bucket-oncreate": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "CREATE", + "relationship": "onCreate()", "resource": "root/Default/my_bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, ], }, @@ -785,7 +785,7 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_create/Default", + "path": "root/Default/my_bucket/my_bucket-oncreate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -793,15 +793,15 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/my_bucket-on_create/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/my_bucket-oncreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, - "my_bucket-on_create-TopicSubscription-2c90a36b": { + "my_bucket-oncreate-TopicSubscription-1000fbe7": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "my_bucket-on_create-TopicSubscription-2c90a36b", - "path": "root/Default/my_bucket/my_bucket-on_create/my_bucket-on_create-TopicSubscription-2c90a36b", + "id": "my_bucket-oncreate-TopicSubscription-1000fbe7", + "path": "root/Default/my_bucket/my_bucket-oncreate/my_bucket-oncreate-TopicSubscription-1000fbe7", }, }, "constructInfo": { @@ -812,41 +812,41 @@ exports[`bucket with onCreate method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "my_bucket-on_create", - "path": "root/Default/my_bucket/my_bucket-on_create", + "id": "my_bucket-oncreate", + "path": "root/Default/my_bucket/my_bucket-oncreate", }, - "my_bucket-on_create-OnMessage-2c90a36b": { + "my_bucket-oncreate-OnMessage-1000fbe7": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket-on_create-eventHandler-9eade8f6", + "relationship": "handle()", + "resource": "root/Default/my_bucket-oncreate-eventHandler-9eade8f6", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket-on_create-eventHandler-9eade8f6", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket-oncreate-eventHandler-9eade8f6", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_create", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-oncreate", }, ], }, @@ -857,7 +857,7 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/Asset", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/Asset", }, "Default": { "constructInfo": { @@ -865,7 +865,7 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/Default", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/Default", }, "IamRole": { "constructInfo": { @@ -873,7 +873,7 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/IamRole", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -881,7 +881,7 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/IamRolePolicy", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -889,15 +889,15 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/IamRolePolicyAttachment", }, - "InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190": { + "InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190", + "id": "InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3", }, "S3Object": { "constructInfo": { @@ -905,7 +905,7 @@ exports[`bucket with onCreate method 2`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/S3Object", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/S3Object", }, }, "constructInfo": { @@ -916,10 +916,10 @@ exports[`bucket with onCreate method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "my_bucket-on_create-OnMessage-2c90a36b", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "id": "my_bucket-oncreate-OnMessage-1000fbe7", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, - "my_bucket-on_create-OnMessageHandler-2c90a36b": { + "my_bucket-oncreate-OnMessageHandler-1000fbe7": { "attributes": { "wing:resource:connections": [], }, @@ -930,8 +930,8 @@ exports[`bucket with onCreate method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_create-OnMessageHandler-2c90a36b", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessageHandler-2c90a36b", + "id": "my_bucket-oncreate-OnMessageHandler-1000fbe7", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessageHandler-1000fbe7", }, }, "constructInfo": { @@ -945,20 +945,20 @@ exports[`bucket with onCreate method 2`] = ` "id": "my_bucket", "path": "root/Default/my_bucket", }, - "my_bucket-on_create-eventHandler-9eade8f6": { + "my_bucket-oncreate-eventHandler-9eade8f6": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, ], }, @@ -969,8 +969,8 @@ exports[`bucket with onCreate method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_create-eventHandler-9eade8f6", - "path": "root/Default/my_bucket-on_create-eventHandler-9eade8f6", + "id": "my_bucket-oncreate-eventHandler-9eade8f6", + "path": "root/Default/my_bucket-oncreate-eventHandler-9eade8f6", }, }, "constructInfo": { @@ -1017,36 +1017,36 @@ exports[`bucket with onDelete method 1`] = ` }, \\"resource\\": { \\"aws_iam_role\\": { - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065\\": { \\"assume_role_policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Action\\\\\\":\\\\\\"sts:AssumeRole\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"lambda.amazonaws.com\\\\\\"},\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\"}]}\\" } }, \\"aws_iam_role_policy\\": { - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRolePolicy_860049B2\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRolePolicy_9B9E2210\\": { \\"policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":\\\\\\"none:null\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"*\\\\\\"}]}\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065.name}\\" } }, \\"aws_iam_role_policy_attachment\\": { - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRolePolicyAttachment_2EF1321B\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRolePolicyAttachment_DF48669C\\": { \\"policy_arn\\": \\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065.name}\\" } }, \\"aws_lambda_function\\": { - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_4AC25BA6\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_F0204E1B\\": { \\"environment\\": { \\"variables\\": { - \\"WING_FUNCTION_NAME\\": \\"my_bucket-on_delete-OnMessage-f22c8a47-c8e50f60\\" + \\"WING_FUNCTION_NAME\\": \\"my_bucket-ondelete-OnMessage-107fa7e8-c8a44ddc\\" } }, - \\"function_name\\": \\"my_bucket-on_delete-OnMessage-f22c8a47-c8e50f60\\", + \\"function_name\\": \\"my_bucket-ondelete-OnMessage-107fa7e8-c8a44ddc\\", \\"handler\\": \\"index.handler\\", \\"publish\\": true, - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4.arn}\\", + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065.arn}\\", \\"runtime\\": \\"nodejs18.x\\", \\"s3_bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", - \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_S3Object_621A589A.key}\\", + \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_S3Object_E3EEAE82.key}\\", \\"timeout\\": 30, \\"vpc_config\\": { \\"security_group_ids\\": [], @@ -1055,11 +1055,11 @@ exports[`bucket with onDelete method 1`] = ` } }, \\"aws_lambda_permission\\": { - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc_B8B37FEC\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba_ACC48827\\": { \\"action\\": \\"lambda:InvokeFunction\\", - \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_4AC25BA6.function_name}\\", + \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_F0204E1B.function_name}\\", \\"principal\\": \\"sns.amazonaws.com\\", - \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\" + \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\" } }, \\"aws_s3_bucket\\": { @@ -1075,15 +1075,15 @@ 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_my_bucket-on_delete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_52CABBF1\\" + \\"aws_sns_topic_policy.my_bucket_my_bucket-ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_87361222\\" ], \\"topic\\": [ { \\"events\\": [ \\"s3:ObjectRemoved:*\\" ], - \\"id\\": \\"on-delete-notification\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\" + \\"id\\": \\"on-ondelete-notification\\", + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\" } ] } @@ -1119,28 +1119,28 @@ exports[`bucket with onDelete method 1`] = ` } }, \\"aws_s3_object\\": { - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_S3Object_621A589A\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_S3Object_E3EEAE82\\": { \\"bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", \\"key\\": \\"\\", \\"source\\": \\"\\" } }, \\"aws_sns_topic\\": { - \\"my_bucket_my_bucket-on_delete_C370DD5F\\": { - \\"name\\": \\"my_bucket-on_delete-c80912e0\\" + \\"my_bucket_my_bucket-ondelete_D8AB43D6\\": { + \\"name\\": \\"my_bucket-ondelete-c804d947\\" } }, \\"aws_sns_topic_policy\\": { - \\"my_bucket_my_bucket-on_delete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_52CABBF1\\": { - \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\", - \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" + \\"my_bucket_my_bucket-ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_87361222\\": { + \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\", + \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" } }, \\"aws_sns_topic_subscription\\": { - \\"my_bucket_my_bucket-on_delete_my_bucket-on_delete-TopicSubscription-f22c8a47_66D78279\\": { - \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_4AC25BA6.arn}\\", + \\"my_bucket_my_bucket-ondelete_my_bucket-ondelete-TopicSubscription-107fa7e8_AC27B137\\": { + \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_F0204E1B.arn}\\", \\"protocol\\": \\"lambda\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\" + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\" } } } @@ -1203,14 +1203,14 @@ exports[`bucket with onDelete method 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, ], }, @@ -1232,8 +1232,8 @@ exports[`bucket with onDelete method 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "DELETE", - "resource": "root/Default/my_bucket/my_bucket-on_delete", + "relationship": "onDelete()", + "resource": "root/Default/my_bucket/my_bucket-ondelete", }, ], }, @@ -1278,20 +1278,20 @@ exports[`bucket with onDelete method 2`] = ` "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, - "my_bucket-on_delete": { + "my_bucket-ondelete": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "DELETE", + "relationship": "onDelete()", "resource": "root/Default/my_bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, ], }, @@ -1302,7 +1302,7 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_delete/Default", + "path": "root/Default/my_bucket/my_bucket-ondelete/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -1310,15 +1310,15 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/my_bucket-on_delete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/my_bucket-ondelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, - "my_bucket-on_delete-TopicSubscription-f22c8a47": { + "my_bucket-ondelete-TopicSubscription-107fa7e8": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "my_bucket-on_delete-TopicSubscription-f22c8a47", - "path": "root/Default/my_bucket/my_bucket-on_delete/my_bucket-on_delete-TopicSubscription-f22c8a47", + "id": "my_bucket-ondelete-TopicSubscription-107fa7e8", + "path": "root/Default/my_bucket/my_bucket-ondelete/my_bucket-ondelete-TopicSubscription-107fa7e8", }, }, "constructInfo": { @@ -1329,41 +1329,41 @@ exports[`bucket with onDelete method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "my_bucket-on_delete", - "path": "root/Default/my_bucket/my_bucket-on_delete", + "id": "my_bucket-ondelete", + "path": "root/Default/my_bucket/my_bucket-ondelete", }, - "my_bucket-on_delete-OnMessage-f22c8a47": { + "my_bucket-ondelete-OnMessage-107fa7e8": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket-on_delete-eventHandler-9eade8f6", + "relationship": "handle()", + "resource": "root/Default/my_bucket-ondelete-eventHandler-9eade8f6", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket-on_delete-eventHandler-9eade8f6", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket-ondelete-eventHandler-9eade8f6", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_delete", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-ondelete", }, ], }, @@ -1374,7 +1374,7 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/Asset", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/Asset", }, "Default": { "constructInfo": { @@ -1382,7 +1382,7 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/Default", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/Default", }, "IamRole": { "constructInfo": { @@ -1390,7 +1390,7 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/IamRole", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -1398,7 +1398,7 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/IamRolePolicy", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -1406,15 +1406,15 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/IamRolePolicyAttachment", }, - "InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc": { + "InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc", + "id": "InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba", }, "S3Object": { "constructInfo": { @@ -1422,7 +1422,7 @@ exports[`bucket with onDelete method 2`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/S3Object", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/S3Object", }, }, "constructInfo": { @@ -1433,10 +1433,10 @@ exports[`bucket with onDelete method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "my_bucket-on_delete-OnMessage-f22c8a47", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "id": "my_bucket-ondelete-OnMessage-107fa7e8", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, - "my_bucket-on_delete-OnMessageHandler-f22c8a47": { + "my_bucket-ondelete-OnMessageHandler-107fa7e8": { "attributes": { "wing:resource:connections": [], }, @@ -1447,8 +1447,8 @@ exports[`bucket with onDelete method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_delete-OnMessageHandler-f22c8a47", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessageHandler-f22c8a47", + "id": "my_bucket-ondelete-OnMessageHandler-107fa7e8", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessageHandler-107fa7e8", }, }, "constructInfo": { @@ -1462,20 +1462,20 @@ exports[`bucket with onDelete method 2`] = ` "id": "my_bucket", "path": "root/Default/my_bucket", }, - "my_bucket-on_delete-eventHandler-9eade8f6": { + "my_bucket-ondelete-eventHandler-9eade8f6": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, ], }, @@ -1486,8 +1486,8 @@ exports[`bucket with onDelete method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_delete-eventHandler-9eade8f6", - "path": "root/Default/my_bucket-on_delete-eventHandler-9eade8f6", + "id": "my_bucket-ondelete-eventHandler-9eade8f6", + "path": "root/Default/my_bucket-ondelete-eventHandler-9eade8f6", }, }, "constructInfo": { @@ -1534,96 +1534,96 @@ exports[`bucket with onEvent method 1`] = ` }, \\"resource\\": { \\"aws_iam_role\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F\\": { \\"assume_role_policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Action\\\\\\":\\\\\\"sts:AssumeRole\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"lambda.amazonaws.com\\\\\\"},\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\"}]}\\" }, - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065\\": { \\"assume_role_policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Action\\\\\\":\\\\\\"sts:AssumeRole\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"lambda.amazonaws.com\\\\\\"},\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\"}]}\\" }, - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E\\": { \\"assume_role_policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Action\\\\\\":\\\\\\"sts:AssumeRole\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"lambda.amazonaws.com\\\\\\"},\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\"}]}\\" } }, \\"aws_iam_role_policy\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRolePolicy_E00CE47F\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRolePolicy_97F83F8D\\": { \\"policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":\\\\\\"none:null\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"*\\\\\\"}]}\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F.name}\\" }, - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRolePolicy_860049B2\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRolePolicy_9B9E2210\\": { \\"policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":\\\\\\"none:null\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"*\\\\\\"}]}\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065.name}\\" }, - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRolePolicy_A968FB6D\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRolePolicy_26721ED9\\": { \\"policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":\\\\\\"none:null\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"*\\\\\\"}]}\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E.name}\\" } }, \\"aws_iam_role_policy_attachment\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRolePolicyAttachment_02930F2C\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRolePolicyAttachment_66038538\\": { \\"policy_arn\\": \\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F.name}\\" }, - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRolePolicyAttachment_2EF1321B\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRolePolicyAttachment_DF48669C\\": { \\"policy_arn\\": \\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065.name}\\" }, - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRolePolicyAttachment_1B023209\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRolePolicyAttachment_2E33E422\\": { \\"policy_arn\\": \\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E.name}\\" } }, \\"aws_lambda_function\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_ACD91BBA\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_21FC0692\\": { \\"environment\\": { \\"variables\\": { - \\"WING_FUNCTION_NAME\\": \\"my_bucket-on_create-OnMessage-2c90a36b-c87c1659\\" + \\"WING_FUNCTION_NAME\\": \\"my_bucket-oncreate-OnMessage-1000fbe7-c8902807\\" } }, - \\"function_name\\": \\"my_bucket-on_create-OnMessage-2c90a36b-c87c1659\\", + \\"function_name\\": \\"my_bucket-oncreate-OnMessage-1000fbe7-c8902807\\", \\"handler\\": \\"index.handler\\", \\"publish\\": true, - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_IamRole_EFF20124.arn}\\", + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_IamRole_35A9A03F.arn}\\", \\"runtime\\": \\"nodejs18.x\\", \\"s3_bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", - \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_S3Object_94BFE334.key}\\", + \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_S3Object_0EFF5E1C.key}\\", \\"timeout\\": 30, \\"vpc_config\\": { \\"security_group_ids\\": [], \\"subnet_ids\\": [] } }, - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_4AC25BA6\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_F0204E1B\\": { \\"environment\\": { \\"variables\\": { - \\"WING_FUNCTION_NAME\\": \\"my_bucket-on_delete-OnMessage-f22c8a47-c8e50f60\\" + \\"WING_FUNCTION_NAME\\": \\"my_bucket-ondelete-OnMessage-107fa7e8-c8a44ddc\\" } }, - \\"function_name\\": \\"my_bucket-on_delete-OnMessage-f22c8a47-c8e50f60\\", + \\"function_name\\": \\"my_bucket-ondelete-OnMessage-107fa7e8-c8a44ddc\\", \\"handler\\": \\"index.handler\\", \\"publish\\": true, - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_IamRole_37BB9CC4.arn}\\", + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_IamRole_07615065.arn}\\", \\"runtime\\": \\"nodejs18.x\\", \\"s3_bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", - \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_S3Object_621A589A.key}\\", + \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_S3Object_E3EEAE82.key}\\", \\"timeout\\": 30, \\"vpc_config\\": { \\"security_group_ids\\": [], \\"subnet_ids\\": [] } }, - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_ADBC7F74\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_5A1876F6\\": { \\"environment\\": { \\"variables\\": { - \\"WING_FUNCTION_NAME\\": \\"my_bucket-on_update-OnMessage-32b7a290-c875bcdf\\" + \\"WING_FUNCTION_NAME\\": \\"my_bucket-onupdate-OnMessage-02f87005-c8addd34\\" } }, - \\"function_name\\": \\"my_bucket-on_update-OnMessage-32b7a290-c875bcdf\\", + \\"function_name\\": \\"my_bucket-onupdate-OnMessage-02f87005-c8addd34\\", \\"handler\\": \\"index.handler\\", \\"publish\\": true, - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265.arn}\\", + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E.arn}\\", \\"runtime\\": \\"nodejs18.x\\", \\"s3_bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", - \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-on_update-OnMessage-32b7a290_S3Object_9A4C2C8F.key}\\", + \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-onupdate-OnMessage-02f87005_S3Object_22E0515D.key}\\", \\"timeout\\": 30, \\"vpc_config\\": { \\"security_group_ids\\": [], @@ -1632,23 +1632,23 @@ exports[`bucket with onEvent method 1`] = ` } }, \\"aws_lambda_permission\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190_575B3554\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3_9B4C34C5\\": { \\"action\\": \\"lambda:InvokeFunction\\", - \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_ACD91BBA.function_name}\\", + \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_21FC0692.function_name}\\", \\"principal\\": \\"sns.amazonaws.com\\", - \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\" + \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\" }, - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc_B8B37FEC\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba_ACC48827\\": { \\"action\\": \\"lambda:InvokeFunction\\", - \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_4AC25BA6.function_name}\\", + \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_F0204E1B.function_name}\\", \\"principal\\": \\"sns.amazonaws.com\\", - \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\" + \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\" }, - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833_C11DA01C\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16_79677ADE\\": { \\"action\\": \\"lambda:InvokeFunction\\", - \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_update-OnMessage-32b7a290_ADBC7F74.function_name}\\", + \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-onupdate-OnMessage-02f87005_5A1876F6.function_name}\\", \\"principal\\": \\"sns.amazonaws.com\\", - \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\" + \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\" } }, \\"aws_s3_bucket\\": { @@ -1664,31 +1664,31 @@ 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_my_bucket-on_create_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_4338D29D\\", - \\"aws_sns_topic_policy.my_bucket_my_bucket-on_update_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A2248301\\", - \\"aws_sns_topic_policy.my_bucket_my_bucket-on_delete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_52CABBF1\\" + \\"aws_sns_topic_policy.my_bucket_my_bucket-oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_DC469583\\", + \\"aws_sns_topic_policy.my_bucket_my_bucket-onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CDA9888A\\", + \\"aws_sns_topic_policy.my_bucket_my_bucket-ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_87361222\\" ], \\"topic\\": [ { \\"events\\": [ \\"s3:ObjectCreated:Put\\" ], - \\"id\\": \\"on-create-notification\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\" + \\"id\\": \\"on-oncreate-notification\\", + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\" }, { \\"events\\": [ \\"s3:ObjectCreated:Post\\" ], - \\"id\\": \\"on-update-notification\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\" + \\"id\\": \\"on-onupdate-notification\\", + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\" }, { \\"events\\": [ \\"s3:ObjectRemoved:*\\" ], - \\"id\\": \\"on-delete-notification\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\" + \\"id\\": \\"on-ondelete-notification\\", + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\" } ] } @@ -1724,62 +1724,62 @@ exports[`bucket with onEvent method 1`] = ` } }, \\"aws_s3_object\\": { - \\"my_bucket_my_bucket-on_create-OnMessage-2c90a36b_S3Object_94BFE334\\": { + \\"my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_S3Object_0EFF5E1C\\": { \\"bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", \\"key\\": \\"\\", \\"source\\": \\"\\" }, - \\"my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_S3Object_621A589A\\": { + \\"my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_S3Object_E3EEAE82\\": { \\"bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", \\"key\\": \\"\\", \\"source\\": \\"\\" }, - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_S3Object_9A4C2C8F\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_S3Object_22E0515D\\": { \\"bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", \\"key\\": \\"\\", \\"source\\": \\"\\" } }, \\"aws_sns_topic\\": { - \\"my_bucket_my_bucket-on_create_CA4D65D3\\": { - \\"name\\": \\"my_bucket-on_create-c8ab9ab8\\" + \\"my_bucket_my_bucket-oncreate_820372FA\\": { + \\"name\\": \\"my_bucket-oncreate-c81e8728\\" }, - \\"my_bucket_my_bucket-on_delete_C370DD5F\\": { - \\"name\\": \\"my_bucket-on_delete-c80912e0\\" + \\"my_bucket_my_bucket-ondelete_D8AB43D6\\": { + \\"name\\": \\"my_bucket-ondelete-c804d947\\" }, - \\"my_bucket_my_bucket-on_update_C3D45260\\": { - \\"name\\": \\"my_bucket-on_update-c8c80ce5\\" + \\"my_bucket_my_bucket-onupdate_ADC4AA5B\\": { + \\"name\\": \\"my_bucket-onupdate-c85a0903\\" } }, \\"aws_sns_topic_policy\\": { - \\"my_bucket_my_bucket-on_create_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_4338D29D\\": { - \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\", - \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" + \\"my_bucket_my_bucket-oncreate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_DC469583\\": { + \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\", + \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" }, - \\"my_bucket_my_bucket-on_delete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_52CABBF1\\": { - \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\", - \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" + \\"my_bucket_my_bucket-ondelete_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_87361222\\": { + \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\", + \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" }, - \\"my_bucket_my_bucket-on_update_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A2248301\\": { - \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\", - \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" + \\"my_bucket_my_bucket-onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CDA9888A\\": { + \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\", + \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" } }, \\"aws_sns_topic_subscription\\": { - \\"my_bucket_my_bucket-on_create_my_bucket-on_create-TopicSubscription-2c90a36b_155F87CA\\": { - \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_create-OnMessage-2c90a36b_ACD91BBA.arn}\\", + \\"my_bucket_my_bucket-oncreate_my_bucket-oncreate-TopicSubscription-1000fbe7_9F6DDCDF\\": { + \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-oncreate-OnMessage-1000fbe7_21FC0692.arn}\\", \\"protocol\\": \\"lambda\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_create_CA4D65D3.arn}\\" + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-oncreate_820372FA.arn}\\" }, - \\"my_bucket_my_bucket-on_delete_my_bucket-on_delete-TopicSubscription-f22c8a47_66D78279\\": { - \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_delete-OnMessage-f22c8a47_4AC25BA6.arn}\\", + \\"my_bucket_my_bucket-ondelete_my_bucket-ondelete-TopicSubscription-107fa7e8_AC27B137\\": { + \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-ondelete-OnMessage-107fa7e8_F0204E1B.arn}\\", \\"protocol\\": \\"lambda\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_delete_C370DD5F.arn}\\" + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-ondelete_D8AB43D6.arn}\\" }, - \\"my_bucket_my_bucket-on_update_my_bucket-on_update-TopicSubscription-32b7a290_D2ECBD87\\": { - \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_update-OnMessage-32b7a290_ADBC7F74.arn}\\", + \\"my_bucket_my_bucket-onupdate_my_bucket-onupdate-TopicSubscription-02f87005_6CFFDD03\\": { + \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-onupdate-OnMessage-02f87005_5A1876F6.arn}\\", \\"protocol\\": \\"lambda\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\" + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\" } } } @@ -1842,38 +1842,38 @@ exports[`bucket with onEvent method 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, ], }, @@ -1895,20 +1895,20 @@ exports[`bucket with onEvent method 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "CREATE", - "resource": "root/Default/my_bucket/my_bucket-on_create", + "relationship": "onCreate()", + "resource": "root/Default/my_bucket/my_bucket-oncreate", }, { "direction": "outbound", "implicit": false, - "relationship": "UPDATE", - "resource": "root/Default/my_bucket/my_bucket-on_update", + "relationship": "onUpdate()", + "resource": "root/Default/my_bucket/my_bucket-onupdate", }, { "direction": "outbound", "implicit": false, - "relationship": "DELETE", - "resource": "root/Default/my_bucket/my_bucket-on_delete", + "relationship": "onDelete()", + "resource": "root/Default/my_bucket/my_bucket-ondelete", }, ], }, @@ -1953,20 +1953,20 @@ exports[`bucket with onEvent method 2`] = ` "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, - "my_bucket-on_create": { + "my_bucket-oncreate": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "CREATE", + "relationship": "onCreate()", "resource": "root/Default/my_bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, ], }, @@ -1977,7 +1977,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_create/Default", + "path": "root/Default/my_bucket/my_bucket-oncreate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -1985,15 +1985,15 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/my_bucket-on_create/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/my_bucket-oncreate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, - "my_bucket-on_create-TopicSubscription-2c90a36b": { + "my_bucket-oncreate-TopicSubscription-1000fbe7": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "my_bucket-on_create-TopicSubscription-2c90a36b", - "path": "root/Default/my_bucket/my_bucket-on_create/my_bucket-on_create-TopicSubscription-2c90a36b", + "id": "my_bucket-oncreate-TopicSubscription-1000fbe7", + "path": "root/Default/my_bucket/my_bucket-oncreate/my_bucket-oncreate-TopicSubscription-1000fbe7", }, }, "constructInfo": { @@ -2004,41 +2004,41 @@ exports[`bucket with onEvent method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "my_bucket-on_create", - "path": "root/Default/my_bucket/my_bucket-on_create", + "id": "my_bucket-oncreate", + "path": "root/Default/my_bucket/my_bucket-oncreate", }, - "my_bucket-on_create-OnMessage-2c90a36b": { + "my_bucket-oncreate-OnMessage-1000fbe7": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket-on_create-eventHandler-9eade8f6", + "relationship": "handle()", + "resource": "root/Default/my_bucket-oncreate-eventHandler-9eade8f6", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket-on_create-eventHandler-9eade8f6", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket-oncreate-eventHandler-9eade8f6", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_create", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-oncreate", }, ], }, @@ -2049,7 +2049,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/Asset", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/Asset", }, "Default": { "constructInfo": { @@ -2057,7 +2057,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/Default", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/Default", }, "IamRole": { "constructInfo": { @@ -2065,7 +2065,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/IamRole", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -2073,7 +2073,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/IamRolePolicy", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -2081,15 +2081,15 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/IamRolePolicyAttachment", }, - "InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190": { + "InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/InvokePermission-c8ab9ab84a159fe2b8ace0993118785a21c0508190", + "id": "InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/InvokePermission-c81e8728eb64a11308ced47594c2396d2467e4d9d3", }, "S3Object": { "constructInfo": { @@ -2097,7 +2097,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b/S3Object", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7/S3Object", }, }, "constructInfo": { @@ -2108,10 +2108,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "my_bucket-on_create-OnMessage-2c90a36b", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "id": "my_bucket-oncreate-OnMessage-1000fbe7", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, - "my_bucket-on_create-OnMessageHandler-2c90a36b": { + "my_bucket-oncreate-OnMessageHandler-1000fbe7": { "attributes": { "wing:resource:connections": [], }, @@ -2122,23 +2122,23 @@ exports[`bucket with onEvent method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_create-OnMessageHandler-2c90a36b", - "path": "root/Default/my_bucket/my_bucket-on_create-OnMessageHandler-2c90a36b", + "id": "my_bucket-oncreate-OnMessageHandler-1000fbe7", + "path": "root/Default/my_bucket/my_bucket-oncreate-OnMessageHandler-1000fbe7", }, - "my_bucket-on_delete": { + "my_bucket-ondelete": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "DELETE", + "relationship": "onDelete()", "resource": "root/Default/my_bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, ], }, @@ -2149,7 +2149,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_delete/Default", + "path": "root/Default/my_bucket/my_bucket-ondelete/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -2157,15 +2157,15 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/my_bucket-on_delete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/my_bucket-ondelete/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, - "my_bucket-on_delete-TopicSubscription-f22c8a47": { + "my_bucket-ondelete-TopicSubscription-107fa7e8": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "my_bucket-on_delete-TopicSubscription-f22c8a47", - "path": "root/Default/my_bucket/my_bucket-on_delete/my_bucket-on_delete-TopicSubscription-f22c8a47", + "id": "my_bucket-ondelete-TopicSubscription-107fa7e8", + "path": "root/Default/my_bucket/my_bucket-ondelete/my_bucket-ondelete-TopicSubscription-107fa7e8", }, }, "constructInfo": { @@ -2176,41 +2176,41 @@ exports[`bucket with onEvent method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "my_bucket-on_delete", - "path": "root/Default/my_bucket/my_bucket-on_delete", + "id": "my_bucket-ondelete", + "path": "root/Default/my_bucket/my_bucket-ondelete", }, - "my_bucket-on_delete-OnMessage-f22c8a47": { + "my_bucket-ondelete-OnMessage-107fa7e8": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket-on_delete-eventHandler-9eade8f6", + "relationship": "handle()", + "resource": "root/Default/my_bucket-ondelete-eventHandler-9eade8f6", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket-on_delete-eventHandler-9eade8f6", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket-ondelete-eventHandler-9eade8f6", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_delete", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-ondelete", }, ], }, @@ -2221,7 +2221,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/Asset", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/Asset", }, "Default": { "constructInfo": { @@ -2229,7 +2229,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/Default", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/Default", }, "IamRole": { "constructInfo": { @@ -2237,7 +2237,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/IamRole", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -2245,7 +2245,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/IamRolePolicy", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -2253,15 +2253,15 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/IamRolePolicyAttachment", }, - "InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc": { + "InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/InvokePermission-c80912e0ab47291ff9b0dd966e259f42a42646bcdc", + "id": "InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/InvokePermission-c804d947f12e6d883f018387429c0ba10b852c46ba", }, "S3Object": { "constructInfo": { @@ -2269,7 +2269,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47/S3Object", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8/S3Object", }, }, "constructInfo": { @@ -2280,10 +2280,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "my_bucket-on_delete-OnMessage-f22c8a47", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "id": "my_bucket-ondelete-OnMessage-107fa7e8", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, - "my_bucket-on_delete-OnMessageHandler-f22c8a47": { + "my_bucket-ondelete-OnMessageHandler-107fa7e8": { "attributes": { "wing:resource:connections": [], }, @@ -2294,23 +2294,23 @@ exports[`bucket with onEvent method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_delete-OnMessageHandler-f22c8a47", - "path": "root/Default/my_bucket/my_bucket-on_delete-OnMessageHandler-f22c8a47", + "id": "my_bucket-ondelete-OnMessageHandler-107fa7e8", + "path": "root/Default/my_bucket/my_bucket-ondelete-OnMessageHandler-107fa7e8", }, - "my_bucket-on_update": { + "my_bucket-onupdate": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "UPDATE", + "relationship": "onUpdate()", "resource": "root/Default/my_bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, ], }, @@ -2321,7 +2321,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_update/Default", + "path": "root/Default/my_bucket/my_bucket-onupdate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -2329,15 +2329,15 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/my_bucket-on_update/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/my_bucket-onupdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, - "my_bucket-on_update-TopicSubscription-32b7a290": { + "my_bucket-onupdate-TopicSubscription-02f87005": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "my_bucket-on_update-TopicSubscription-32b7a290", - "path": "root/Default/my_bucket/my_bucket-on_update/my_bucket-on_update-TopicSubscription-32b7a290", + "id": "my_bucket-onupdate-TopicSubscription-02f87005", + "path": "root/Default/my_bucket/my_bucket-onupdate/my_bucket-onupdate-TopicSubscription-02f87005", }, }, "constructInfo": { @@ -2348,41 +2348,41 @@ exports[`bucket with onEvent method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "my_bucket-on_update", - "path": "root/Default/my_bucket/my_bucket-on_update", + "id": "my_bucket-onupdate", + "path": "root/Default/my_bucket/my_bucket-onupdate", }, - "my_bucket-on_update-OnMessage-32b7a290": { + "my_bucket-onupdate-OnMessage-02f87005": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket-on_update-eventHandler-9eade8f6", + "relationship": "handle()", + "resource": "root/Default/my_bucket-onupdate-eventHandler-9eade8f6", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket-on_update-eventHandler-9eade8f6", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket-onupdate-eventHandler-9eade8f6", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_update", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-onupdate", }, ], }, @@ -2393,7 +2393,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/Asset", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/Asset", }, "Default": { "constructInfo": { @@ -2401,7 +2401,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/Default", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/Default", }, "IamRole": { "constructInfo": { @@ -2409,7 +2409,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/IamRole", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -2417,7 +2417,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/IamRolePolicy", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -2425,15 +2425,15 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/IamRolePolicyAttachment", }, - "InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833": { + "InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833", + "id": "InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16", }, "S3Object": { "constructInfo": { @@ -2441,7 +2441,7 @@ exports[`bucket with onEvent method 2`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/S3Object", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/S3Object", }, }, "constructInfo": { @@ -2452,10 +2452,10 @@ exports[`bucket with onEvent method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "my_bucket-on_update-OnMessage-32b7a290", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "id": "my_bucket-onupdate-OnMessage-02f87005", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, - "my_bucket-on_update-OnMessageHandler-32b7a290": { + "my_bucket-onupdate-OnMessageHandler-02f87005": { "attributes": { "wing:resource:connections": [], }, @@ -2466,8 +2466,8 @@ exports[`bucket with onEvent method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_update-OnMessageHandler-32b7a290", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessageHandler-32b7a290", + "id": "my_bucket-onupdate-OnMessageHandler-02f87005", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessageHandler-02f87005", }, }, "constructInfo": { @@ -2481,20 +2481,20 @@ exports[`bucket with onEvent method 2`] = ` "id": "my_bucket", "path": "root/Default/my_bucket", }, - "my_bucket-on_create-eventHandler-9eade8f6": { + "my_bucket-oncreate-eventHandler-9eade8f6": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_create-OnMessage-2c90a36b", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-oncreate-OnMessage-1000fbe7", }, ], }, @@ -2505,23 +2505,23 @@ exports[`bucket with onEvent method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_create-eventHandler-9eade8f6", - "path": "root/Default/my_bucket-on_create-eventHandler-9eade8f6", + "id": "my_bucket-oncreate-eventHandler-9eade8f6", + "path": "root/Default/my_bucket-oncreate-eventHandler-9eade8f6", }, - "my_bucket-on_delete-eventHandler-9eade8f6": { + "my_bucket-ondelete-eventHandler-9eade8f6": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_delete-OnMessage-f22c8a47", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-ondelete-OnMessage-107fa7e8", }, ], }, @@ -2532,23 +2532,23 @@ exports[`bucket with onEvent method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_delete-eventHandler-9eade8f6", - "path": "root/Default/my_bucket-on_delete-eventHandler-9eade8f6", + "id": "my_bucket-ondelete-eventHandler-9eade8f6", + "path": "root/Default/my_bucket-ondelete-eventHandler-9eade8f6", }, - "my_bucket-on_update-eventHandler-9eade8f6": { + "my_bucket-onupdate-eventHandler-9eade8f6": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, ], }, @@ -2559,8 +2559,8 @@ exports[`bucket with onEvent method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_update-eventHandler-9eade8f6", - "path": "root/Default/my_bucket-on_update-eventHandler-9eade8f6", + "id": "my_bucket-onupdate-eventHandler-9eade8f6", + "path": "root/Default/my_bucket-onupdate-eventHandler-9eade8f6", }, }, "constructInfo": { @@ -2607,36 +2607,36 @@ exports[`bucket with onUpdate method 1`] = ` }, \\"resource\\": { \\"aws_iam_role\\": { - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E\\": { \\"assume_role_policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Action\\\\\\":\\\\\\"sts:AssumeRole\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"lambda.amazonaws.com\\\\\\"},\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\"}]}\\" } }, \\"aws_iam_role_policy\\": { - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRolePolicy_A968FB6D\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRolePolicy_26721ED9\\": { \\"policy\\": \\"{\\\\\\"Version\\\\\\":\\\\\\"2012-10-17\\\\\\",\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Action\\\\\\":\\\\\\"none:null\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"*\\\\\\"}]}\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E.name}\\" } }, \\"aws_iam_role_policy_attachment\\": { - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRolePolicyAttachment_1B023209\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRolePolicyAttachment_2E33E422\\": { \\"policy_arn\\": \\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\\", - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265.name}\\" + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E.name}\\" } }, \\"aws_lambda_function\\": { - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_ADBC7F74\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_5A1876F6\\": { \\"environment\\": { \\"variables\\": { - \\"WING_FUNCTION_NAME\\": \\"my_bucket-on_update-OnMessage-32b7a290-c875bcdf\\" + \\"WING_FUNCTION_NAME\\": \\"my_bucket-onupdate-OnMessage-02f87005-c8addd34\\" } }, - \\"function_name\\": \\"my_bucket-on_update-OnMessage-32b7a290-c875bcdf\\", + \\"function_name\\": \\"my_bucket-onupdate-OnMessage-02f87005-c8addd34\\", \\"handler\\": \\"index.handler\\", \\"publish\\": true, - \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-on_update-OnMessage-32b7a290_IamRole_0D689265.arn}\\", + \\"role\\": \\"\${aws_iam_role.my_bucket_my_bucket-onupdate-OnMessage-02f87005_IamRole_33D65E9E.arn}\\", \\"runtime\\": \\"nodejs18.x\\", \\"s3_bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", - \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-on_update-OnMessage-32b7a290_S3Object_9A4C2C8F.key}\\", + \\"s3_key\\": \\"\${aws_s3_object.my_bucket_my_bucket-onupdate-OnMessage-02f87005_S3Object_22E0515D.key}\\", \\"timeout\\": 30, \\"vpc_config\\": { \\"security_group_ids\\": [], @@ -2645,11 +2645,11 @@ exports[`bucket with onUpdate method 1`] = ` } }, \\"aws_lambda_permission\\": { - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833_C11DA01C\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16_79677ADE\\": { \\"action\\": \\"lambda:InvokeFunction\\", - \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_update-OnMessage-32b7a290_ADBC7F74.function_name}\\", + \\"function_name\\": \\"\${aws_lambda_function.my_bucket_my_bucket-onupdate-OnMessage-02f87005_5A1876F6.function_name}\\", \\"principal\\": \\"sns.amazonaws.com\\", - \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\" + \\"source_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\" } }, \\"aws_s3_bucket\\": { @@ -2665,15 +2665,15 @@ 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_my_bucket-on_update_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A2248301\\" + \\"aws_sns_topic_policy.my_bucket_my_bucket-onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CDA9888A\\" ], \\"topic\\": [ { \\"events\\": [ \\"s3:ObjectCreated:Post\\" ], - \\"id\\": \\"on-update-notification\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\" + \\"id\\": \\"on-onupdate-notification\\", + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\" } ] } @@ -2709,28 +2709,28 @@ exports[`bucket with onUpdate method 1`] = ` } }, \\"aws_s3_object\\": { - \\"my_bucket_my_bucket-on_update-OnMessage-32b7a290_S3Object_9A4C2C8F\\": { + \\"my_bucket_my_bucket-onupdate-OnMessage-02f87005_S3Object_22E0515D\\": { \\"bucket\\": \\"\${aws_s3_bucket.Code.bucket}\\", \\"key\\": \\"\\", \\"source\\": \\"\\" } }, \\"aws_sns_topic\\": { - \\"my_bucket_my_bucket-on_update_C3D45260\\": { - \\"name\\": \\"my_bucket-on_update-c8c80ce5\\" + \\"my_bucket_my_bucket-onupdate_ADC4AA5B\\": { + \\"name\\": \\"my_bucket-onupdate-c85a0903\\" } }, \\"aws_sns_topic_policy\\": { - \\"my_bucket_my_bucket-on_update_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_A2248301\\": { - \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\", - \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" + \\"my_bucket_my_bucket-onupdate_PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a_CDA9888A\\": { + \\"arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\", + \\"policy\\": \\"{\\\\\\"Statement\\\\\\":[{\\\\\\"Effect\\\\\\":\\\\\\"Allow\\\\\\",\\\\\\"Principal\\\\\\":{\\\\\\"Service\\\\\\":\\\\\\"s3.amazonaws.com\\\\\\"},\\\\\\"Action\\\\\\":\\\\\\"sns:Publish\\\\\\",\\\\\\"Resource\\\\\\":\\\\\\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\\\\\",\\\\\\"Condition\\\\\\":{\\\\\\"ArnEquals\\\\\\":{\\\\\\"aws:SourceArn\\\\\\":\\\\\\"\${aws_s3_bucket.my_bucket.arn}\\\\\\"}}}]}\\" } }, \\"aws_sns_topic_subscription\\": { - \\"my_bucket_my_bucket-on_update_my_bucket-on_update-TopicSubscription-32b7a290_D2ECBD87\\": { - \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-on_update-OnMessage-32b7a290_ADBC7F74.arn}\\", + \\"my_bucket_my_bucket-onupdate_my_bucket-onupdate-TopicSubscription-02f87005_6CFFDD03\\": { + \\"endpoint\\": \\"\${aws_lambda_function.my_bucket_my_bucket-onupdate-OnMessage-02f87005_5A1876F6.arn}\\", \\"protocol\\": \\"lambda\\", - \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-on_update_C3D45260.arn}\\" + \\"topic_arn\\": \\"\${aws_sns_topic.my_bucket_my_bucket-onupdate_ADC4AA5B.arn}\\" } } } @@ -2793,14 +2793,14 @@ exports[`bucket with onUpdate method 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, ], }, @@ -2822,8 +2822,8 @@ exports[`bucket with onUpdate method 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "UPDATE", - "resource": "root/Default/my_bucket/my_bucket-on_update", + "relationship": "onUpdate()", + "resource": "root/Default/my_bucket/my_bucket-onupdate", }, ], }, @@ -2868,20 +2868,20 @@ exports[`bucket with onUpdate method 2`] = ` "id": "S3BucketNotification", "path": "root/Default/my_bucket/S3BucketNotification", }, - "my_bucket-on_update": { + "my_bucket-onupdate": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "UPDATE", + "relationship": "onUpdate()", "resource": "root/Default/my_bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, ], }, @@ -2892,7 +2892,7 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_update/Default", + "path": "root/Default/my_bucket/my_bucket-onupdate/Default", }, "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a": { "constructInfo": { @@ -2900,15 +2900,15 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", - "path": "root/Default/my_bucket/my_bucket-on_update/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", + "path": "root/Default/my_bucket/my_bucket-onupdate/PublishPermission-c8045fccc85a7ef42d5391d87958e5ce36c53a401a", }, - "my_bucket-on_update-TopicSubscription-32b7a290": { + "my_bucket-onupdate-TopicSubscription-02f87005": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "my_bucket-on_update-TopicSubscription-32b7a290", - "path": "root/Default/my_bucket/my_bucket-on_update/my_bucket-on_update-TopicSubscription-32b7a290", + "id": "my_bucket-onupdate-TopicSubscription-02f87005", + "path": "root/Default/my_bucket/my_bucket-onupdate/my_bucket-onupdate-TopicSubscription-02f87005", }, }, "constructInfo": { @@ -2919,41 +2919,41 @@ exports[`bucket with onUpdate method 2`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "my_bucket-on_update", - "path": "root/Default/my_bucket/my_bucket-on_update", + "id": "my_bucket-onupdate", + "path": "root/Default/my_bucket/my_bucket-onupdate", }, - "my_bucket-on_update-OnMessage-32b7a290": { + "my_bucket-onupdate-OnMessage-02f87005": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/inflight", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket-on_update-eventHandler-9eade8f6", + "relationship": "handle()", + "resource": "root/Default/my_bucket-onupdate-eventHandler-9eade8f6", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket-on_update-eventHandler-9eade8f6", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket-onupdate-eventHandler-9eade8f6", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/my_bucket/my_bucket-on_update", + "relationship": "onMessage()", + "resource": "root/Default/my_bucket/my_bucket-onupdate", }, ], }, @@ -2964,7 +2964,7 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/Asset", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/Asset", }, "Default": { "constructInfo": { @@ -2972,7 +2972,7 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/Default", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/Default", }, "IamRole": { "constructInfo": { @@ -2980,7 +2980,7 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/IamRole", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -2988,7 +2988,7 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/IamRolePolicy", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -2996,15 +2996,15 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/IamRolePolicyAttachment", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/IamRolePolicyAttachment", }, - "InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833": { + "InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/InvokePermission-c8c80ce55fb2dfdf6262f75ee093ef99cc30a57833", + "id": "InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/InvokePermission-c85a09033744f6af2426f88e40823fbfd778fbdc16", }, "S3Object": { "constructInfo": { @@ -3012,7 +3012,7 @@ exports[`bucket with onUpdate method 2`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290/S3Object", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005/S3Object", }, }, "constructInfo": { @@ -3023,10 +3023,10 @@ exports[`bucket with onUpdate method 2`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "my_bucket-on_update-OnMessage-32b7a290", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "id": "my_bucket-onupdate-OnMessage-02f87005", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, - "my_bucket-on_update-OnMessageHandler-32b7a290": { + "my_bucket-onupdate-OnMessageHandler-02f87005": { "attributes": { "wing:resource:connections": [], }, @@ -3037,8 +3037,8 @@ exports[`bucket with onUpdate method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_update-OnMessageHandler-32b7a290", - "path": "root/Default/my_bucket/my_bucket-on_update-OnMessageHandler-32b7a290", + "id": "my_bucket-onupdate-OnMessageHandler-02f87005", + "path": "root/Default/my_bucket/my_bucket-onupdate-OnMessageHandler-02f87005", }, }, "constructInfo": { @@ -3052,20 +3052,20 @@ exports[`bucket with onUpdate method 2`] = ` "id": "my_bucket", "path": "root/Default/my_bucket", }, - "my_bucket-on_update-eventHandler-9eade8f6": { + "my_bucket-onupdate-eventHandler-9eade8f6": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "handle()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/my_bucket/my_bucket-on_update-OnMessage-32b7a290", + "relationship": "$inflight_init()", + "resource": "root/Default/my_bucket/my_bucket-onupdate-OnMessage-02f87005", }, ], }, @@ -3076,8 +3076,8 @@ exports[`bucket with onUpdate method 2`] = ` "display": { "hidden": true, }, - "id": "my_bucket-on_update-eventHandler-9eade8f6", - "path": "root/Default/my_bucket-on_update-eventHandler-9eade8f6", + "id": "my_bucket-onupdate-eventHandler-9eade8f6", + "path": "root/Default/my_bucket-onupdate-eventHandler-9eade8f6", }, }, "constructInfo": { 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 1aa05062639..6a402a5394a 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 @@ -354,13 +354,13 @@ exports[`dec() policy statement 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "dec", + "relationship": "dec()", "resource": "root/Default/Function", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Function", }, ], @@ -392,13 +392,13 @@ exports[`dec() policy statement 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "dec", + "relationship": "dec()", "resource": "root/Default/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Counter", }, ], @@ -691,13 +691,13 @@ exports[`function with a counter binding 3`] = ` { "direction": "inbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/Default/Function", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Function", }, ], @@ -729,13 +729,13 @@ exports[`function with a counter binding 3`] = ` { "direction": "outbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/Default/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Counter", }, ], @@ -985,13 +985,13 @@ exports[`inc() policy statement 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/Default/Function", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Function", }, ], @@ -1023,13 +1023,13 @@ exports[`inc() policy statement 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/Default/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Counter", }, ], @@ -1279,13 +1279,13 @@ exports[`peek() policy statement 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "peek", + "relationship": "peek()", "resource": "root/Default/Function", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Function", }, ], @@ -1317,13 +1317,13 @@ exports[`peek() policy statement 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "peek", + "relationship": "peek()", "resource": "root/Default/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Counter", }, ], @@ -1701,13 +1701,13 @@ exports[`set() policy statement 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "set", + "relationship": "set()", "resource": "root/Default/Function", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Function", }, ], @@ -1739,13 +1739,13 @@ exports[`set() policy statement 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "set", + "relationship": "set()", "resource": "root/Default/Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Counter", }, ], 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 da2c6ad06a7..a4577e13d21 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 @@ -339,13 +339,13 @@ exports[`queue with a consumer function 3`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Queue-SetConsumer-c5395e41", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Queue-SetConsumer-c5395e41", }, ], @@ -368,7 +368,7 @@ exports[`queue with a consumer function 3`] = ` { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/Default/Queue-SetConsumer-c5395e41", }, ], @@ -408,19 +408,19 @@ exports[`queue with a consumer function 3`] = ` { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/Default/Queue", }, ], 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 a52422ab469..50ffa0aeb6f 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 @@ -105,13 +105,13 @@ exports[`schedule behavior with cron 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Schedule-OnTick-c5395e41", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Schedule-OnTick-c5395e41", }, ], @@ -134,7 +134,7 @@ exports[`schedule behavior with cron 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule-OnTick-c5395e41", }, ], @@ -174,19 +174,19 @@ exports[`schedule behavior with cron 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule", }, ], @@ -449,13 +449,13 @@ exports[`schedule behavior with rate 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Schedule-OnTick-c5395e41", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Schedule-OnTick-c5395e41", }, ], @@ -478,7 +478,7 @@ exports[`schedule behavior with rate 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule-OnTick-c5395e41", }, ], @@ -518,19 +518,19 @@ exports[`schedule behavior with rate 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule", }, ], @@ -839,13 +839,13 @@ exports[`schedule with two functions 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Schedule-OnTick-7b33bcba", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Schedule-OnTick-7b33bcba", }, ], @@ -868,13 +868,13 @@ exports[`schedule with two functions 2`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Schedule-OnTick-0a615500", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Schedule-OnTick-0a615500", }, ], @@ -897,13 +897,13 @@ exports[`schedule with two functions 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule-OnTick-7b33bcba", }, { "direction": "outbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule-OnTick-0a615500", }, ], @@ -951,19 +951,19 @@ exports[`schedule with two functions 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Handler2", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Handler2", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule", }, ], @@ -1043,19 +1043,19 @@ exports[`schedule with two functions 2`] = ` { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Handler1", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Handler1", }, { "direction": "inbound", "implicit": false, - "relationship": "on_tick", + "relationship": "onTick()", "resource": "root/Default/Schedule", }, ], 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 12ab9615475..988d096e893 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 @@ -142,13 +142,13 @@ exports[`function with a table binding 3`] = ` { "direction": "outbound", "implicit": false, - "relationship": "insert", + "relationship": "insert()", "resource": "root/Default/Table", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Table", }, ], @@ -236,13 +236,13 @@ exports[`function with a table binding 3`] = ` { "direction": "inbound", "implicit": false, - "relationship": "insert", + "relationship": "insert()", "resource": "root/Default/Function", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Function", }, ], 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 8b54df30e29..3459200b17a 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 @@ -479,13 +479,13 @@ exports[`topic with subscriber function 3`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Topic-OnMessage-c5395e41", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Topic-OnMessage-c5395e41", }, ], @@ -508,7 +508,7 @@ exports[`topic with subscriber function 3`] = ` { "direction": "outbound", "implicit": false, - "relationship": "on_message", + "relationship": "onMessage()", "resource": "root/Default/Topic-OnMessage-c5395e41", }, ], @@ -548,19 +548,19 @@ exports[`topic with subscriber function 3`] = ` { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Handler", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", + "relationship": "onMessage()", "resource": "root/Default/Topic", }, ], diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.w_compile_tf-aws.md index 4986d025fea..f168d6dcb1c 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.w_compile_tf-aws.md @@ -28,7 +28,7 @@ module.exports = function({ $Source, $logHistory }) { return $obj; } async handle(key) { - (await $logHistory(key,"DELETE",$Source.anyEvent)); + (await $logHistory(key,"onDelete()",$Source.anyEvent)); } } return $Closure2; @@ -46,7 +46,7 @@ module.exports = function({ $Source, $logHistory }) { return $obj; } async handle(key) { - (await $logHistory(key,"UPDATE",$Source.anyEvent)); + (await $logHistory(key,"onUpdate()",$Source.anyEvent)); } } return $Closure3; @@ -64,7 +64,7 @@ module.exports = function({ $Source, $logHistory }) { return $obj; } async handle(key) { - (await $logHistory(key,"CREATE",$Source.anyEvent)); + (await $logHistory(key,"onCreate()",$Source.anyEvent)); } } return $Closure4; @@ -82,7 +82,7 @@ module.exports = function({ $Source, $logHistory }) { return $obj; } async handle(key, event) { - (await $logHistory(key,String.raw({ raw: ["", ""] }, event),$Source.onEvent)); + (await $logHistory(key,String.raw({ raw: ["", "()"] }, event),$Source.onEvent)); } } return $Closure5; @@ -159,16 +159,16 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { (await $b.put("b","100")); (await $b.delete("c")); if (((await $util_Util.env("WING_TARGET")) !== "tf-aws")) { - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"a\", type: \"CREATE\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "a", type: "CREATE", source: $Source.anyEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"CREATE\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "CREATE", source: $Source.anyEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"CREATE\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "CREATE", source: $Source.anyEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"a\", type: \"CREATE\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "a", type: "CREATE", source: $Source.onEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"CREATE\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "CREATE", source: $Source.onEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"CREATE\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "CREATE", source: $Source.onEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"UPDATE\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "UPDATE", source: $Source.anyEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"DELETE\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "DELETE", source: $Source.anyEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"UPDATE\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "UPDATE", source: $Source.onEvent, count: 1 })))))}; - {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"DELETE\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "DELETE", source: $Source.onEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"a\", type: \"onCreate()\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "a", type: "onCreate()", source: $Source.anyEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"onCreate()\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "onCreate()", source: $Source.anyEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"onCreate()\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "onCreate()", source: $Source.anyEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"a\", type: \"onCreate()\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "a", type: "onCreate()", source: $Source.onEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"onCreate()\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "onCreate()", source: $Source.onEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"onCreate()\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "onCreate()", source: $Source.onEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"onUpdate()\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "onUpdate()", source: $Source.anyEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"onDelete()\", source: Source.anyEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "onDelete()", source: $Source.anyEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"b\", type: \"onUpdate()\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "b", type: "onUpdate()", source: $Source.onEvent, count: 1 })))))}; + {((cond) => {if (!cond) throw new Error("assertion failed: wait(checkHitCount(key: \"c\", type: \"onDelete()\", source: Source.onEvent, count: 1))")})((await $wait((await $checkHitCount({ key: "c", type: "onDelete()", source: $Source.onEvent, count: 1 })))))}; } } } @@ -244,56 +244,56 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_iam_role": { - "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRole_324909ED": { + "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRole_0AE31367": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-440eabdf/IamRole", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRole_324909ED" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-985d246b/IamRole", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRole_0AE31367" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRole_72BADB08": { + "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRole_04D5B40F": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-e889c56f/IamRole", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRole_72BADB08" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-dde55e33/IamRole", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRole_04D5B40F" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRole_40D9C71E": { + "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRole_A726FAF4": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-25075838/IamRole", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRole_40D9C71E" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-f6d66b87/IamRole", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRole_A726FAF4" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRole_4554AF84": { + "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRole_C67645E8": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-252b9bf8/IamRole", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRole_4554AF84" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-fc31ce84/IamRole", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRole_C67645E8" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRole_FD7BC908": { + "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRole_04D0965F": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-675a2aa1/IamRole", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRole_FD7BC908" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-9340593a/IamRole", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRole_04D0965F" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRole_7260B85F": { + "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRole_8DDCE95B": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-ae97bd1d/IamRole", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRole_7260B85F" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-f339af8e/IamRole", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRole_8DDCE95B" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" @@ -309,65 +309,65 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_iam_role_policy": { - "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRolePolicy_45F66540": { + "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRolePolicy_6CCCE15D": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-440eabdf/IamRolePolicy", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRolePolicy_45F66540" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-985d246b/IamRolePolicy", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRolePolicy_6CCCE15D" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.cloudCounter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.exTable.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRole_324909ED.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRole_0AE31367.name}" }, - "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRolePolicy_A41FA737": { + "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRolePolicy_1F6B3972": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-e889c56f/IamRolePolicy", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRolePolicy_A41FA737" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-dde55e33/IamRolePolicy", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRolePolicy_1F6B3972" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.cloudCounter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.exTable.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRole_72BADB08.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRole_04D5B40F.name}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRolePolicy_34D95A68": { + "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRolePolicy_660C691A": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-25075838/IamRolePolicy", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRolePolicy_34D95A68" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-f6d66b87/IamRolePolicy", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRolePolicy_660C691A" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.cloudCounter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.exTable.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRole_40D9C71E.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRole_A726FAF4.name}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRolePolicy_BD944116": { + "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRolePolicy_D947B954": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-252b9bf8/IamRolePolicy", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRolePolicy_BD944116" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-fc31ce84/IamRolePolicy", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRolePolicy_D947B954" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.cloudCounter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.exTable.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRole_4554AF84.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRole_C67645E8.name}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRolePolicy_3F8615D0": { + "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRolePolicy_18BDD0C4": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-675a2aa1/IamRolePolicy", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRolePolicy_3F8615D0" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-9340593a/IamRolePolicy", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRolePolicy_18BDD0C4" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.cloudCounter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.exTable.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRole_FD7BC908.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRole_04D0965F.name}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRolePolicy_9C52CDBE": { + "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRolePolicy_6A12CAB4": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-ae97bd1d/IamRolePolicy", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRolePolicy_9C52CDBE" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-f339af8e/IamRolePolicy", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRolePolicy_6A12CAB4" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:UpdateItem\"],\"Resource\":[\"${aws_dynamodb_table.cloudCounter.arn}\"],\"Effect\":\"Allow\"},{\"Action\":[\"dynamodb:PutItem\"],\"Resource\":[\"${aws_dynamodb_table.exTable.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRole_7260B85F.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRole_8DDCE95B.name}" }, "hitCountisincrementedaccordingtothebucketevent_Handler_IamRolePolicy_678D6495": { "//": { @@ -381,65 +381,65 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_iam_role_policy_attachment": { - "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRolePolicyAttachment_CCFCC1DD": { + "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRolePolicyAttachment_2C55E8D1": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-440eabdf/IamRolePolicyAttachment", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRolePolicyAttachment_CCFCC1DD" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-985d246b/IamRolePolicyAttachment", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRolePolicyAttachment_2C55E8D1" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRole_324909ED.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRole_0AE31367.name}" }, - "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRolePolicyAttachment_7363B734": { + "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRolePolicyAttachment_C39CA53A": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-e889c56f/IamRolePolicyAttachment", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRolePolicyAttachment_7363B734" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-dde55e33/IamRolePolicyAttachment", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRolePolicyAttachment_C39CA53A" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRole_72BADB08.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRole_04D5B40F.name}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRolePolicyAttachment_6E96AE56": { + "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRolePolicyAttachment_46C835A1": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-25075838/IamRolePolicyAttachment", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRolePolicyAttachment_6E96AE56" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-f6d66b87/IamRolePolicyAttachment", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRolePolicyAttachment_46C835A1" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRole_40D9C71E.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRole_A726FAF4.name}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRolePolicyAttachment_C2EED243": { + "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRolePolicyAttachment_5954A557": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-252b9bf8/IamRolePolicyAttachment", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRolePolicyAttachment_C2EED243" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-fc31ce84/IamRolePolicyAttachment", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRolePolicyAttachment_5954A557" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRole_4554AF84.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRole_C67645E8.name}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRolePolicyAttachment_ABD4312B": { + "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRolePolicyAttachment_82F91644": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-675a2aa1/IamRolePolicyAttachment", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRolePolicyAttachment_ABD4312B" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-9340593a/IamRolePolicyAttachment", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRolePolicyAttachment_82F91644" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRole_FD7BC908.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRole_04D0965F.name}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRolePolicyAttachment_8E09ADAB": { + "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRolePolicyAttachment_595A1B05": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-ae97bd1d/IamRolePolicyAttachment", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRolePolicyAttachment_8E09ADAB" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-f339af8e/IamRolePolicyAttachment", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRolePolicyAttachment_595A1B05" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRole_7260B85F.name}" + "role": "${aws_iam_role.cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRole_8DDCE95B.name}" }, "hitCountisincrementedaccordingtothebucketevent_Handler_IamRolePolicyAttachment_A3DD9377": { "//": { @@ -453,11 +453,11 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_lambda_function": { - "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_B2A2D2CC": { + "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_DC7E8D08": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-440eabdf/Default", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_B2A2D2CC" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-985d246b/Default", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_DC7E8D08" } }, "environment": { @@ -466,28 +466,28 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { "DYNAMODB_TABLE_NAME_d5d44f18": "${aws_dynamodb_table.exTable.name}", "DYNAMODB_TABLE_NAME_d5d44f18_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_d5d44f18_PRIMARY_KEY": "_id", - "WING_FUNCTION_NAME": "cloud-Bucket-on_create-OnMessage-440eabdf-c86eb675", + "WING_FUNCTION_NAME": "cloud-Bucket-oncreate-OnMessage-985d246b-c8b5336b", "WING_TARGET": "tf-aws" } }, - "function_name": "cloud-Bucket-on_create-OnMessage-440eabdf-c86eb675", + "function_name": "cloud-Bucket-oncreate-OnMessage-985d246b-c8b5336b", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_IamRole_324909ED.arn}", + "role": "${aws_iam_role.cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_IamRole_0AE31367.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_S3Object_0E9FF293.key}", + "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_S3Object_F63A1A4F.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_64E70E45": { + "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_698186C3": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-e889c56f/Default", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_64E70E45" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-dde55e33/Default", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_698186C3" } }, "environment": { @@ -496,28 +496,28 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { "DYNAMODB_TABLE_NAME_d5d44f18": "${aws_dynamodb_table.exTable.name}", "DYNAMODB_TABLE_NAME_d5d44f18_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_d5d44f18_PRIMARY_KEY": "_id", - "WING_FUNCTION_NAME": "cloud-Bucket-on_create-OnMessage-e889c56f-c8509332", + "WING_FUNCTION_NAME": "cloud-Bucket-oncreate-OnMessage-dde55e33-c8f1ed3a", "WING_TARGET": "tf-aws" } }, - "function_name": "cloud-Bucket-on_create-OnMessage-e889c56f-c8509332", + "function_name": "cloud-Bucket-oncreate-OnMessage-dde55e33-c8f1ed3a", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_IamRole_72BADB08.arn}", + "role": "${aws_iam_role.cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_IamRole_04D5B40F.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_S3Object_3560885F.key}", + "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_S3Object_58A055C4.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_4842B02D": { + "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_0F807404": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-25075838/Default", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_4842B02D" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-f6d66b87/Default", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_0F807404" } }, "environment": { @@ -526,28 +526,28 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { "DYNAMODB_TABLE_NAME_d5d44f18": "${aws_dynamodb_table.exTable.name}", "DYNAMODB_TABLE_NAME_d5d44f18_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_d5d44f18_PRIMARY_KEY": "_id", - "WING_FUNCTION_NAME": "cloud-Bucket-on_delete-OnMessage-25075838-c8e76d95", + "WING_FUNCTION_NAME": "cloud-Bucket-ondelete-OnMessage-f6d66b87-c8eb9d81", "WING_TARGET": "tf-aws" } }, - "function_name": "cloud-Bucket-on_delete-OnMessage-25075838-c8e76d95", + "function_name": "cloud-Bucket-ondelete-OnMessage-f6d66b87-c8eb9d81", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_delete-OnMessage-25075838_IamRole_40D9C71E.arn}", + "role": "${aws_iam_role.cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_IamRole_A726FAF4.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-on_delete-OnMessage-25075838_S3Object_BE83E70F.key}", + "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_S3Object_C83BE1EE.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_D08B52C1": { + "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_186CE343": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-252b9bf8/Default", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_D08B52C1" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-fc31ce84/Default", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_186CE343" } }, "environment": { @@ -556,28 +556,28 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { "DYNAMODB_TABLE_NAME_d5d44f18": "${aws_dynamodb_table.exTable.name}", "DYNAMODB_TABLE_NAME_d5d44f18_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_d5d44f18_PRIMARY_KEY": "_id", - "WING_FUNCTION_NAME": "cloud-Bucket-on_delete-OnMessage-252b9bf8-c84c16bd", + "WING_FUNCTION_NAME": "cloud-Bucket-ondelete-OnMessage-fc31ce84-c85277b8", "WING_TARGET": "tf-aws" } }, - "function_name": "cloud-Bucket-on_delete-OnMessage-252b9bf8-c84c16bd", + "function_name": "cloud-Bucket-ondelete-OnMessage-fc31ce84-c85277b8", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_IamRole_4554AF84.arn}", + "role": "${aws_iam_role.cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_IamRole_C67645E8.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_S3Object_DF34F087.key}", + "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_S3Object_CA93A6EE.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_1152DF11": { + "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_EA7B0E99": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-675a2aa1/Default", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_1152DF11" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-9340593a/Default", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_EA7B0E99" } }, "environment": { @@ -586,28 +586,28 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { "DYNAMODB_TABLE_NAME_d5d44f18": "${aws_dynamodb_table.exTable.name}", "DYNAMODB_TABLE_NAME_d5d44f18_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_d5d44f18_PRIMARY_KEY": "_id", - "WING_FUNCTION_NAME": "cloud-Bucket-on_update-OnMessage-675a2aa1-c80803b8", + "WING_FUNCTION_NAME": "cloud-Bucket-onupdate-OnMessage-9340593a-c858bb92", "WING_TARGET": "tf-aws" } }, - "function_name": "cloud-Bucket-on_update-OnMessage-675a2aa1-c80803b8", + "function_name": "cloud-Bucket-onupdate-OnMessage-9340593a-c858bb92", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_IamRole_FD7BC908.arn}", + "role": "${aws_iam_role.cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_IamRole_04D0965F.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_S3Object_CD5AB0FC.key}", + "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_S3Object_94B369EC.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_9F81CF98": { + "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_EC49C62D": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-ae97bd1d/Default", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_9F81CF98" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-f339af8e/Default", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_EC49C62D" } }, "environment": { @@ -616,17 +616,17 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { "DYNAMODB_TABLE_NAME_d5d44f18": "${aws_dynamodb_table.exTable.name}", "DYNAMODB_TABLE_NAME_d5d44f18_COLUMNS": "{\"_id\":0,\"key\":0,\"operation\":0,\"source\":0}", "DYNAMODB_TABLE_NAME_d5d44f18_PRIMARY_KEY": "_id", - "WING_FUNCTION_NAME": "cloud-Bucket-on_update-OnMessage-ae97bd1d-c84cffd8", + "WING_FUNCTION_NAME": "cloud-Bucket-onupdate-OnMessage-f339af8e-c8da1a2b", "WING_TARGET": "tf-aws" } }, - "function_name": "cloud-Bucket-on_update-OnMessage-ae97bd1d-c84cffd8", + "function_name": "cloud-Bucket-onupdate-OnMessage-f339af8e-c8da1a2b", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_IamRole_7260B85F.arn}", + "role": "${aws_iam_role.cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_IamRole_8DDCE95B.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_S3Object_F63E681D.key}", + "s3_key": "${aws_s3_object.cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_S3Object_909FA90C.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], @@ -665,77 +665,77 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_lambda_permission": { - "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_InvokePermission-c89fd66889f1b8842d3aee252263214e2b098b9782_FBEA3168": { + "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_InvokePermission-c8d5f2312edd40bd1e76a2bc8618ecb582e7b4c6d8_5E0C4B75": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-440eabdf/InvokePermission-c89fd66889f1b8842d3aee252263214e2b098b9782", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_InvokePermission-c89fd66889f1b8842d3aee252263214e2b098b9782_FBEA3168" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-985d246b/InvokePermission-c8d5f2312edd40bd1e76a2bc8618ecb582e7b4c6d8", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_InvokePermission-c8d5f2312edd40bd1e76a2bc8618ecb582e7b4c6d8_5E0C4B75" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_B2A2D2CC.function_name}", + "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_DC7E8D08.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}" + "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}" }, - "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_InvokePermission-c89fd66889f1b8842d3aee252263214e2b098b9782_914E1412": { + "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_InvokePermission-c8d5f2312edd40bd1e76a2bc8618ecb582e7b4c6d8_71C88E79": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-e889c56f/InvokePermission-c89fd66889f1b8842d3aee252263214e2b098b9782", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_InvokePermission-c89fd66889f1b8842d3aee252263214e2b098b9782_914E1412" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-dde55e33/InvokePermission-c8d5f2312edd40bd1e76a2bc8618ecb582e7b4c6d8", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_InvokePermission-c8d5f2312edd40bd1e76a2bc8618ecb582e7b4c6d8_71C88E79" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_64E70E45.function_name}", + "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_698186C3.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}" + "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_InvokePermission-c8f63fc3fb14f6c3afb9709525bdfe56f930b0f062_0BBFD2FD": { + "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_InvokePermission-c81247452a8e791f6f22f8e22adc2d947086ccdb05_033747FD": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-25075838/InvokePermission-c8f63fc3fb14f6c3afb9709525bdfe56f930b0f062", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_InvokePermission-c8f63fc3fb14f6c3afb9709525bdfe56f930b0f062_0BBFD2FD" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-f6d66b87/InvokePermission-c81247452a8e791f6f22f8e22adc2d947086ccdb05", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_InvokePermission-c81247452a8e791f6f22f8e22adc2d947086ccdb05_033747FD" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-on_delete-OnMessage-25075838_4842B02D.function_name}", + "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_0F807404.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}" + "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_InvokePermission-c8f63fc3fb14f6c3afb9709525bdfe56f930b0f062_DCE299CC": { + "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_InvokePermission-c81247452a8e791f6f22f8e22adc2d947086ccdb05_0B8771EC": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-252b9bf8/InvokePermission-c8f63fc3fb14f6c3afb9709525bdfe56f930b0f062", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_InvokePermission-c8f63fc3fb14f6c3afb9709525bdfe56f930b0f062_DCE299CC" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-fc31ce84/InvokePermission-c81247452a8e791f6f22f8e22adc2d947086ccdb05", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_InvokePermission-c81247452a8e791f6f22f8e22adc2d947086ccdb05_0B8771EC" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_D08B52C1.function_name}", + "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_186CE343.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}" + "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_InvokePermission-c8cecab74248f68ee1fd2ffd8c17841f84e2c5d672_05622DA2": { + "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_InvokePermission-c822c2b6078afbaa8f370ee01e4c8e689ebf88b662_5FB6A8D2": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-675a2aa1/InvokePermission-c8cecab74248f68ee1fd2ffd8c17841f84e2c5d672", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_InvokePermission-c8cecab74248f68ee1fd2ffd8c17841f84e2c5d672_05622DA2" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-9340593a/InvokePermission-c822c2b6078afbaa8f370ee01e4c8e689ebf88b662", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_InvokePermission-c822c2b6078afbaa8f370ee01e4c8e689ebf88b662_5FB6A8D2" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_1152DF11.function_name}", + "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_EA7B0E99.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}" + "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}" }, - "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_InvokePermission-c8cecab74248f68ee1fd2ffd8c17841f84e2c5d672_16C06870": { + "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_InvokePermission-c822c2b6078afbaa8f370ee01e4c8e689ebf88b662_E8018B16": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-ae97bd1d/InvokePermission-c8cecab74248f68ee1fd2ffd8c17841f84e2c5d672", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_InvokePermission-c8cecab74248f68ee1fd2ffd8c17841f84e2c5d672_16C06870" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-f339af8e/InvokePermission-c822c2b6078afbaa8f370ee01e4c8e689ebf88b662", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_InvokePermission-c822c2b6078afbaa8f370ee01e4c8e689ebf88b662_E8018B16" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_9F81CF98.function_name}", + "function_name": "${aws_lambda_function.cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_EC49C62D.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}" + "source_arn": "${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}" } }, "aws_s3_bucket": { @@ -769,31 +769,31 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { }, "bucket": "${aws_s3_bucket.cloudBucket.id}", "depends_on": [ - "aws_sns_topic_policy.cloudBucket_cloudBucket-on_delete_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_25EB2271", - "aws_sns_topic_policy.cloudBucket_cloudBucket-on_update_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_C785E6BD", - "aws_sns_topic_policy.cloudBucket_cloudBucket-on_create_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_38C2E52D" + "aws_sns_topic_policy.cloudBucket_cloudBucket-ondelete_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_63EEA617", + "aws_sns_topic_policy.cloudBucket_cloudBucket-onupdate_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_AACD1271", + "aws_sns_topic_policy.cloudBucket_cloudBucket-oncreate_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_2B35518E" ], "topic": [ { "events": [ "s3:ObjectRemoved:*" ], - "id": "on-delete-notification", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}" + "id": "on-ondelete-notification", + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}" }, { "events": [ "s3:ObjectCreated:Post" ], - "id": "on-update-notification", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}" + "id": "on-onupdate-notification", + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}" }, { "events": [ "s3:ObjectCreated:Put" ], - "id": "on-create-notification", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}" + "id": "on-oncreate-notification", + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}" } ] } @@ -832,66 +832,66 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_s3_object": { - "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_S3Object_0E9FF293": { + "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_S3Object_F63A1A4F": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-440eabdf/S3Object", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_S3Object_0E9FF293" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-985d246b/S3Object", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_S3Object_F63A1A4F" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_S3Object_3560885F": { + "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_S3Object_58A055C4": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create-OnMessage-e889c56f/S3Object", - "uniqueId": "cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_S3Object_3560885F" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate-OnMessage-dde55e33/S3Object", + "uniqueId": "cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_S3Object_58A055C4" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_S3Object_BE83E70F": { + "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_S3Object_C83BE1EE": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-25075838/S3Object", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-25075838_S3Object_BE83E70F" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-f6d66b87/S3Object", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_S3Object_C83BE1EE" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_S3Object_DF34F087": { + "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_S3Object_CA93A6EE": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete-OnMessage-252b9bf8/S3Object", - "uniqueId": "cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_S3Object_DF34F087" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete-OnMessage-fc31ce84/S3Object", + "uniqueId": "cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_S3Object_CA93A6EE" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_S3Object_CD5AB0FC": { + "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_S3Object_94B369EC": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-675a2aa1/S3Object", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_S3Object_CD5AB0FC" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-9340593a/S3Object", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_S3Object_94B369EC" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_S3Object_F63E681D": { + "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_S3Object_909FA90C": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update-OnMessage-ae97bd1d/S3Object", - "uniqueId": "cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_S3Object_F63E681D" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate-OnMessage-f339af8e/S3Object", + "uniqueId": "cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_S3Object_909FA90C" } }, "bucket": "${aws_s3_bucket.Code.bucket}", @@ -911,132 +911,132 @@ module.exports = function({ $Source, $b, $checkHitCount, $util_Util, $wait }) { } }, "aws_sns_topic": { - "cloudBucket_cloudBucket-on_create_FD378B04": { + "cloudBucket_cloudBucket-oncreate_CBC9308E": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create/Default", - "uniqueId": "cloudBucket_cloudBucket-on_create_FD378B04" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate/Default", + "uniqueId": "cloudBucket_cloudBucket-oncreate_CBC9308E" } }, - "name": "cloud-Bucket-on_create-c89fd668" + "name": "cloud-Bucket-oncreate-c8d5f231" }, - "cloudBucket_cloudBucket-on_delete_D72FF170": { + "cloudBucket_cloudBucket-ondelete_C031AAEE": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete/Default", - "uniqueId": "cloudBucket_cloudBucket-on_delete_D72FF170" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete/Default", + "uniqueId": "cloudBucket_cloudBucket-ondelete_C031AAEE" } }, - "name": "cloud-Bucket-on_delete-c8f63fc3" + "name": "cloud-Bucket-ondelete-c8124745" }, - "cloudBucket_cloudBucket-on_update_C26CC5D4": { + "cloudBucket_cloudBucket-onupdate_27807F64": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update/Default", - "uniqueId": "cloudBucket_cloudBucket-on_update_C26CC5D4" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate/Default", + "uniqueId": "cloudBucket_cloudBucket-onupdate_27807F64" } }, - "name": "cloud-Bucket-on_update-c8cecab7" + "name": "cloud-Bucket-onupdate-c822c2b6" } }, "aws_sns_topic_policy": { - "cloudBucket_cloudBucket-on_create_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_38C2E52D": { + "cloudBucket_cloudBucket-oncreate_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_2B35518E": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create/PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447", - "uniqueId": "cloudBucket_cloudBucket-on_create_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_38C2E52D" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate/PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447", + "uniqueId": "cloudBucket_cloudBucket-oncreate_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_2B35518E" } }, - "arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.cloudBucket.arn}\"}}}]}" + "arn": "${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.cloudBucket.arn}\"}}}]}" }, - "cloudBucket_cloudBucket-on_delete_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_25EB2271": { + "cloudBucket_cloudBucket-ondelete_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_63EEA617": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete/PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447", - "uniqueId": "cloudBucket_cloudBucket-on_delete_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_25EB2271" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete/PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447", + "uniqueId": "cloudBucket_cloudBucket-ondelete_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_63EEA617" } }, - "arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.cloudBucket.arn}\"}}}]}" + "arn": "${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.cloudBucket.arn}\"}}}]}" }, - "cloudBucket_cloudBucket-on_update_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_C785E6BD": { + "cloudBucket_cloudBucket-onupdate_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_AACD1271": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update/PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447", - "uniqueId": "cloudBucket_cloudBucket-on_update_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_C785E6BD" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate/PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447", + "uniqueId": "cloudBucket_cloudBucket-onupdate_PublishPermission-c87175e7bebeddc2b07a15f76241cf54a4d755b447_AACD1271" } }, - "arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.cloudBucket.arn}\"}}}]}" + "arn": "${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.cloudBucket.arn}\"}}}]}" } }, "aws_sns_topic_subscription": { - "cloudBucket_cloudBucket-on_create_cloudBucket-on_create-TopicSubscription-440eabdf_4F6969EE": { + "cloudBucket_cloudBucket-oncreate_cloudBucket-oncreate-TopicSubscription-985d246b_82904987": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create/cloud.Bucket-on_create-TopicSubscription-440eabdf", - "uniqueId": "cloudBucket_cloudBucket-on_create_cloudBucket-on_create-TopicSubscription-440eabdf_4F6969EE" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate/cloud.Bucket-oncreate-TopicSubscription-985d246b", + "uniqueId": "cloudBucket_cloudBucket-oncreate_cloudBucket-oncreate-TopicSubscription-985d246b_82904987" } }, - "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-on_create-OnMessage-440eabdf_B2A2D2CC.arn}", + "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-oncreate-OnMessage-985d246b_DC7E8D08.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}" + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}" }, - "cloudBucket_cloudBucket-on_create_cloudBucket-on_create-TopicSubscription-e889c56f_E43BF0AD": { + "cloudBucket_cloudBucket-oncreate_cloudBucket-oncreate-TopicSubscription-dde55e33_22FEA0D5": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_create/cloud.Bucket-on_create-TopicSubscription-e889c56f", - "uniqueId": "cloudBucket_cloudBucket-on_create_cloudBucket-on_create-TopicSubscription-e889c56f_E43BF0AD" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-oncreate/cloud.Bucket-oncreate-TopicSubscription-dde55e33", + "uniqueId": "cloudBucket_cloudBucket-oncreate_cloudBucket-oncreate-TopicSubscription-dde55e33_22FEA0D5" } }, - "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-on_create-OnMessage-e889c56f_64E70E45.arn}", + "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-oncreate-OnMessage-dde55e33_698186C3.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_create_FD378B04.arn}" + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-oncreate_CBC9308E.arn}" }, - "cloudBucket_cloudBucket-on_delete_cloudBucket-on_delete-TopicSubscription-25075838_7133D129": { + "cloudBucket_cloudBucket-ondelete_cloudBucket-ondelete-TopicSubscription-f6d66b87_62ACE3E4": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete/cloud.Bucket-on_delete-TopicSubscription-25075838", - "uniqueId": "cloudBucket_cloudBucket-on_delete_cloudBucket-on_delete-TopicSubscription-25075838_7133D129" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete/cloud.Bucket-ondelete-TopicSubscription-f6d66b87", + "uniqueId": "cloudBucket_cloudBucket-ondelete_cloudBucket-ondelete-TopicSubscription-f6d66b87_62ACE3E4" } }, - "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-on_delete-OnMessage-25075838_4842B02D.arn}", + "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-ondelete-OnMessage-f6d66b87_0F807404.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}" + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}" }, - "cloudBucket_cloudBucket-on_delete_cloudBucket-on_delete-TopicSubscription-252b9bf8_D8800E63": { + "cloudBucket_cloudBucket-ondelete_cloudBucket-ondelete-TopicSubscription-fc31ce84_FAC20870": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_delete/cloud.Bucket-on_delete-TopicSubscription-252b9bf8", - "uniqueId": "cloudBucket_cloudBucket-on_delete_cloudBucket-on_delete-TopicSubscription-252b9bf8_D8800E63" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-ondelete/cloud.Bucket-ondelete-TopicSubscription-fc31ce84", + "uniqueId": "cloudBucket_cloudBucket-ondelete_cloudBucket-ondelete-TopicSubscription-fc31ce84_FAC20870" } }, - "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-on_delete-OnMessage-252b9bf8_D08B52C1.arn}", + "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-ondelete-OnMessage-fc31ce84_186CE343.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_delete_D72FF170.arn}" + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-ondelete_C031AAEE.arn}" }, - "cloudBucket_cloudBucket-on_update_cloudBucket-on_update-TopicSubscription-675a2aa1_1E9BC18A": { + "cloudBucket_cloudBucket-onupdate_cloudBucket-onupdate-TopicSubscription-9340593a_0DCFF956": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update/cloud.Bucket-on_update-TopicSubscription-675a2aa1", - "uniqueId": "cloudBucket_cloudBucket-on_update_cloudBucket-on_update-TopicSubscription-675a2aa1_1E9BC18A" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate/cloud.Bucket-onupdate-TopicSubscription-9340593a", + "uniqueId": "cloudBucket_cloudBucket-onupdate_cloudBucket-onupdate-TopicSubscription-9340593a_0DCFF956" } }, - "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-on_update-OnMessage-675a2aa1_1152DF11.arn}", + "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-onupdate-OnMessage-9340593a_EA7B0E99.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}" + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}" }, - "cloudBucket_cloudBucket-on_update_cloudBucket-on_update-TopicSubscription-ae97bd1d_7580CB94": { + "cloudBucket_cloudBucket-onupdate_cloudBucket-onupdate-TopicSubscription-f339af8e_12FEA3F7": { "//": { "metadata": { - "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-on_update/cloud.Bucket-on_update-TopicSubscription-ae97bd1d", - "uniqueId": "cloudBucket_cloudBucket-on_update_cloudBucket-on_update-TopicSubscription-ae97bd1d_7580CB94" + "path": "root/Default/Default/cloud.Bucket/cloud.Bucket-onupdate/cloud.Bucket-onupdate-TopicSubscription-f339af8e", + "uniqueId": "cloudBucket_cloudBucket-onupdate_cloudBucket-onupdate-TopicSubscription-f339af8e_12FEA3F7" } }, - "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-on_update-OnMessage-ae97bd1d_9F81CF98.arn}", + "endpoint": "${aws_lambda_function.cloudBucket_cloudBucket-onupdate-OnMessage-f339af8e_EC49C62D.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-on_update_C26CC5D4.arn}" + "topic_arn": "${aws_sns_topic.cloudBucket_cloudBucket-onupdate_27807F64.arn}" } } } diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bucket_events.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bucket_events.w_compile_tf-aws.md index 20bdddd3412..289a15f4d59 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bucket_events.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bucket_events.w_compile_tf-aws.md @@ -143,83 +143,83 @@ module.exports = function({ $b }) { }, "resource": { "aws_iam_role": { - "b_b-on_create-OnMessage-5f62bd7c_IamRole_9A76DD16": { + "b_b-oncreate-OnMessage-cd3f219f_IamRole_ACD86550": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-5f62bd7c/IamRole", - "uniqueId": "b_b-on_create-OnMessage-5f62bd7c_IamRole_9A76DD16" + "path": "root/Default/Default/b/b-oncreate-OnMessage-cd3f219f/IamRole", + "uniqueId": "b_b-oncreate-OnMessage-cd3f219f_IamRole_ACD86550" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "b_b-on_create-OnMessage-aef3f85d_IamRole_15C5A67F": { + "b_b-oncreate-OnMessage-f5efc76a_IamRole_5AB4D411": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-aef3f85d/IamRole", - "uniqueId": "b_b-on_create-OnMessage-aef3f85d_IamRole_15C5A67F" + "path": "root/Default/Default/b/b-oncreate-OnMessage-f5efc76a/IamRole", + "uniqueId": "b_b-oncreate-OnMessage-f5efc76a_IamRole_5AB4D411" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "b_b-on_delete-OnMessage-1c41a2ad_IamRole_9098CC63": { + "b_b-ondelete-OnMessage-2233a0be_IamRole_2A59A211": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-1c41a2ad/IamRole", - "uniqueId": "b_b-on_delete-OnMessage-1c41a2ad_IamRole_9098CC63" + "path": "root/Default/Default/b/b-ondelete-OnMessage-2233a0be/IamRole", + "uniqueId": "b_b-ondelete-OnMessage-2233a0be_IamRole_2A59A211" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "b_b-on_delete-OnMessage-85baa474_IamRole_AF99ADD3": { + "b_b-ondelete-OnMessage-66f114f1_IamRole_DC21898E": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-85baa474/IamRole", - "uniqueId": "b_b-on_delete-OnMessage-85baa474_IamRole_AF99ADD3" + "path": "root/Default/Default/b/b-ondelete-OnMessage-66f114f1/IamRole", + "uniqueId": "b_b-ondelete-OnMessage-66f114f1_IamRole_DC21898E" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "b_b-on_update-OnMessage-3ed6033f_IamRole_86BF6BCD": { + "b_b-onupdate-OnMessage-9eb7f7e1_IamRole_7289CFEA": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-3ed6033f/IamRole", - "uniqueId": "b_b-on_update-OnMessage-3ed6033f_IamRole_86BF6BCD" + "path": "root/Default/Default/b/b-onupdate-OnMessage-9eb7f7e1/IamRole", + "uniqueId": "b_b-onupdate-OnMessage-9eb7f7e1_IamRole_7289CFEA" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "b_b-on_update-OnMessage-d39e959f_IamRole_B0CC974C": { + "b_b-onupdate-OnMessage-aac4257e_IamRole_5A0EC266": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-d39e959f/IamRole", - "uniqueId": "b_b-on_update-OnMessage-d39e959f_IamRole_B0CC974C" + "path": "root/Default/Default/b/b-onupdate-OnMessage-aac4257e/IamRole", + "uniqueId": "b_b-onupdate-OnMessage-aac4257e_IamRole_5A0EC266" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "other_other-on_create-OnMessage-0af389c6_IamRole_787C10EF": { + "other_other-oncreate-OnMessage-9951bd6e_IamRole_15B1699D": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create-OnMessage-0af389c6/IamRole", - "uniqueId": "other_other-on_create-OnMessage-0af389c6_IamRole_787C10EF" + "path": "root/Default/Default/other/other-oncreate-OnMessage-9951bd6e/IamRole", + "uniqueId": "other_other-oncreate-OnMessage-9951bd6e_IamRole_15B1699D" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "other_other-on_delete-OnMessage-5e9bc889_IamRole_E13A811E": { + "other_other-ondelete-OnMessage-b5867be0_IamRole_FA0F6C59": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete-OnMessage-5e9bc889/IamRole", - "uniqueId": "other_other-on_delete-OnMessage-5e9bc889_IamRole_E13A811E" + "path": "root/Default/Default/other/other-ondelete-OnMessage-b5867be0/IamRole", + "uniqueId": "other_other-ondelete-OnMessage-b5867be0_IamRole_FA0F6C59" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" }, - "other_other-on_update-OnMessage-5290616b_IamRole_D28EA98B": { + "other_other-onupdate-OnMessage-d8c5ea34_IamRole_1AF0D2AA": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update-OnMessage-5290616b/IamRole", - "uniqueId": "other_other-on_update-OnMessage-5290616b_IamRole_D28EA98B" + "path": "root/Default/Default/other/other-onupdate-OnMessage-d8c5ea34/IamRole", + "uniqueId": "other_other-onupdate-OnMessage-d8c5ea34_IamRole_1AF0D2AA" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" @@ -235,95 +235,95 @@ module.exports = function({ $b }) { } }, "aws_iam_role_policy": { - "b_b-on_create-OnMessage-5f62bd7c_IamRolePolicy_44DF80BD": { + "b_b-oncreate-OnMessage-cd3f219f_IamRolePolicy_4BD248DE": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-5f62bd7c/IamRolePolicy", - "uniqueId": "b_b-on_create-OnMessage-5f62bd7c_IamRolePolicy_44DF80BD" + "path": "root/Default/Default/b/b-oncreate-OnMessage-cd3f219f/IamRolePolicy", + "uniqueId": "b_b-oncreate-OnMessage-cd3f219f_IamRolePolicy_4BD248DE" } }, - "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", - "role": "${aws_iam_role.b_b-on_create-OnMessage-5f62bd7c_IamRole_9A76DD16.name}" + "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:PutObject*\",\"s3:Abort*\"],\"Resource\":[\"${aws_s3_bucket.other.arn}\",\"${aws_s3_bucket.other.arn}/*\"],\"Effect\":\"Allow\"}]}", + "role": "${aws_iam_role.b_b-oncreate-OnMessage-cd3f219f_IamRole_ACD86550.name}" }, - "b_b-on_create-OnMessage-aef3f85d_IamRolePolicy_52F8EA17": { + "b_b-oncreate-OnMessage-f5efc76a_IamRolePolicy_057C4E0C": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-aef3f85d/IamRolePolicy", - "uniqueId": "b_b-on_create-OnMessage-aef3f85d_IamRolePolicy_52F8EA17" + "path": "root/Default/Default/b/b-oncreate-OnMessage-f5efc76a/IamRolePolicy", + "uniqueId": "b_b-oncreate-OnMessage-f5efc76a_IamRolePolicy_057C4E0C" } }, - "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:PutObject*\",\"s3:Abort*\"],\"Resource\":[\"${aws_s3_bucket.other.arn}\",\"${aws_s3_bucket.other.arn}/*\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.b_b-on_create-OnMessage-aef3f85d_IamRole_15C5A67F.name}" + "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", + "role": "${aws_iam_role.b_b-oncreate-OnMessage-f5efc76a_IamRole_5AB4D411.name}" }, - "b_b-on_delete-OnMessage-1c41a2ad_IamRolePolicy_C748BFB2": { + "b_b-ondelete-OnMessage-2233a0be_IamRolePolicy_4EDE2F19": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-1c41a2ad/IamRolePolicy", - "uniqueId": "b_b-on_delete-OnMessage-1c41a2ad_IamRolePolicy_C748BFB2" + "path": "root/Default/Default/b/b-ondelete-OnMessage-2233a0be/IamRolePolicy", + "uniqueId": "b_b-ondelete-OnMessage-2233a0be_IamRolePolicy_4EDE2F19" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:PutObject*\",\"s3:Abort*\"],\"Resource\":[\"${aws_s3_bucket.other.arn}\",\"${aws_s3_bucket.other.arn}/*\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.b_b-on_delete-OnMessage-1c41a2ad_IamRole_9098CC63.name}" + "role": "${aws_iam_role.b_b-ondelete-OnMessage-2233a0be_IamRole_2A59A211.name}" }, - "b_b-on_delete-OnMessage-85baa474_IamRolePolicy_B3163C35": { + "b_b-ondelete-OnMessage-66f114f1_IamRolePolicy_03496A3F": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-85baa474/IamRolePolicy", - "uniqueId": "b_b-on_delete-OnMessage-85baa474_IamRolePolicy_B3163C35" + "path": "root/Default/Default/b/b-ondelete-OnMessage-66f114f1/IamRolePolicy", + "uniqueId": "b_b-ondelete-OnMessage-66f114f1_IamRolePolicy_03496A3F" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", - "role": "${aws_iam_role.b_b-on_delete-OnMessage-85baa474_IamRole_AF99ADD3.name}" + "role": "${aws_iam_role.b_b-ondelete-OnMessage-66f114f1_IamRole_DC21898E.name}" }, - "b_b-on_update-OnMessage-3ed6033f_IamRolePolicy_04C677B2": { + "b_b-onupdate-OnMessage-9eb7f7e1_IamRolePolicy_A78BEBB2": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-3ed6033f/IamRolePolicy", - "uniqueId": "b_b-on_update-OnMessage-3ed6033f_IamRolePolicy_04C677B2" + "path": "root/Default/Default/b/b-onupdate-OnMessage-9eb7f7e1/IamRolePolicy", + "uniqueId": "b_b-onupdate-OnMessage-9eb7f7e1_IamRolePolicy_A78BEBB2" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:PutObject*\",\"s3:Abort*\"],\"Resource\":[\"${aws_s3_bucket.other.arn}\",\"${aws_s3_bucket.other.arn}/*\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.b_b-on_update-OnMessage-3ed6033f_IamRole_86BF6BCD.name}" + "role": "${aws_iam_role.b_b-onupdate-OnMessage-9eb7f7e1_IamRole_7289CFEA.name}" }, - "b_b-on_update-OnMessage-d39e959f_IamRolePolicy_63B64DF3": { + "b_b-onupdate-OnMessage-aac4257e_IamRolePolicy_A92955CF": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-d39e959f/IamRolePolicy", - "uniqueId": "b_b-on_update-OnMessage-d39e959f_IamRolePolicy_63B64DF3" + "path": "root/Default/Default/b/b-onupdate-OnMessage-aac4257e/IamRolePolicy", + "uniqueId": "b_b-onupdate-OnMessage-aac4257e_IamRolePolicy_A92955CF" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", - "role": "${aws_iam_role.b_b-on_update-OnMessage-d39e959f_IamRole_B0CC974C.name}" + "role": "${aws_iam_role.b_b-onupdate-OnMessage-aac4257e_IamRole_5A0EC266.name}" }, - "other_other-on_create-OnMessage-0af389c6_IamRolePolicy_921B8561": { + "other_other-oncreate-OnMessage-9951bd6e_IamRolePolicy_CB002C00": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create-OnMessage-0af389c6/IamRolePolicy", - "uniqueId": "other_other-on_create-OnMessage-0af389c6_IamRolePolicy_921B8561" + "path": "root/Default/Default/other/other-oncreate-OnMessage-9951bd6e/IamRolePolicy", + "uniqueId": "other_other-oncreate-OnMessage-9951bd6e_IamRolePolicy_CB002C00" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", - "role": "${aws_iam_role.other_other-on_create-OnMessage-0af389c6_IamRole_787C10EF.name}" + "role": "${aws_iam_role.other_other-oncreate-OnMessage-9951bd6e_IamRole_15B1699D.name}" }, - "other_other-on_delete-OnMessage-5e9bc889_IamRolePolicy_FB7E5215": { + "other_other-ondelete-OnMessage-b5867be0_IamRolePolicy_C1506015": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete-OnMessage-5e9bc889/IamRolePolicy", - "uniqueId": "other_other-on_delete-OnMessage-5e9bc889_IamRolePolicy_FB7E5215" + "path": "root/Default/Default/other/other-ondelete-OnMessage-b5867be0/IamRolePolicy", + "uniqueId": "other_other-ondelete-OnMessage-b5867be0_IamRolePolicy_C1506015" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", - "role": "${aws_iam_role.other_other-on_delete-OnMessage-5e9bc889_IamRole_E13A811E.name}" + "role": "${aws_iam_role.other_other-ondelete-OnMessage-b5867be0_IamRole_FA0F6C59.name}" }, - "other_other-on_update-OnMessage-5290616b_IamRolePolicy_18513113": { + "other_other-onupdate-OnMessage-d8c5ea34_IamRolePolicy_EAAB2779": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update-OnMessage-5290616b/IamRolePolicy", - "uniqueId": "other_other-on_update-OnMessage-5290616b_IamRolePolicy_18513113" + "path": "root/Default/Default/other/other-onupdate-OnMessage-d8c5ea34/IamRolePolicy", + "uniqueId": "other_other-onupdate-OnMessage-d8c5ea34_IamRolePolicy_EAAB2779" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"none:null\",\"Resource\":\"*\"}]}", - "role": "${aws_iam_role.other_other-on_update-OnMessage-5290616b_IamRole_D28EA98B.name}" + "role": "${aws_iam_role.other_other-onupdate-OnMessage-d8c5ea34_IamRole_1AF0D2AA.name}" }, "testputtinganddeletingfromabuckettotriggerbucketevents_Handler_IamRolePolicy_4BAD9EF3": { "//": { @@ -337,95 +337,95 @@ module.exports = function({ $b }) { } }, "aws_iam_role_policy_attachment": { - "b_b-on_create-OnMessage-5f62bd7c_IamRolePolicyAttachment_5B82D718": { + "b_b-oncreate-OnMessage-cd3f219f_IamRolePolicyAttachment_3A438053": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-5f62bd7c/IamRolePolicyAttachment", - "uniqueId": "b_b-on_create-OnMessage-5f62bd7c_IamRolePolicyAttachment_5B82D718" + "path": "root/Default/Default/b/b-oncreate-OnMessage-cd3f219f/IamRolePolicyAttachment", + "uniqueId": "b_b-oncreate-OnMessage-cd3f219f_IamRolePolicyAttachment_3A438053" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.b_b-on_create-OnMessage-5f62bd7c_IamRole_9A76DD16.name}" + "role": "${aws_iam_role.b_b-oncreate-OnMessage-cd3f219f_IamRole_ACD86550.name}" }, - "b_b-on_create-OnMessage-aef3f85d_IamRolePolicyAttachment_61BEF998": { + "b_b-oncreate-OnMessage-f5efc76a_IamRolePolicyAttachment_42356E06": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-aef3f85d/IamRolePolicyAttachment", - "uniqueId": "b_b-on_create-OnMessage-aef3f85d_IamRolePolicyAttachment_61BEF998" + "path": "root/Default/Default/b/b-oncreate-OnMessage-f5efc76a/IamRolePolicyAttachment", + "uniqueId": "b_b-oncreate-OnMessage-f5efc76a_IamRolePolicyAttachment_42356E06" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.b_b-on_create-OnMessage-aef3f85d_IamRole_15C5A67F.name}" + "role": "${aws_iam_role.b_b-oncreate-OnMessage-f5efc76a_IamRole_5AB4D411.name}" }, - "b_b-on_delete-OnMessage-1c41a2ad_IamRolePolicyAttachment_CCF0EB05": { + "b_b-ondelete-OnMessage-2233a0be_IamRolePolicyAttachment_BC19A522": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-1c41a2ad/IamRolePolicyAttachment", - "uniqueId": "b_b-on_delete-OnMessage-1c41a2ad_IamRolePolicyAttachment_CCF0EB05" + "path": "root/Default/Default/b/b-ondelete-OnMessage-2233a0be/IamRolePolicyAttachment", + "uniqueId": "b_b-ondelete-OnMessage-2233a0be_IamRolePolicyAttachment_BC19A522" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.b_b-on_delete-OnMessage-1c41a2ad_IamRole_9098CC63.name}" + "role": "${aws_iam_role.b_b-ondelete-OnMessage-2233a0be_IamRole_2A59A211.name}" }, - "b_b-on_delete-OnMessage-85baa474_IamRolePolicyAttachment_1E5E64C9": { + "b_b-ondelete-OnMessage-66f114f1_IamRolePolicyAttachment_EB309BF1": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-85baa474/IamRolePolicyAttachment", - "uniqueId": "b_b-on_delete-OnMessage-85baa474_IamRolePolicyAttachment_1E5E64C9" + "path": "root/Default/Default/b/b-ondelete-OnMessage-66f114f1/IamRolePolicyAttachment", + "uniqueId": "b_b-ondelete-OnMessage-66f114f1_IamRolePolicyAttachment_EB309BF1" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.b_b-on_delete-OnMessage-85baa474_IamRole_AF99ADD3.name}" + "role": "${aws_iam_role.b_b-ondelete-OnMessage-66f114f1_IamRole_DC21898E.name}" }, - "b_b-on_update-OnMessage-3ed6033f_IamRolePolicyAttachment_55587500": { + "b_b-onupdate-OnMessage-9eb7f7e1_IamRolePolicyAttachment_1A1B6979": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-3ed6033f/IamRolePolicyAttachment", - "uniqueId": "b_b-on_update-OnMessage-3ed6033f_IamRolePolicyAttachment_55587500" + "path": "root/Default/Default/b/b-onupdate-OnMessage-9eb7f7e1/IamRolePolicyAttachment", + "uniqueId": "b_b-onupdate-OnMessage-9eb7f7e1_IamRolePolicyAttachment_1A1B6979" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.b_b-on_update-OnMessage-3ed6033f_IamRole_86BF6BCD.name}" + "role": "${aws_iam_role.b_b-onupdate-OnMessage-9eb7f7e1_IamRole_7289CFEA.name}" }, - "b_b-on_update-OnMessage-d39e959f_IamRolePolicyAttachment_E30D3F3F": { + "b_b-onupdate-OnMessage-aac4257e_IamRolePolicyAttachment_F6196A8C": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-d39e959f/IamRolePolicyAttachment", - "uniqueId": "b_b-on_update-OnMessage-d39e959f_IamRolePolicyAttachment_E30D3F3F" + "path": "root/Default/Default/b/b-onupdate-OnMessage-aac4257e/IamRolePolicyAttachment", + "uniqueId": "b_b-onupdate-OnMessage-aac4257e_IamRolePolicyAttachment_F6196A8C" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.b_b-on_update-OnMessage-d39e959f_IamRole_B0CC974C.name}" + "role": "${aws_iam_role.b_b-onupdate-OnMessage-aac4257e_IamRole_5A0EC266.name}" }, - "other_other-on_create-OnMessage-0af389c6_IamRolePolicyAttachment_AA13AC90": { + "other_other-oncreate-OnMessage-9951bd6e_IamRolePolicyAttachment_444BE231": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create-OnMessage-0af389c6/IamRolePolicyAttachment", - "uniqueId": "other_other-on_create-OnMessage-0af389c6_IamRolePolicyAttachment_AA13AC90" + "path": "root/Default/Default/other/other-oncreate-OnMessage-9951bd6e/IamRolePolicyAttachment", + "uniqueId": "other_other-oncreate-OnMessage-9951bd6e_IamRolePolicyAttachment_444BE231" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.other_other-on_create-OnMessage-0af389c6_IamRole_787C10EF.name}" + "role": "${aws_iam_role.other_other-oncreate-OnMessage-9951bd6e_IamRole_15B1699D.name}" }, - "other_other-on_delete-OnMessage-5e9bc889_IamRolePolicyAttachment_6469EDAA": { + "other_other-ondelete-OnMessage-b5867be0_IamRolePolicyAttachment_90003271": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete-OnMessage-5e9bc889/IamRolePolicyAttachment", - "uniqueId": "other_other-on_delete-OnMessage-5e9bc889_IamRolePolicyAttachment_6469EDAA" + "path": "root/Default/Default/other/other-ondelete-OnMessage-b5867be0/IamRolePolicyAttachment", + "uniqueId": "other_other-ondelete-OnMessage-b5867be0_IamRolePolicyAttachment_90003271" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.other_other-on_delete-OnMessage-5e9bc889_IamRole_E13A811E.name}" + "role": "${aws_iam_role.other_other-ondelete-OnMessage-b5867be0_IamRole_FA0F6C59.name}" }, - "other_other-on_update-OnMessage-5290616b_IamRolePolicyAttachment_04E6BC42": { + "other_other-onupdate-OnMessage-d8c5ea34_IamRolePolicyAttachment_EE064A67": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update-OnMessage-5290616b/IamRolePolicyAttachment", - "uniqueId": "other_other-on_update-OnMessage-5290616b_IamRolePolicyAttachment_04E6BC42" + "path": "root/Default/Default/other/other-onupdate-OnMessage-d8c5ea34/IamRolePolicyAttachment", + "uniqueId": "other_other-onupdate-OnMessage-d8c5ea34_IamRolePolicyAttachment_EE064A67" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.other_other-on_update-OnMessage-5290616b_IamRole_D28EA98B.name}" + "role": "${aws_iam_role.other_other-onupdate-OnMessage-d8c5ea34_IamRole_1AF0D2AA.name}" }, "testputtinganddeletingfromabuckettotriggerbucketevents_Handler_IamRolePolicyAttachment_2DB05AD7": { "//": { @@ -439,237 +439,237 @@ module.exports = function({ $b }) { } }, "aws_lambda_function": { - "b_b-on_create-OnMessage-5f62bd7c_38F80D99": { + "b_b-oncreate-OnMessage-cd3f219f_C1D94CC1": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-5f62bd7c/Default", - "uniqueId": "b_b-on_create-OnMessage-5f62bd7c_38F80D99" + "path": "root/Default/Default/b/b-oncreate-OnMessage-cd3f219f/Default", + "uniqueId": "b_b-oncreate-OnMessage-cd3f219f_C1D94CC1" } }, "environment": { "variables": { - "WING_FUNCTION_NAME": "b-on_create-OnMessage-5f62bd7c-c881be6f", + "BUCKET_NAME_73fd1ead": "${aws_s3_bucket.other.bucket}", + "WING_FUNCTION_NAME": "b-oncreate-OnMessage-cd3f219f-c8cb695a", "WING_TARGET": "tf-aws" } }, - "function_name": "b-on_create-OnMessage-5f62bd7c-c881be6f", + "function_name": "b-oncreate-OnMessage-cd3f219f-c8cb695a", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.b_b-on_create-OnMessage-5f62bd7c_IamRole_9A76DD16.arn}", + "role": "${aws_iam_role.b_b-oncreate-OnMessage-cd3f219f_IamRole_ACD86550.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.b_b-on_create-OnMessage-5f62bd7c_S3Object_B7DA9DD6.key}", + "s3_key": "${aws_s3_object.b_b-oncreate-OnMessage-cd3f219f_S3Object_55D05822.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "b_b-on_create-OnMessage-aef3f85d_13DE25F3": { + "b_b-oncreate-OnMessage-f5efc76a_7BBB42DA": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-aef3f85d/Default", - "uniqueId": "b_b-on_create-OnMessage-aef3f85d_13DE25F3" + "path": "root/Default/Default/b/b-oncreate-OnMessage-f5efc76a/Default", + "uniqueId": "b_b-oncreate-OnMessage-f5efc76a_7BBB42DA" } }, "environment": { "variables": { - "BUCKET_NAME_73fd1ead": "${aws_s3_bucket.other.bucket}", - "WING_FUNCTION_NAME": "b-on_create-OnMessage-aef3f85d-c8d1e844", + "WING_FUNCTION_NAME": "b-oncreate-OnMessage-f5efc76a-c87d122c", "WING_TARGET": "tf-aws" } }, - "function_name": "b-on_create-OnMessage-aef3f85d-c8d1e844", + "function_name": "b-oncreate-OnMessage-f5efc76a-c87d122c", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.b_b-on_create-OnMessage-aef3f85d_IamRole_15C5A67F.arn}", + "role": "${aws_iam_role.b_b-oncreate-OnMessage-f5efc76a_IamRole_5AB4D411.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.b_b-on_create-OnMessage-aef3f85d_S3Object_000601D1.key}", + "s3_key": "${aws_s3_object.b_b-oncreate-OnMessage-f5efc76a_S3Object_22CFBA18.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "b_b-on_delete-OnMessage-1c41a2ad_B7B3278B": { + "b_b-ondelete-OnMessage-2233a0be_DC04BB0D": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-1c41a2ad/Default", - "uniqueId": "b_b-on_delete-OnMessage-1c41a2ad_B7B3278B" + "path": "root/Default/Default/b/b-ondelete-OnMessage-2233a0be/Default", + "uniqueId": "b_b-ondelete-OnMessage-2233a0be_DC04BB0D" } }, "environment": { "variables": { "BUCKET_NAME_73fd1ead": "${aws_s3_bucket.other.bucket}", - "WING_FUNCTION_NAME": "b-on_delete-OnMessage-1c41a2ad-c87344ee", + "WING_FUNCTION_NAME": "b-ondelete-OnMessage-2233a0be-c879f640", "WING_TARGET": "tf-aws" } }, - "function_name": "b-on_delete-OnMessage-1c41a2ad-c87344ee", + "function_name": "b-ondelete-OnMessage-2233a0be-c879f640", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.b_b-on_delete-OnMessage-1c41a2ad_IamRole_9098CC63.arn}", + "role": "${aws_iam_role.b_b-ondelete-OnMessage-2233a0be_IamRole_2A59A211.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.b_b-on_delete-OnMessage-1c41a2ad_S3Object_DA3DDE14.key}", + "s3_key": "${aws_s3_object.b_b-ondelete-OnMessage-2233a0be_S3Object_AC61B541.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "b_b-on_delete-OnMessage-85baa474_BC89847D": { + "b_b-ondelete-OnMessage-66f114f1_04EF33D5": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-85baa474/Default", - "uniqueId": "b_b-on_delete-OnMessage-85baa474_BC89847D" + "path": "root/Default/Default/b/b-ondelete-OnMessage-66f114f1/Default", + "uniqueId": "b_b-ondelete-OnMessage-66f114f1_04EF33D5" } }, "environment": { "variables": { - "WING_FUNCTION_NAME": "b-on_delete-OnMessage-85baa474-c8dee1ac", + "WING_FUNCTION_NAME": "b-ondelete-OnMessage-66f114f1-c870a67c", "WING_TARGET": "tf-aws" } }, - "function_name": "b-on_delete-OnMessage-85baa474-c8dee1ac", + "function_name": "b-ondelete-OnMessage-66f114f1-c870a67c", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.b_b-on_delete-OnMessage-85baa474_IamRole_AF99ADD3.arn}", + "role": "${aws_iam_role.b_b-ondelete-OnMessage-66f114f1_IamRole_DC21898E.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.b_b-on_delete-OnMessage-85baa474_S3Object_5998C816.key}", + "s3_key": "${aws_s3_object.b_b-ondelete-OnMessage-66f114f1_S3Object_254CA292.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "b_b-on_update-OnMessage-3ed6033f_B0A46994": { + "b_b-onupdate-OnMessage-9eb7f7e1_7A6F5823": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-3ed6033f/Default", - "uniqueId": "b_b-on_update-OnMessage-3ed6033f_B0A46994" + "path": "root/Default/Default/b/b-onupdate-OnMessage-9eb7f7e1/Default", + "uniqueId": "b_b-onupdate-OnMessage-9eb7f7e1_7A6F5823" } }, "environment": { "variables": { "BUCKET_NAME_73fd1ead": "${aws_s3_bucket.other.bucket}", - "WING_FUNCTION_NAME": "b-on_update-OnMessage-3ed6033f-c8b563a2", + "WING_FUNCTION_NAME": "b-onupdate-OnMessage-9eb7f7e1-c832fa91", "WING_TARGET": "tf-aws" } }, - "function_name": "b-on_update-OnMessage-3ed6033f-c8b563a2", + "function_name": "b-onupdate-OnMessage-9eb7f7e1-c832fa91", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.b_b-on_update-OnMessage-3ed6033f_IamRole_86BF6BCD.arn}", + "role": "${aws_iam_role.b_b-onupdate-OnMessage-9eb7f7e1_IamRole_7289CFEA.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.b_b-on_update-OnMessage-3ed6033f_S3Object_8784640F.key}", + "s3_key": "${aws_s3_object.b_b-onupdate-OnMessage-9eb7f7e1_S3Object_AC55E659.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "b_b-on_update-OnMessage-d39e959f_6E32DE1C": { + "b_b-onupdate-OnMessage-aac4257e_8E63F6C2": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-d39e959f/Default", - "uniqueId": "b_b-on_update-OnMessage-d39e959f_6E32DE1C" + "path": "root/Default/Default/b/b-onupdate-OnMessage-aac4257e/Default", + "uniqueId": "b_b-onupdate-OnMessage-aac4257e_8E63F6C2" } }, "environment": { "variables": { - "WING_FUNCTION_NAME": "b-on_update-OnMessage-d39e959f-c86e3f27", + "WING_FUNCTION_NAME": "b-onupdate-OnMessage-aac4257e-c810b9ed", "WING_TARGET": "tf-aws" } }, - "function_name": "b-on_update-OnMessage-d39e959f-c86e3f27", + "function_name": "b-onupdate-OnMessage-aac4257e-c810b9ed", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.b_b-on_update-OnMessage-d39e959f_IamRole_B0CC974C.arn}", + "role": "${aws_iam_role.b_b-onupdate-OnMessage-aac4257e_IamRole_5A0EC266.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.b_b-on_update-OnMessage-d39e959f_S3Object_300AC20D.key}", + "s3_key": "${aws_s3_object.b_b-onupdate-OnMessage-aac4257e_S3Object_C3933F23.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "other_other-on_create-OnMessage-0af389c6_1EE78D26": { + "other_other-oncreate-OnMessage-9951bd6e_48A13F8C": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create-OnMessage-0af389c6/Default", - "uniqueId": "other_other-on_create-OnMessage-0af389c6_1EE78D26" + "path": "root/Default/Default/other/other-oncreate-OnMessage-9951bd6e/Default", + "uniqueId": "other_other-oncreate-OnMessage-9951bd6e_48A13F8C" } }, "environment": { "variables": { - "WING_FUNCTION_NAME": "other-on_create-OnMessage-0af389c6-c8b7358b", + "WING_FUNCTION_NAME": "other-oncreate-OnMessage-9951bd6e-c84c1446", "WING_TARGET": "tf-aws" } }, - "function_name": "other-on_create-OnMessage-0af389c6-c8b7358b", + "function_name": "other-oncreate-OnMessage-9951bd6e-c84c1446", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.other_other-on_create-OnMessage-0af389c6_IamRole_787C10EF.arn}", + "role": "${aws_iam_role.other_other-oncreate-OnMessage-9951bd6e_IamRole_15B1699D.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.other_other-on_create-OnMessage-0af389c6_S3Object_63B817AD.key}", + "s3_key": "${aws_s3_object.other_other-oncreate-OnMessage-9951bd6e_S3Object_B4DF8AB2.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "other_other-on_delete-OnMessage-5e9bc889_A58EA780": { + "other_other-ondelete-OnMessage-b5867be0_850D7634": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete-OnMessage-5e9bc889/Default", - "uniqueId": "other_other-on_delete-OnMessage-5e9bc889_A58EA780" + "path": "root/Default/Default/other/other-ondelete-OnMessage-b5867be0/Default", + "uniqueId": "other_other-ondelete-OnMessage-b5867be0_850D7634" } }, "environment": { "variables": { - "WING_FUNCTION_NAME": "other-on_delete-OnMessage-5e9bc889-c86905e5", + "WING_FUNCTION_NAME": "other-ondelete-OnMessage-b5867be0-c8e69522", "WING_TARGET": "tf-aws" } }, - "function_name": "other-on_delete-OnMessage-5e9bc889-c86905e5", + "function_name": "other-ondelete-OnMessage-b5867be0-c8e69522", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.other_other-on_delete-OnMessage-5e9bc889_IamRole_E13A811E.arn}", + "role": "${aws_iam_role.other_other-ondelete-OnMessage-b5867be0_IamRole_FA0F6C59.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.other_other-on_delete-OnMessage-5e9bc889_S3Object_85E4E05A.key}", + "s3_key": "${aws_s3_object.other_other-ondelete-OnMessage-b5867be0_S3Object_2511D85F.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], "subnet_ids": [] } }, - "other_other-on_update-OnMessage-5290616b_923388A0": { + "other_other-onupdate-OnMessage-d8c5ea34_2A7219D4": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update-OnMessage-5290616b/Default", - "uniqueId": "other_other-on_update-OnMessage-5290616b_923388A0" + "path": "root/Default/Default/other/other-onupdate-OnMessage-d8c5ea34/Default", + "uniqueId": "other_other-onupdate-OnMessage-d8c5ea34_2A7219D4" } }, "environment": { "variables": { - "WING_FUNCTION_NAME": "other-on_update-OnMessage-5290616b-c8d3d672", + "WING_FUNCTION_NAME": "other-onupdate-OnMessage-d8c5ea34-c80b31b5", "WING_TARGET": "tf-aws" } }, - "function_name": "other-on_update-OnMessage-5290616b-c8d3d672", + "function_name": "other-onupdate-OnMessage-d8c5ea34-c80b31b5", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.other_other-on_update-OnMessage-5290616b_IamRole_D28EA98B.arn}", + "role": "${aws_iam_role.other_other-onupdate-OnMessage-d8c5ea34_IamRole_1AF0D2AA.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.other_other-on_update-OnMessage-5290616b_S3Object_B889CC50.key}", + "s3_key": "${aws_s3_object.other_other-onupdate-OnMessage-d8c5ea34_S3Object_6CC60C7B.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], @@ -705,113 +705,113 @@ module.exports = function({ $b }) { } }, "aws_lambda_permission": { - "b_b-on_create-OnMessage-5f62bd7c_InvokePermission-c8c7ecaf2af41d192271c693adb3c6463c67766a7c_03B3ED59": { + "b_b-oncreate-OnMessage-cd3f219f_InvokePermission-c814afd1122e649c2834d87cee56b8699f275ddf35_BEC73D5F": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-5f62bd7c/InvokePermission-c8c7ecaf2af41d192271c693adb3c6463c67766a7c", - "uniqueId": "b_b-on_create-OnMessage-5f62bd7c_InvokePermission-c8c7ecaf2af41d192271c693adb3c6463c67766a7c_03B3ED59" + "path": "root/Default/Default/b/b-oncreate-OnMessage-cd3f219f/InvokePermission-c814afd1122e649c2834d87cee56b8699f275ddf35", + "uniqueId": "b_b-oncreate-OnMessage-cd3f219f_InvokePermission-c814afd1122e649c2834d87cee56b8699f275ddf35_BEC73D5F" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.b_b-on_create-OnMessage-5f62bd7c_38F80D99.function_name}", + "function_name": "${aws_lambda_function.b_b-oncreate-OnMessage-cd3f219f_C1D94CC1.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.b_b-on_create_624B99B5.arn}" + "source_arn": "${aws_sns_topic.b_b-oncreate_886A880E.arn}" }, - "b_b-on_create-OnMessage-aef3f85d_InvokePermission-c8c7ecaf2af41d192271c693adb3c6463c67766a7c_B3442311": { + "b_b-oncreate-OnMessage-f5efc76a_InvokePermission-c814afd1122e649c2834d87cee56b8699f275ddf35_41D6C8C9": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-aef3f85d/InvokePermission-c8c7ecaf2af41d192271c693adb3c6463c67766a7c", - "uniqueId": "b_b-on_create-OnMessage-aef3f85d_InvokePermission-c8c7ecaf2af41d192271c693adb3c6463c67766a7c_B3442311" + "path": "root/Default/Default/b/b-oncreate-OnMessage-f5efc76a/InvokePermission-c814afd1122e649c2834d87cee56b8699f275ddf35", + "uniqueId": "b_b-oncreate-OnMessage-f5efc76a_InvokePermission-c814afd1122e649c2834d87cee56b8699f275ddf35_41D6C8C9" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.b_b-on_create-OnMessage-aef3f85d_13DE25F3.function_name}", + "function_name": "${aws_lambda_function.b_b-oncreate-OnMessage-f5efc76a_7BBB42DA.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.b_b-on_create_624B99B5.arn}" + "source_arn": "${aws_sns_topic.b_b-oncreate_886A880E.arn}" }, - "b_b-on_delete-OnMessage-1c41a2ad_InvokePermission-c8f3ce18433e918d0e14bd6cd9c27a768f92348b01_CB1C1BD1": { + "b_b-ondelete-OnMessage-2233a0be_InvokePermission-c80dbc457de33e91b3d3e0e8ae58596a3c9d1ea179_339D5767": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-1c41a2ad/InvokePermission-c8f3ce18433e918d0e14bd6cd9c27a768f92348b01", - "uniqueId": "b_b-on_delete-OnMessage-1c41a2ad_InvokePermission-c8f3ce18433e918d0e14bd6cd9c27a768f92348b01_CB1C1BD1" + "path": "root/Default/Default/b/b-ondelete-OnMessage-2233a0be/InvokePermission-c80dbc457de33e91b3d3e0e8ae58596a3c9d1ea179", + "uniqueId": "b_b-ondelete-OnMessage-2233a0be_InvokePermission-c80dbc457de33e91b3d3e0e8ae58596a3c9d1ea179_339D5767" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.b_b-on_delete-OnMessage-1c41a2ad_B7B3278B.function_name}", + "function_name": "${aws_lambda_function.b_b-ondelete-OnMessage-2233a0be_DC04BB0D.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}" + "source_arn": "${aws_sns_topic.b_b-ondelete_F8924325.arn}" }, - "b_b-on_delete-OnMessage-85baa474_InvokePermission-c8f3ce18433e918d0e14bd6cd9c27a768f92348b01_C1EBC685": { + "b_b-ondelete-OnMessage-66f114f1_InvokePermission-c80dbc457de33e91b3d3e0e8ae58596a3c9d1ea179_DFD02AB2": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-85baa474/InvokePermission-c8f3ce18433e918d0e14bd6cd9c27a768f92348b01", - "uniqueId": "b_b-on_delete-OnMessage-85baa474_InvokePermission-c8f3ce18433e918d0e14bd6cd9c27a768f92348b01_C1EBC685" + "path": "root/Default/Default/b/b-ondelete-OnMessage-66f114f1/InvokePermission-c80dbc457de33e91b3d3e0e8ae58596a3c9d1ea179", + "uniqueId": "b_b-ondelete-OnMessage-66f114f1_InvokePermission-c80dbc457de33e91b3d3e0e8ae58596a3c9d1ea179_DFD02AB2" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.b_b-on_delete-OnMessage-85baa474_BC89847D.function_name}", + "function_name": "${aws_lambda_function.b_b-ondelete-OnMessage-66f114f1_04EF33D5.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}" + "source_arn": "${aws_sns_topic.b_b-ondelete_F8924325.arn}" }, - "b_b-on_update-OnMessage-3ed6033f_InvokePermission-c8d765d031212754dea0aa3cfb7d3227a296fffd4f_A0816246": { + "b_b-onupdate-OnMessage-9eb7f7e1_InvokePermission-c8b0a71441163a384430ad60383dc9448e6b9c12cf_26759CD0": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-3ed6033f/InvokePermission-c8d765d031212754dea0aa3cfb7d3227a296fffd4f", - "uniqueId": "b_b-on_update-OnMessage-3ed6033f_InvokePermission-c8d765d031212754dea0aa3cfb7d3227a296fffd4f_A0816246" + "path": "root/Default/Default/b/b-onupdate-OnMessage-9eb7f7e1/InvokePermission-c8b0a71441163a384430ad60383dc9448e6b9c12cf", + "uniqueId": "b_b-onupdate-OnMessage-9eb7f7e1_InvokePermission-c8b0a71441163a384430ad60383dc9448e6b9c12cf_26759CD0" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.b_b-on_update-OnMessage-3ed6033f_B0A46994.function_name}", + "function_name": "${aws_lambda_function.b_b-onupdate-OnMessage-9eb7f7e1_7A6F5823.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.b_b-on_update_D9B22749.arn}" + "source_arn": "${aws_sns_topic.b_b-onupdate_24C2703A.arn}" }, - "b_b-on_update-OnMessage-d39e959f_InvokePermission-c8d765d031212754dea0aa3cfb7d3227a296fffd4f_99A7CD64": { + "b_b-onupdate-OnMessage-aac4257e_InvokePermission-c8b0a71441163a384430ad60383dc9448e6b9c12cf_F7C82A14": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-d39e959f/InvokePermission-c8d765d031212754dea0aa3cfb7d3227a296fffd4f", - "uniqueId": "b_b-on_update-OnMessage-d39e959f_InvokePermission-c8d765d031212754dea0aa3cfb7d3227a296fffd4f_99A7CD64" + "path": "root/Default/Default/b/b-onupdate-OnMessage-aac4257e/InvokePermission-c8b0a71441163a384430ad60383dc9448e6b9c12cf", + "uniqueId": "b_b-onupdate-OnMessage-aac4257e_InvokePermission-c8b0a71441163a384430ad60383dc9448e6b9c12cf_F7C82A14" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.b_b-on_update-OnMessage-d39e959f_6E32DE1C.function_name}", + "function_name": "${aws_lambda_function.b_b-onupdate-OnMessage-aac4257e_8E63F6C2.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.b_b-on_update_D9B22749.arn}" + "source_arn": "${aws_sns_topic.b_b-onupdate_24C2703A.arn}" }, - "other_other-on_create-OnMessage-0af389c6_InvokePermission-c89c79376e17b283a7d691aa1bda7fc8588302362f_9AAA9102": { + "other_other-oncreate-OnMessage-9951bd6e_InvokePermission-c872dd37414ad02be3eec128d76edbd53b0f97733a_B9728783": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create-OnMessage-0af389c6/InvokePermission-c89c79376e17b283a7d691aa1bda7fc8588302362f", - "uniqueId": "other_other-on_create-OnMessage-0af389c6_InvokePermission-c89c79376e17b283a7d691aa1bda7fc8588302362f_9AAA9102" + "path": "root/Default/Default/other/other-oncreate-OnMessage-9951bd6e/InvokePermission-c872dd37414ad02be3eec128d76edbd53b0f97733a", + "uniqueId": "other_other-oncreate-OnMessage-9951bd6e_InvokePermission-c872dd37414ad02be3eec128d76edbd53b0f97733a_B9728783" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.other_other-on_create-OnMessage-0af389c6_1EE78D26.function_name}", + "function_name": "${aws_lambda_function.other_other-oncreate-OnMessage-9951bd6e_48A13F8C.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.other_other-on_create_F8EFCB58.arn}" + "source_arn": "${aws_sns_topic.other_other-oncreate_C00FD9E3.arn}" }, - "other_other-on_delete-OnMessage-5e9bc889_InvokePermission-c861917e84992c81ed683a3edeae66ebc879e0682a_3F6AFC16": { + "other_other-ondelete-OnMessage-b5867be0_InvokePermission-c82672963fbfec0e38f60c66d2e80c173285b45fcf_FC7534AF": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete-OnMessage-5e9bc889/InvokePermission-c861917e84992c81ed683a3edeae66ebc879e0682a", - "uniqueId": "other_other-on_delete-OnMessage-5e9bc889_InvokePermission-c861917e84992c81ed683a3edeae66ebc879e0682a_3F6AFC16" + "path": "root/Default/Default/other/other-ondelete-OnMessage-b5867be0/InvokePermission-c82672963fbfec0e38f60c66d2e80c173285b45fcf", + "uniqueId": "other_other-ondelete-OnMessage-b5867be0_InvokePermission-c82672963fbfec0e38f60c66d2e80c173285b45fcf_FC7534AF" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.other_other-on_delete-OnMessage-5e9bc889_A58EA780.function_name}", + "function_name": "${aws_lambda_function.other_other-ondelete-OnMessage-b5867be0_850D7634.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.other_other-on_delete_BB67CC72.arn}" + "source_arn": "${aws_sns_topic.other_other-ondelete_09111C9D.arn}" }, - "other_other-on_update-OnMessage-5290616b_InvokePermission-c8f0227611913f709ca5218e4a4dd4cb2475593882_4D60150A": { + "other_other-onupdate-OnMessage-d8c5ea34_InvokePermission-c872d872befb12eff50d186abd6f573b7c47f4e9cf_5DD6499C": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update-OnMessage-5290616b/InvokePermission-c8f0227611913f709ca5218e4a4dd4cb2475593882", - "uniqueId": "other_other-on_update-OnMessage-5290616b_InvokePermission-c8f0227611913f709ca5218e4a4dd4cb2475593882_4D60150A" + "path": "root/Default/Default/other/other-onupdate-OnMessage-d8c5ea34/InvokePermission-c872d872befb12eff50d186abd6f573b7c47f4e9cf", + "uniqueId": "other_other-onupdate-OnMessage-d8c5ea34_InvokePermission-c872d872befb12eff50d186abd6f573b7c47f4e9cf_5DD6499C" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.other_other-on_update-OnMessage-5290616b_923388A0.function_name}", + "function_name": "${aws_lambda_function.other_other-onupdate-OnMessage-d8c5ea34_2A7219D4.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.other_other-on_update_389364BA.arn}" + "source_arn": "${aws_sns_topic.other_other-onupdate_1FD7645E.arn}" } }, "aws_s3_bucket": { @@ -855,31 +855,31 @@ module.exports = function({ $b }) { }, "bucket": "${aws_s3_bucket.b.id}", "depends_on": [ - "aws_sns_topic_policy.b_b-on_delete_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_9837676E", - "aws_sns_topic_policy.b_b-on_update_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_1CF3029D", - "aws_sns_topic_policy.b_b-on_create_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_1B28315C" + "aws_sns_topic_policy.b_b-ondelete_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_6E0CB482", + "aws_sns_topic_policy.b_b-onupdate_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_F532851B", + "aws_sns_topic_policy.b_b-oncreate_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_038EF323" ], "topic": [ { "events": [ "s3:ObjectRemoved:*" ], - "id": "on-delete-notification", - "topic_arn": "${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}" + "id": "on-ondelete-notification", + "topic_arn": "${aws_sns_topic.b_b-ondelete_F8924325.arn}" }, { "events": [ "s3:ObjectCreated:Post" ], - "id": "on-update-notification", - "topic_arn": "${aws_sns_topic.b_b-on_update_D9B22749.arn}" + "id": "on-onupdate-notification", + "topic_arn": "${aws_sns_topic.b_b-onupdate_24C2703A.arn}" }, { "events": [ "s3:ObjectCreated:Put" ], - "id": "on-create-notification", - "topic_arn": "${aws_sns_topic.b_b-on_create_624B99B5.arn}" + "id": "on-oncreate-notification", + "topic_arn": "${aws_sns_topic.b_b-oncreate_886A880E.arn}" } ] }, @@ -892,31 +892,31 @@ module.exports = function({ $b }) { }, "bucket": "${aws_s3_bucket.other.id}", "depends_on": [ - "aws_sns_topic_policy.other_other-on_create_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_32BB81FE", - "aws_sns_topic_policy.other_other-on_update_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_B3BCF940", - "aws_sns_topic_policy.other_other-on_delete_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_D13943D7" + "aws_sns_topic_policy.other_other-oncreate_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_0202E6BD", + "aws_sns_topic_policy.other_other-onupdate_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_F59495DD", + "aws_sns_topic_policy.other_other-ondelete_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_CB407B96" ], "topic": [ { "events": [ "s3:ObjectCreated:Put" ], - "id": "on-create-notification", - "topic_arn": "${aws_sns_topic.other_other-on_create_F8EFCB58.arn}" + "id": "on-oncreate-notification", + "topic_arn": "${aws_sns_topic.other_other-oncreate_C00FD9E3.arn}" }, { "events": [ "s3:ObjectCreated:Post" ], - "id": "on-update-notification", - "topic_arn": "${aws_sns_topic.other_other-on_update_389364BA.arn}" + "id": "on-onupdate-notification", + "topic_arn": "${aws_sns_topic.other_other-onupdate_1FD7645E.arn}" }, { "events": [ "s3:ObjectRemoved:*" ], - "id": "on-delete-notification", - "topic_arn": "${aws_sns_topic.other_other-on_delete_BB67CC72.arn}" + "id": "on-ondelete-notification", + "topic_arn": "${aws_sns_topic.other_other-ondelete_09111C9D.arn}" } ] } @@ -984,99 +984,99 @@ module.exports = function({ $b }) { } }, "aws_s3_object": { - "b_b-on_create-OnMessage-5f62bd7c_S3Object_B7DA9DD6": { + "b_b-oncreate-OnMessage-cd3f219f_S3Object_55D05822": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-5f62bd7c/S3Object", - "uniqueId": "b_b-on_create-OnMessage-5f62bd7c_S3Object_B7DA9DD6" + "path": "root/Default/Default/b/b-oncreate-OnMessage-cd3f219f/S3Object", + "uniqueId": "b_b-oncreate-OnMessage-cd3f219f_S3Object_55D05822" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "b_b-on_create-OnMessage-aef3f85d_S3Object_000601D1": { + "b_b-oncreate-OnMessage-f5efc76a_S3Object_22CFBA18": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create-OnMessage-aef3f85d/S3Object", - "uniqueId": "b_b-on_create-OnMessage-aef3f85d_S3Object_000601D1" + "path": "root/Default/Default/b/b-oncreate-OnMessage-f5efc76a/S3Object", + "uniqueId": "b_b-oncreate-OnMessage-f5efc76a_S3Object_22CFBA18" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "b_b-on_delete-OnMessage-1c41a2ad_S3Object_DA3DDE14": { + "b_b-ondelete-OnMessage-2233a0be_S3Object_AC61B541": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-1c41a2ad/S3Object", - "uniqueId": "b_b-on_delete-OnMessage-1c41a2ad_S3Object_DA3DDE14" + "path": "root/Default/Default/b/b-ondelete-OnMessage-2233a0be/S3Object", + "uniqueId": "b_b-ondelete-OnMessage-2233a0be_S3Object_AC61B541" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "b_b-on_delete-OnMessage-85baa474_S3Object_5998C816": { + "b_b-ondelete-OnMessage-66f114f1_S3Object_254CA292": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete-OnMessage-85baa474/S3Object", - "uniqueId": "b_b-on_delete-OnMessage-85baa474_S3Object_5998C816" + "path": "root/Default/Default/b/b-ondelete-OnMessage-66f114f1/S3Object", + "uniqueId": "b_b-ondelete-OnMessage-66f114f1_S3Object_254CA292" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "b_b-on_update-OnMessage-3ed6033f_S3Object_8784640F": { + "b_b-onupdate-OnMessage-9eb7f7e1_S3Object_AC55E659": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-3ed6033f/S3Object", - "uniqueId": "b_b-on_update-OnMessage-3ed6033f_S3Object_8784640F" + "path": "root/Default/Default/b/b-onupdate-OnMessage-9eb7f7e1/S3Object", + "uniqueId": "b_b-onupdate-OnMessage-9eb7f7e1_S3Object_AC55E659" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "b_b-on_update-OnMessage-d39e959f_S3Object_300AC20D": { + "b_b-onupdate-OnMessage-aac4257e_S3Object_C3933F23": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update-OnMessage-d39e959f/S3Object", - "uniqueId": "b_b-on_update-OnMessage-d39e959f_S3Object_300AC20D" + "path": "root/Default/Default/b/b-onupdate-OnMessage-aac4257e/S3Object", + "uniqueId": "b_b-onupdate-OnMessage-aac4257e_S3Object_C3933F23" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "other_other-on_create-OnMessage-0af389c6_S3Object_63B817AD": { + "other_other-oncreate-OnMessage-9951bd6e_S3Object_B4DF8AB2": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create-OnMessage-0af389c6/S3Object", - "uniqueId": "other_other-on_create-OnMessage-0af389c6_S3Object_63B817AD" + "path": "root/Default/Default/other/other-oncreate-OnMessage-9951bd6e/S3Object", + "uniqueId": "other_other-oncreate-OnMessage-9951bd6e_S3Object_B4DF8AB2" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "other_other-on_delete-OnMessage-5e9bc889_S3Object_85E4E05A": { + "other_other-ondelete-OnMessage-b5867be0_S3Object_2511D85F": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete-OnMessage-5e9bc889/S3Object", - "uniqueId": "other_other-on_delete-OnMessage-5e9bc889_S3Object_85E4E05A" + "path": "root/Default/Default/other/other-ondelete-OnMessage-b5867be0/S3Object", + "uniqueId": "other_other-ondelete-OnMessage-b5867be0_S3Object_2511D85F" } }, "bucket": "${aws_s3_bucket.Code.bucket}", "key": "", "source": "" }, - "other_other-on_update-OnMessage-5290616b_S3Object_B889CC50": { + "other_other-onupdate-OnMessage-d8c5ea34_S3Object_6CC60C7B": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update-OnMessage-5290616b/S3Object", - "uniqueId": "other_other-on_update-OnMessage-5290616b_S3Object_B889CC50" + "path": "root/Default/Default/other/other-onupdate-OnMessage-d8c5ea34/S3Object", + "uniqueId": "other_other-onupdate-OnMessage-d8c5ea34_S3Object_6CC60C7B" } }, "bucket": "${aws_s3_bucket.Code.bucket}", @@ -1096,222 +1096,222 @@ module.exports = function({ $b }) { } }, "aws_sns_topic": { - "b_b-on_create_624B99B5": { + "b_b-oncreate_886A880E": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create/Default", - "uniqueId": "b_b-on_create_624B99B5" + "path": "root/Default/Default/b/b-oncreate/Default", + "uniqueId": "b_b-oncreate_886A880E" } }, - "name": "b-on_create-c8c7ecaf" + "name": "b-oncreate-c814afd1" }, - "b_b-on_delete_6DFE0D85": { + "b_b-ondelete_F8924325": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete/Default", - "uniqueId": "b_b-on_delete_6DFE0D85" + "path": "root/Default/Default/b/b-ondelete/Default", + "uniqueId": "b_b-ondelete_F8924325" } }, - "name": "b-on_delete-c8f3ce18" + "name": "b-ondelete-c80dbc45" }, - "b_b-on_update_D9B22749": { + "b_b-onupdate_24C2703A": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update/Default", - "uniqueId": "b_b-on_update_D9B22749" + "path": "root/Default/Default/b/b-onupdate/Default", + "uniqueId": "b_b-onupdate_24C2703A" } }, - "name": "b-on_update-c8d765d0" + "name": "b-onupdate-c8b0a714" }, - "other_other-on_create_F8EFCB58": { + "other_other-oncreate_C00FD9E3": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create/Default", - "uniqueId": "other_other-on_create_F8EFCB58" + "path": "root/Default/Default/other/other-oncreate/Default", + "uniqueId": "other_other-oncreate_C00FD9E3" } }, - "name": "other-on_create-c89c7937" + "name": "other-oncreate-c872dd37" }, - "other_other-on_delete_BB67CC72": { + "other_other-ondelete_09111C9D": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete/Default", - "uniqueId": "other_other-on_delete_BB67CC72" + "path": "root/Default/Default/other/other-ondelete/Default", + "uniqueId": "other_other-ondelete_09111C9D" } }, - "name": "other-on_delete-c861917e" + "name": "other-ondelete-c8267296" }, - "other_other-on_update_389364BA": { + "other_other-onupdate_1FD7645E": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update/Default", - "uniqueId": "other_other-on_update_389364BA" + "path": "root/Default/Default/other/other-onupdate/Default", + "uniqueId": "other_other-onupdate_1FD7645E" } }, - "name": "other-on_update-c8f02276" + "name": "other-onupdate-c872d872" } }, "aws_sns_topic_policy": { - "b_b-on_create_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_1B28315C": { + "b_b-oncreate_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_038EF323": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create/PublishPermission-c81aa40d099e0812205448708df27e482b34279ead", - "uniqueId": "b_b-on_create_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_1B28315C" + "path": "root/Default/Default/b/b-oncreate/PublishPermission-c81aa40d099e0812205448708df27e482b34279ead", + "uniqueId": "b_b-oncreate_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_038EF323" } }, - "arn": "${aws_sns_topic.b_b-on_create_624B99B5.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.b_b-on_create_624B99B5.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.b.arn}\"}}}]}" + "arn": "${aws_sns_topic.b_b-oncreate_886A880E.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.b_b-oncreate_886A880E.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.b.arn}\"}}}]}" }, - "b_b-on_delete_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_9837676E": { + "b_b-ondelete_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_6E0CB482": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete/PublishPermission-c81aa40d099e0812205448708df27e482b34279ead", - "uniqueId": "b_b-on_delete_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_9837676E" + "path": "root/Default/Default/b/b-ondelete/PublishPermission-c81aa40d099e0812205448708df27e482b34279ead", + "uniqueId": "b_b-ondelete_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_6E0CB482" } }, - "arn": "${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.b.arn}\"}}}]}" + "arn": "${aws_sns_topic.b_b-ondelete_F8924325.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.b_b-ondelete_F8924325.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.b.arn}\"}}}]}" }, - "b_b-on_update_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_1CF3029D": { + "b_b-onupdate_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_F532851B": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update/PublishPermission-c81aa40d099e0812205448708df27e482b34279ead", - "uniqueId": "b_b-on_update_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_1CF3029D" + "path": "root/Default/Default/b/b-onupdate/PublishPermission-c81aa40d099e0812205448708df27e482b34279ead", + "uniqueId": "b_b-onupdate_PublishPermission-c81aa40d099e0812205448708df27e482b34279ead_F532851B" } }, - "arn": "${aws_sns_topic.b_b-on_update_D9B22749.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.b_b-on_update_D9B22749.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.b.arn}\"}}}]}" + "arn": "${aws_sns_topic.b_b-onupdate_24C2703A.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.b_b-onupdate_24C2703A.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.b.arn}\"}}}]}" }, - "other_other-on_create_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_32BB81FE": { + "other_other-oncreate_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_0202E6BD": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create/PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead", - "uniqueId": "other_other-on_create_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_32BB81FE" + "path": "root/Default/Default/other/other-oncreate/PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead", + "uniqueId": "other_other-oncreate_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_0202E6BD" } }, - "arn": "${aws_sns_topic.other_other-on_create_F8EFCB58.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.other_other-on_create_F8EFCB58.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.other.arn}\"}}}]}" + "arn": "${aws_sns_topic.other_other-oncreate_C00FD9E3.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.other_other-oncreate_C00FD9E3.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.other.arn}\"}}}]}" }, - "other_other-on_delete_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_D13943D7": { + "other_other-ondelete_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_CB407B96": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete/PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead", - "uniqueId": "other_other-on_delete_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_D13943D7" + "path": "root/Default/Default/other/other-ondelete/PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead", + "uniqueId": "other_other-ondelete_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_CB407B96" } }, - "arn": "${aws_sns_topic.other_other-on_delete_BB67CC72.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.other_other-on_delete_BB67CC72.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.other.arn}\"}}}]}" + "arn": "${aws_sns_topic.other_other-ondelete_09111C9D.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.other_other-ondelete_09111C9D.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.other.arn}\"}}}]}" }, - "other_other-on_update_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_B3BCF940": { + "other_other-onupdate_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_F59495DD": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update/PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead", - "uniqueId": "other_other-on_update_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_B3BCF940" + "path": "root/Default/Default/other/other-onupdate/PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead", + "uniqueId": "other_other-onupdate_PublishPermission-c87420a27eeb4720af7eb13d276c8124ea73fd1ead_F59495DD" } }, - "arn": "${aws_sns_topic.other_other-on_update_389364BA.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.other_other-on_update_389364BA.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.other.arn}\"}}}]}" + "arn": "${aws_sns_topic.other_other-onupdate_1FD7645E.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.other_other-onupdate_1FD7645E.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.other.arn}\"}}}]}" } }, "aws_sns_topic_subscription": { - "b_b-on_create_b-on_create-TopicSubscription-5f62bd7c_EFBAFF9C": { + "b_b-oncreate_b-oncreate-TopicSubscription-cd3f219f_F2B4128D": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create/b-on_create-TopicSubscription-5f62bd7c", - "uniqueId": "b_b-on_create_b-on_create-TopicSubscription-5f62bd7c_EFBAFF9C" + "path": "root/Default/Default/b/b-oncreate/b-oncreate-TopicSubscription-cd3f219f", + "uniqueId": "b_b-oncreate_b-oncreate-TopicSubscription-cd3f219f_F2B4128D" } }, - "endpoint": "${aws_lambda_function.b_b-on_create-OnMessage-5f62bd7c_38F80D99.arn}", + "endpoint": "${aws_lambda_function.b_b-oncreate-OnMessage-cd3f219f_C1D94CC1.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.b_b-on_create_624B99B5.arn}" + "topic_arn": "${aws_sns_topic.b_b-oncreate_886A880E.arn}" }, - "b_b-on_create_b-on_create-TopicSubscription-aef3f85d_A9518A51": { + "b_b-oncreate_b-oncreate-TopicSubscription-f5efc76a_DBDE737B": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_create/b-on_create-TopicSubscription-aef3f85d", - "uniqueId": "b_b-on_create_b-on_create-TopicSubscription-aef3f85d_A9518A51" + "path": "root/Default/Default/b/b-oncreate/b-oncreate-TopicSubscription-f5efc76a", + "uniqueId": "b_b-oncreate_b-oncreate-TopicSubscription-f5efc76a_DBDE737B" } }, - "endpoint": "${aws_lambda_function.b_b-on_create-OnMessage-aef3f85d_13DE25F3.arn}", + "endpoint": "${aws_lambda_function.b_b-oncreate-OnMessage-f5efc76a_7BBB42DA.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.b_b-on_create_624B99B5.arn}" + "topic_arn": "${aws_sns_topic.b_b-oncreate_886A880E.arn}" }, - "b_b-on_delete_b-on_delete-TopicSubscription-1c41a2ad_5EF27562": { + "b_b-ondelete_b-ondelete-TopicSubscription-2233a0be_2A0DB27E": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete/b-on_delete-TopicSubscription-1c41a2ad", - "uniqueId": "b_b-on_delete_b-on_delete-TopicSubscription-1c41a2ad_5EF27562" + "path": "root/Default/Default/b/b-ondelete/b-ondelete-TopicSubscription-2233a0be", + "uniqueId": "b_b-ondelete_b-ondelete-TopicSubscription-2233a0be_2A0DB27E" } }, - "endpoint": "${aws_lambda_function.b_b-on_delete-OnMessage-1c41a2ad_B7B3278B.arn}", + "endpoint": "${aws_lambda_function.b_b-ondelete-OnMessage-2233a0be_DC04BB0D.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}" + "topic_arn": "${aws_sns_topic.b_b-ondelete_F8924325.arn}" }, - "b_b-on_delete_b-on_delete-TopicSubscription-85baa474_63792E15": { + "b_b-ondelete_b-ondelete-TopicSubscription-66f114f1_346BB031": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_delete/b-on_delete-TopicSubscription-85baa474", - "uniqueId": "b_b-on_delete_b-on_delete-TopicSubscription-85baa474_63792E15" + "path": "root/Default/Default/b/b-ondelete/b-ondelete-TopicSubscription-66f114f1", + "uniqueId": "b_b-ondelete_b-ondelete-TopicSubscription-66f114f1_346BB031" } }, - "endpoint": "${aws_lambda_function.b_b-on_delete-OnMessage-85baa474_BC89847D.arn}", + "endpoint": "${aws_lambda_function.b_b-ondelete-OnMessage-66f114f1_04EF33D5.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.b_b-on_delete_6DFE0D85.arn}" + "topic_arn": "${aws_sns_topic.b_b-ondelete_F8924325.arn}" }, - "b_b-on_update_b-on_update-TopicSubscription-3ed6033f_56E1D0F8": { + "b_b-onupdate_b-onupdate-TopicSubscription-9eb7f7e1_F38B00E3": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update/b-on_update-TopicSubscription-3ed6033f", - "uniqueId": "b_b-on_update_b-on_update-TopicSubscription-3ed6033f_56E1D0F8" + "path": "root/Default/Default/b/b-onupdate/b-onupdate-TopicSubscription-9eb7f7e1", + "uniqueId": "b_b-onupdate_b-onupdate-TopicSubscription-9eb7f7e1_F38B00E3" } }, - "endpoint": "${aws_lambda_function.b_b-on_update-OnMessage-3ed6033f_B0A46994.arn}", + "endpoint": "${aws_lambda_function.b_b-onupdate-OnMessage-9eb7f7e1_7A6F5823.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.b_b-on_update_D9B22749.arn}" + "topic_arn": "${aws_sns_topic.b_b-onupdate_24C2703A.arn}" }, - "b_b-on_update_b-on_update-TopicSubscription-d39e959f_6066B557": { + "b_b-onupdate_b-onupdate-TopicSubscription-aac4257e_85271402": { "//": { "metadata": { - "path": "root/Default/Default/b/b-on_update/b-on_update-TopicSubscription-d39e959f", - "uniqueId": "b_b-on_update_b-on_update-TopicSubscription-d39e959f_6066B557" + "path": "root/Default/Default/b/b-onupdate/b-onupdate-TopicSubscription-aac4257e", + "uniqueId": "b_b-onupdate_b-onupdate-TopicSubscription-aac4257e_85271402" } }, - "endpoint": "${aws_lambda_function.b_b-on_update-OnMessage-d39e959f_6E32DE1C.arn}", + "endpoint": "${aws_lambda_function.b_b-onupdate-OnMessage-aac4257e_8E63F6C2.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.b_b-on_update_D9B22749.arn}" + "topic_arn": "${aws_sns_topic.b_b-onupdate_24C2703A.arn}" }, - "other_other-on_create_other-on_create-TopicSubscription-0af389c6_3E1661F4": { + "other_other-oncreate_other-oncreate-TopicSubscription-9951bd6e_BC9867EA": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_create/other-on_create-TopicSubscription-0af389c6", - "uniqueId": "other_other-on_create_other-on_create-TopicSubscription-0af389c6_3E1661F4" + "path": "root/Default/Default/other/other-oncreate/other-oncreate-TopicSubscription-9951bd6e", + "uniqueId": "other_other-oncreate_other-oncreate-TopicSubscription-9951bd6e_BC9867EA" } }, - "endpoint": "${aws_lambda_function.other_other-on_create-OnMessage-0af389c6_1EE78D26.arn}", + "endpoint": "${aws_lambda_function.other_other-oncreate-OnMessage-9951bd6e_48A13F8C.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.other_other-on_create_F8EFCB58.arn}" + "topic_arn": "${aws_sns_topic.other_other-oncreate_C00FD9E3.arn}" }, - "other_other-on_delete_other-on_delete-TopicSubscription-5e9bc889_C1680968": { + "other_other-ondelete_other-ondelete-TopicSubscription-b5867be0_0424198F": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_delete/other-on_delete-TopicSubscription-5e9bc889", - "uniqueId": "other_other-on_delete_other-on_delete-TopicSubscription-5e9bc889_C1680968" + "path": "root/Default/Default/other/other-ondelete/other-ondelete-TopicSubscription-b5867be0", + "uniqueId": "other_other-ondelete_other-ondelete-TopicSubscription-b5867be0_0424198F" } }, - "endpoint": "${aws_lambda_function.other_other-on_delete-OnMessage-5e9bc889_A58EA780.arn}", + "endpoint": "${aws_lambda_function.other_other-ondelete-OnMessage-b5867be0_850D7634.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.other_other-on_delete_BB67CC72.arn}" + "topic_arn": "${aws_sns_topic.other_other-ondelete_09111C9D.arn}" }, - "other_other-on_update_other-on_update-TopicSubscription-5290616b_BF6D8BE1": { + "other_other-onupdate_other-onupdate-TopicSubscription-d8c5ea34_AE1B7614": { "//": { "metadata": { - "path": "root/Default/Default/other/other-on_update/other-on_update-TopicSubscription-5290616b", - "uniqueId": "other_other-on_update_other-on_update-TopicSubscription-5290616b_BF6D8BE1" + "path": "root/Default/Default/other/other-onupdate/other-onupdate-TopicSubscription-d8c5ea34", + "uniqueId": "other_other-onupdate_other-onupdate-TopicSubscription-d8c5ea34_AE1B7614" } }, - "endpoint": "${aws_lambda_function.other_other-on_update-OnMessage-5290616b_923388A0.arn}", + "endpoint": "${aws_lambda_function.other_other-onupdate-OnMessage-d8c5ea34_2A7219D4.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.other_other-on_update_389364BA.arn}" + "topic_arn": "${aws_sns_topic.other_other-onupdate_1FD7645E.arn}" } } } diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource.w_compile_tf-aws.md index 780bff8bcbc..e464be69237 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource.w_compile_tf-aws.md @@ -252,11 +252,11 @@ module.exports = function({ }) { } }, "aws_iam_role": { - "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRole_ADCAC8AB": { + "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRole_8E616603": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/IamRole", - "uniqueId": "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRole_ADCAC8AB" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/IamRole", + "uniqueId": "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRole_8E616603" } }, "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Effect\":\"Allow\"}]}" @@ -299,15 +299,15 @@ module.exports = function({ }) { } }, "aws_iam_role_policy": { - "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRolePolicy_46BA1064": { + "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRolePolicy_F8527D51": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/IamRolePolicy", - "uniqueId": "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRolePolicy_46BA1064" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/IamRolePolicy", + "uniqueId": "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRolePolicy_F8527D51" } }, "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sqs:SendMessage\"],\"Resource\":[\"${aws_sqs_queue.BigPublisher_cloudQueue_2EE8871A.arn}\"],\"Effect\":\"Allow\"}]}", - "role": "${aws_iam_role.BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRole_ADCAC8AB.name}" + "role": "${aws_iam_role.BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRole_8E616603.name}" }, "BigPublisher_cloudQueue-SetConsumer-c50bc9ef_IamRolePolicy_6AF2C97F": { "//": { @@ -351,15 +351,15 @@ module.exports = function({ }) { } }, "aws_iam_role_policy_attachment": { - "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRolePolicyAttachment_03D41CF4": { + "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRolePolicyAttachment_CE7F5AB3": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/IamRolePolicyAttachment", - "uniqueId": "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRolePolicyAttachment_03D41CF4" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/IamRolePolicyAttachment", + "uniqueId": "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRolePolicyAttachment_CE7F5AB3" } }, "policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "role": "${aws_iam_role.BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRole_ADCAC8AB.name}" + "role": "${aws_iam_role.BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRole_8E616603.name}" }, "BigPublisher_cloudQueue-SetConsumer-c50bc9ef_IamRolePolicyAttachment_FF25AF25": { "//": { @@ -416,27 +416,27 @@ module.exports = function({ }) { } }, "aws_lambda_function": { - "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_923E0E37": { + "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_ADB5CF01": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/Default", - "uniqueId": "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_923E0E37" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/Default", + "uniqueId": "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_ADB5CF01" } }, "environment": { "variables": { "QUEUE_URL_b0ba884c": "${aws_sqs_queue.BigPublisher_cloudQueue_2EE8871A.url}", - "WING_FUNCTION_NAME": "b2-on_create-OnMessage-a6a70fca-c87e0778", + "WING_FUNCTION_NAME": "b2-oncreate-OnMessage-9a6e41f8-c8021c7b", "WING_TARGET": "tf-aws" } }, - "function_name": "b2-on_create-OnMessage-a6a70fca-c87e0778", + "function_name": "b2-oncreate-OnMessage-9a6e41f8-c8021c7b", "handler": "index.handler", "publish": true, - "role": "${aws_iam_role.BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_IamRole_ADCAC8AB.arn}", + "role": "${aws_iam_role.BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_IamRole_8E616603.arn}", "runtime": "nodejs18.x", "s3_bucket": "${aws_s3_bucket.Code.bucket}", - "s3_key": "${aws_s3_object.BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_S3Object_0C652C61.key}", + "s3_key": "${aws_s3_object.BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_S3Object_C3038A6C.key}", "timeout": 30, "vpc_config": { "security_group_ids": [], @@ -557,17 +557,17 @@ module.exports = function({ }) { } }, "aws_lambda_permission": { - "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_InvokePermission-c8c6cd46b3f874f3b457086bc49850e7b4b9316bc8_A3CAB3D3": { + "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_InvokePermission-c85dfafbf5013871aa3434b4c0d215d292753b3141_CAEBB089": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/InvokePermission-c8c6cd46b3f874f3b457086bc49850e7b4b9316bc8", - "uniqueId": "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_InvokePermission-c8c6cd46b3f874f3b457086bc49850e7b4b9316bc8_A3CAB3D3" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/InvokePermission-c85dfafbf5013871aa3434b4c0d215d292753b3141", + "uniqueId": "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_InvokePermission-c85dfafbf5013871aa3434b4c0d215d292753b3141_CAEBB089" } }, "action": "lambda:InvokeFunction", - "function_name": "${aws_lambda_function.BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_923E0E37.function_name}", + "function_name": "${aws_lambda_function.BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_ADB5CF01.function_name}", "principal": "sns.amazonaws.com", - "source_arn": "${aws_sns_topic.BigPublisher_b2_b2-on_create_842E953B.arn}" + "source_arn": "${aws_sns_topic.BigPublisher_b2_b2-oncreate_B37DE1E1.arn}" }, "BigPublisher_cloudTopic-OnMessage-113c9059_InvokePermission-c86b6469dec0edbe23d2827b4ea7006182eb0072ec_BE523D68": { "//": { @@ -633,15 +633,15 @@ module.exports = function({ }) { }, "bucket": "${aws_s3_bucket.BigPublisher_b2_702AC841.id}", "depends_on": [ - "aws_sns_topic_policy.BigPublisher_b2_b2-on_create_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_BCEFDC74" + "aws_sns_topic_policy.BigPublisher_b2_b2-oncreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_19647381" ], "topic": [ { "events": [ "s3:ObjectCreated:Put" ], - "id": "on-create-notification", - "topic_arn": "${aws_sns_topic.BigPublisher_b2_b2-on_create_842E953B.arn}" + "id": "on-oncreate-notification", + "topic_arn": "${aws_sns_topic.BigPublisher_b2_b2-oncreate_B37DE1E1.arn}" } ] } @@ -738,11 +738,11 @@ module.exports = function({ }) { } }, "aws_s3_object": { - "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_S3Object_0C652C61": { + "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_S3Object_C3038A6C": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/S3Object", - "uniqueId": "BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_S3Object_0C652C61" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/S3Object", + "uniqueId": "BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_S3Object_C3038A6C" } }, "bucket": "${aws_s3_bucket.Code.bucket}", @@ -795,14 +795,14 @@ module.exports = function({ }) { } }, "aws_sns_topic": { - "BigPublisher_b2_b2-on_create_842E953B": { + "BigPublisher_b2_b2-oncreate_B37DE1E1": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create/Default", - "uniqueId": "BigPublisher_b2_b2-on_create_842E953B" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate/Default", + "uniqueId": "BigPublisher_b2_b2-oncreate_B37DE1E1" } }, - "name": "b2-on_create-c8c6cd46" + "name": "b2-oncreate-c85dfafb" }, "BigPublisher_cloudTopic_61DC7B63": { "//": { @@ -815,28 +815,28 @@ module.exports = function({ }) { } }, "aws_sns_topic_policy": { - "BigPublisher_b2_b2-on_create_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_BCEFDC74": { + "BigPublisher_b2_b2-oncreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_19647381": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", - "uniqueId": "BigPublisher_b2_b2-on_create_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_BCEFDC74" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", + "uniqueId": "BigPublisher_b2_b2-oncreate_PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad_19647381" } }, - "arn": "${aws_sns_topic.BigPublisher_b2_b2-on_create_842E953B.arn}", - "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.BigPublisher_b2_b2-on_create_842E953B.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.BigPublisher_b2_702AC841.arn}\"}}}]}" + "arn": "${aws_sns_topic.BigPublisher_b2_b2-oncreate_B37DE1E1.arn}", + "policy": "{\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"${aws_sns_topic.BigPublisher_b2_b2-oncreate_B37DE1E1.arn}\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.BigPublisher_b2_702AC841.arn}\"}}}]}" } }, "aws_sns_topic_subscription": { - "BigPublisher_b2_b2-on_create_b2-on_create-TopicSubscription-a6a70fca_D0234945": { + "BigPublisher_b2_b2-oncreate_b2-oncreate-TopicSubscription-9a6e41f8_2AC97917": { "//": { "metadata": { - "path": "root/Default/Default/BigPublisher/b2/b2-on_create/b2-on_create-TopicSubscription-a6a70fca", - "uniqueId": "BigPublisher_b2_b2-on_create_b2-on_create-TopicSubscription-a6a70fca_D0234945" + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate/b2-oncreate-TopicSubscription-9a6e41f8", + "uniqueId": "BigPublisher_b2_b2-oncreate_b2-oncreate-TopicSubscription-9a6e41f8_2AC97917" } }, - "endpoint": "${aws_lambda_function.BigPublisher_b2_b2-on_create-OnMessage-a6a70fca_923E0E37.arn}", + "endpoint": "${aws_lambda_function.BigPublisher_b2_b2-oncreate-OnMessage-9a6e41f8_ADB5CF01.arn}", "protocol": "lambda", - "topic_arn": "${aws_sns_topic.BigPublisher_b2_b2-on_create_842E953B.arn}" + "topic_arn": "${aws_sns_topic.BigPublisher_b2_b2-oncreate_B37DE1E1.arn}" }, "BigPublisher_cloudTopic_cloudTopic-TopicSubscription-113c9059_D8CEACCD": { "//": { diff --git a/tools/hangar/__snapshots__/tree_json.ts.snap b/tools/hangar/__snapshots__/tree_json.ts.snap index c973b82e97c..ad11549edbc 100644 --- a/tools/hangar/__snapshots__/tree_json.ts.snap +++ b/tools/hangar/__snapshots__/tree_json.ts.snap @@ -55,19 +55,19 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "myMethod", + "relationship": "myMethod()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "testTypeAccess", + "relationship": "testTypeAccess()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:test/Handler", }, ], @@ -79,25 +79,25 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "fooGet", + "relationship": "fooGet()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "fooInc", + "relationship": "fooInc()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "inflightField", + "relationship": "inflightField()", "resource": "root/Default/Default/test:test/Handler", }, ], @@ -109,25 +109,25 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "peek", + "relationship": "peek()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "dec", + "relationship": "dec()", "resource": "root/Default/Default/test:test/Handler", }, ], @@ -175,19 +175,19 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "getObjectCount", + "relationship": "getObjectCount()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "publish", + "relationship": "publish()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, ], @@ -199,13 +199,13 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Default/BigPublisher/cloud.Topic-OnMessage-113c9059", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Topic-OnMessage-113c9059", }, ], @@ -226,13 +226,13 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Default/BigPublisher/cloud.Queue-SetConsumer-c50bc9ef", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Queue-SetConsumer-c50bc9ef", }, ], @@ -253,14 +253,14 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "handle()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "$inflight_init()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, ], }, @@ -280,19 +280,19 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "CREATE", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create", + "relationship": "onCreate()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate", }, { "direction": "inbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, ], @@ -330,20 +330,20 @@ exports[`tree.json for an app with many resources 1`] = ` "id": "S3BucketNotification", "path": "root/Default/Default/BigPublisher/b2/S3BucketNotification", }, - "b2-on_create": { + "b2-oncreate": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "CREATE", + "relationship": "onCreate()", "resource": "root/Default/Default/BigPublisher/b2", }, { "direction": "outbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "onMessage()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, ], }, @@ -354,7 +354,7 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create/Default", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate/Default", }, "PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad": { "constructInfo": { @@ -362,15 +362,15 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate/PublishPermission-c851683a81379a8ef8351c83fe31924055584271ad", }, - "b2-on_create-TopicSubscription-a6a70fca": { + "b2-oncreate-TopicSubscription-9a6e41f8": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "b2-on_create-TopicSubscription-a6a70fca", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create/b2-on_create-TopicSubscription-a6a70fca", + "id": "b2-oncreate-TopicSubscription-9a6e41f8", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate/b2-oncreate-TopicSubscription-9a6e41f8", }, }, "constructInfo": { @@ -381,53 +381,53 @@ exports[`tree.json for an app with many resources 1`] = ` "description": "A pub/sub notification topic", "title": "Topic", }, - "id": "b2-on_create", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create", + "id": "b2-oncreate", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate", }, - "b2-on_create-OnMessage-a6a70fca": { + "b2-oncreate-OnMessage-9a6e41f8": { "attributes": { "wing:resource:connections": [ { "direction": "outbound", "implicit": false, - "relationship": "push", + "relationship": "push()", "resource": "root/Default/Default/BigPublisher/cloud.Queue", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Queue", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Default/BigPublisher/$Closure4", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/$Closure4", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/Default/BigPublisher/b2-on_create-eventHandler-fe70cb1e", + "relationship": "handle()", + "resource": "root/Default/Default/BigPublisher/b2-oncreate-eventHandler-fe70cb1e", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/Default/BigPublisher/b2-on_create-eventHandler-fe70cb1e", + "relationship": "$inflight_init()", + "resource": "root/Default/Default/BigPublisher/b2-oncreate-eventHandler-fe70cb1e", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create", + "relationship": "onMessage()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate", }, ], }, @@ -438,7 +438,7 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "Asset", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/Asset", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/Asset", }, "Default": { "constructInfo": { @@ -446,7 +446,7 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "Default", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/Default", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/Default", }, "IamRole": { "constructInfo": { @@ -454,7 +454,7 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "IamRole", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/IamRole", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/IamRole", }, "IamRolePolicy": { "constructInfo": { @@ -462,7 +462,7 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "IamRolePolicy", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/IamRolePolicy", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/IamRolePolicy", }, "IamRolePolicyAttachment": { "constructInfo": { @@ -470,15 +470,15 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "IamRolePolicyAttachment", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/IamRolePolicyAttachment", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/IamRolePolicyAttachment", }, - "InvokePermission-c8c6cd46b3f874f3b457086bc49850e7b4b9316bc8": { + "InvokePermission-c85dfafbf5013871aa3434b4c0d215d292753b3141": { "constructInfo": { "fqn": "cdktf.TerraformResource", "version": "0.17.0", }, - "id": "InvokePermission-c8c6cd46b3f874f3b457086bc49850e7b4b9316bc8", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/InvokePermission-c8c6cd46b3f874f3b457086bc49850e7b4b9316bc8", + "id": "InvokePermission-c85dfafbf5013871aa3434b4c0d215d292753b3141", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/InvokePermission-c85dfafbf5013871aa3434b4c0d215d292753b3141", }, "S3Object": { "constructInfo": { @@ -486,7 +486,7 @@ exports[`tree.json for an app with many resources 1`] = ` "version": "0.17.0", }, "id": "S3Object", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca/S3Object", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8/S3Object", }, }, "constructInfo": { @@ -497,10 +497,10 @@ exports[`tree.json for an app with many resources 1`] = ` "description": "A cloud function (FaaS)", "title": "Function", }, - "id": "b2-on_create-OnMessage-a6a70fca", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "id": "b2-oncreate-OnMessage-9a6e41f8", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, - "b2-on_create-OnMessageHandler-a6a70fca": { + "b2-oncreate-OnMessageHandler-9a6e41f8": { "attributes": { "wing:resource:connections": [], }, @@ -511,8 +511,8 @@ exports[`tree.json for an app with many resources 1`] = ` "display": { "hidden": true, }, - "id": "b2-on_create-OnMessageHandler-a6a70fca", - "path": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessageHandler-a6a70fca", + "id": "b2-oncreate-OnMessageHandler-9a6e41f8", + "path": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessageHandler-9a6e41f8", }, }, "constructInfo": { @@ -526,20 +526,20 @@ exports[`tree.json for an app with many resources 1`] = ` "id": "b2", "path": "root/Default/Default/BigPublisher/b2", }, - "b2-on_create-eventHandler-fe70cb1e": { + "b2-oncreate-eventHandler-fe70cb1e": { "attributes": { "wing:resource:connections": [ { "direction": "inbound", "implicit": false, - "relationship": "handle", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "handle()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "$inflight_init()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, ], }, @@ -550,8 +550,8 @@ exports[`tree.json for an app with many resources 1`] = ` "display": { "hidden": true, }, - "id": "b2-on_create-eventHandler-fe70cb1e", - "path": "root/Default/Default/BigPublisher/b2-on_create-eventHandler-fe70cb1e", + "id": "b2-oncreate-eventHandler-fe70cb1e", + "path": "root/Default/Default/BigPublisher/b2-oncreate-eventHandler-fe70cb1e", }, "cloud.Bucket": { "attributes": { @@ -559,37 +559,37 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/BigPublisher/cloud.Topic-OnMessage-113c9059", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Topic-OnMessage-113c9059", }, { "direction": "inbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/BigPublisher/cloud.Queue-SetConsumer-c50bc9ef", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Queue-SetConsumer-c50bc9ef", }, { "direction": "inbound", "implicit": false, - "relationship": "list", + "relationship": "list()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, ], @@ -637,31 +637,31 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/Default/Default/BigPublisher/cloud.Queue-SetConsumer-c50bc9ef", }, { "direction": "inbound", "implicit": false, - "relationship": "push", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "push()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", - "resource": "root/Default/Default/BigPublisher/b2/b2-on_create-OnMessage-a6a70fca", + "relationship": "$inflight_init()", + "resource": "root/Default/Default/BigPublisher/b2/b2-oncreate-OnMessage-9a6e41f8", }, { "direction": "inbound", "implicit": false, - "relationship": "push", + "relationship": "push()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, ], @@ -701,31 +701,31 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/BigPublisher/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Default/BigPublisher/$Closure3", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/$Closure3", }, { "direction": "inbound", "implicit": false, - "relationship": "consumer", + "relationship": "setConsumer()", "resource": "root/Default/Default/BigPublisher/cloud.Queue", }, ], @@ -811,19 +811,19 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "on_message", + "relationship": "onMessage()", "resource": "root/Default/Default/BigPublisher/cloud.Topic-OnMessage-113c9059", }, { "direction": "inbound", "implicit": false, - "relationship": "publish", + "relationship": "publish()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:dependency cycles/Handler", }, ], @@ -863,31 +863,31 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/BigPublisher/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "handle", + "relationship": "handle()", "resource": "root/Default/Default/BigPublisher/$Closure2", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/$Closure2", }, { "direction": "inbound", "implicit": false, - "relationship": "on_message", + "relationship": "onMessage()", "resource": "root/Default/Default/BigPublisher/cloud.Topic", }, ], @@ -1059,25 +1059,25 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "inbound", "implicit": false, - "relationship": "list", + "relationship": "list()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "get", + "relationship": "get()", "resource": "root/Default/Default/test:test/Handler", }, { "direction": "inbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/test:test/Handler", }, ], @@ -1130,67 +1130,67 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "list", + "relationship": "list()", "resource": "root/Default/Default/BigPublisher/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "getObjectCount", + "relationship": "getObjectCount()", "resource": "root/Default/Default/BigPublisher", }, { "direction": "outbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/BigPublisher/b2", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/b2", }, { "direction": "outbound", "implicit": false, - "relationship": "push", + "relationship": "push()", "resource": "root/Default/Default/BigPublisher/cloud.Queue", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Queue", }, { "direction": "outbound", "implicit": false, - "relationship": "publish", + "relationship": "publish()", "resource": "root/Default/Default/BigPublisher/cloud.Topic", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher/cloud.Topic", }, { "direction": "outbound", "implicit": false, - "relationship": "publish", + "relationship": "publish()", "resource": "root/Default/Default/BigPublisher", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/BigPublisher", }, ], @@ -1279,91 +1279,91 @@ exports[`tree.json for an app with many resources 1`] = ` { "direction": "outbound", "implicit": false, - "relationship": "list", + "relationship": "list()", "resource": "root/Default/Default/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "get", + "relationship": "get()", "resource": "root/Default/Default/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "put", + "relationship": "put()", "resource": "root/Default/Default/cloud.Bucket", }, { "direction": "outbound", "implicit": false, - "relationship": "peek", + "relationship": "peek()", "resource": "root/Default/Default/Bar/Foo/cloud.Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/Bar/Foo/cloud.Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "fooGet", + "relationship": "fooGet()", "resource": "root/Default/Default/Bar/Foo", }, { "direction": "outbound", "implicit": false, - "relationship": "inc", + "relationship": "inc()", "resource": "root/Default/Default/Bar/Foo/cloud.Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "fooInc", + "relationship": "fooInc()", "resource": "root/Default/Default/Bar/Foo", }, { "direction": "outbound", "implicit": false, - "relationship": "dec", + "relationship": "dec()", "resource": "root/Default/Default/Bar/Foo/cloud.Counter", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/Bar/Foo", }, { "direction": "outbound", "implicit": false, - "relationship": "myMethod", + "relationship": "myMethod()", "resource": "root/Default/Default/Bar", }, { "direction": "outbound", "implicit": false, - "relationship": "testTypeAccess", + "relationship": "testTypeAccess()", "resource": "root/Default/Default/Bar", }, { "direction": "outbound", "implicit": false, - "relationship": "$inflight_init", + "relationship": "$inflight_init()", "resource": "root/Default/Default/Bar", }, { "direction": "outbound", "implicit": false, - "relationship": "inflightField", + "relationship": "inflightField()", "resource": "root/Default/Default/Bar/Foo", }, ],