Skip to content

AttributeGroupAssociation

Source: src/AWS/AppRegistry/AttributeGroupAssociation.ts

Associates an AppRegistry AttributeGroup with an Application so the group’s user-defined JSON metadata augments the application’s machine-readable description.

import * as AppRegistry from "alchemy/AWS/AppRegistry";
const app = yield* AppRegistry.Application("Storefront", {});
const group = yield* AppRegistry.AttributeGroup("Ownership", {
attributes: { owner: "commerce-team" },
});
const association = yield* AppRegistry.AttributeGroupAssociation("Assoc", {
application: app.applicationId,
attributeGroup: group.attributeGroupId,
});