Skip to content

Instantly share code, notes, and snippets.

@stack72
Last active May 2, 2024 22:44
Show Gist options
  • Save stack72/7400abf9c59998b2c06660db74016259 to your computer and use it in GitHub Desktop.
Save stack72/7400abf9c59998b2c06660db74016259 to your computer and use it in GitHub Desktop.
function main() {
const arnProp = new PropBuilder()
.setName("ARN")
.setKind("string")
.setWidget(new PropWidgetDefinitionBuilder().setKind("text")
.build())
.build();
const arnOutputSocket = new SocketDefinitionBuilder()
.setName("ARN")
.setArity("many")
.setValueFrom(new ValueFromBuilder()
.setKind("prop")
.setPropPath(["root", "domain", "ARN"])
.build())
.build();
return new AssetBuilder()
.addProp(arnProp)
.addOutputSocket(arnOutputSocket)
.build()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment