Skip to content
GitHubXDiscord

AttributeGroup

The AttributeGroup resource lets you manage AWS ServiceCatalogAppRegistry AttributeGroups which are used to group application attributes in AWS Service Catalog App Registry.

Create a basic AttributeGroup with required properties and a description.

import AWS from "alchemy/aws/control";
const basicAttributeGroup = await AWS.ServiceCatalogAppRegistry.AttributeGroup("basicAttributeGroup", {
name: "MyApplicationAttributes",
description: "This group contains attributes for my application.",
attributes: {
Environment: "Production",
Owner: "DevTeam",
Version: "1.0.0"
}
});

Configure an AttributeGroup with tags for better resource management.

const advancedAttributeGroup = await AWS.ServiceCatalogAppRegistry.AttributeGroup("advancedAttributeGroup", {
name: "MyAdvancedApplicationAttributes",
description: "This group contains advanced attributes for my application.",
attributes: {
Environment: "Staging",
Owner: "DevOpsTeam",
Version: "2.0.0",
LastUpdated: new Date().toISOString()
},
tags: {
Project: "MyProject",
Team: "Development"
}
});

Create an AttributeGroup that adopts an existing resource if it already exists.

const adoptAttributeGroup = await AWS.ServiceCatalogAppRegistry.AttributeGroup("adoptAttributeGroup", {
name: "MyAdoptedApplicationAttributes",
description: "This group adopts existing resource attributes.",
attributes: {
Environment: "Testing",
Owner: "QA Team",
Version: "1.2.3"
},
adopt: true
});