Skip to content

GetAssociatedResource

Source: src/AWS/AppRegistry/GetAssociatedResource.ts

Runtime binding for servicecatalog:GetAssociatedResource.

Reads one resource associated with the bound application, including its application-tag sync status. Provide the implementation with Effect.provide(AWS.AppRegistry.GetAssociatedResourceHttp).

// init — bind the operation to the application
const getAssociatedResource =
yield* AWS.AppRegistry.GetAssociatedResource(app);
// runtime
const result = yield* getAssociatedResource({
resourceType: "CFN_STACK",
resource: "my-stack",
});
console.log(result.resource?.arn);