Skip to main content

attribute_groups

Creates, updates, deletes, gets or lists an attribute_groups resource.

Overview

Nameattribute_groups
TypeResource
Idaws.servicecatalog_appregistry.attribute_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the attribute group. (pattern: <code>[-.\w]+</code>)
namestringThe name of the attribute group. (pattern: <code>[-.\w]+</code>)
arnstringThe Amazon resource name (ARN) that specifies the attribute group across services. (pattern: <code>arn:aws[-a-z]*:servicecatalog:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:/attribute-groups/[-.\w]+</code>)
attributesstringA JSON string in the form of nested key-value pairs that represent the attributes in the group and describes an application and its components. (pattern: <code>[\u0009\u000A\u000D\u0020-\u00FF]+</code>)
created_bystringThe service principal that created the attribute group. (pattern: <code>^(?!-)([a-z0-9-]+.)+(aws.internal|amazonaws.com(.cn)?)$</code>)
creation_timestring (date-time)The ISO-8601 formatted timestamp of the moment the attribute group was created.
descriptionstringThe description of the attribute group that the user provides.
last_update_timestring (date-time)The ISO-8601 formatted timestamp of the moment the attribute group was last updated. This time is the same as the creationTime for a newly created attribute group.
tagsobjectKey-value pairs associated with the attribute group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_attribute_groupselectattribute_group, regionRetrieves an attribute group by its ARN, ID, or name. The attribute group can be specified by its ARN, ID, or name.
list_attribute_groupsselectregionnextToken, maxResultsLists all attribute groups which you have access to. Results are paginated.
create_attribute_groupinsertregion, name, attributes, clientTokenCreates a new attribute group as a container for user-defined attributes. This feature enables users to have full control over their cloud application's metadata in a rich machine-readable format to facilitate integration with automated workflows and third-party tools.
associate_attribute_groupupdateapplication, attribute_group, regionAssociates an attribute group with an application to augment the application's metadata with the group's attributes. This feature enables applications to be described with user-defined details that are machine-readable, such as third-party integrations.
update_attribute_groupupdateattribute_group, regionUpdates an existing attribute group with new details.
delete_attribute_groupdeleteattribute_group, regionDeletes an attribute group, specified either by its attribute group ID, name, or ARN.
disassociate_attribute_groupexecapplication, attribute_group, regionDisassociates an attribute group from an application to remove the extra attributes contained in the attribute group from the application's metadata. This operation reverts AssociateAttributeGroup.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
applicationstringThe name, ID, or ARN of the application.
attribute_groupstringThe name, ID, or ARN of the attribute group that holds the attributes to describe the application.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe upper bound of the number of results to return (cannot exceed 25). If this parameter is omitted, it defaults to 25. This value is optional.
nextTokenstringThe token to use to get the next page of results after a previous API call.

SELECT examples

Retrieves an attribute group by its ARN, ID, or name. The attribute group can be specified by its ARN, ID, or name.

SELECT
id,
name,
arn,
attributes,
created_by,
creation_time,
description,
last_update_time,
tags
FROM aws.servicecatalog_appregistry.attribute_groups
WHERE attribute_group = '{{ attribute_group }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new attribute group as a container for user-defined attributes. This feature enables users to have full control over their cloud application's metadata in a rich machine-readable format to facilitate integration with automated workflows and third-party tools.

INSERT INTO aws.servicecatalog_appregistry.attribute_groups (
name,
description,
attributes,
tags,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ attributes }}' /* required */,
'{{ tags }}',
'{{ clientToken }}' /* required */,
'{{ region }}'
RETURNING
attribute_group
;

UPDATE examples

Associates an attribute group with an application to augment the application's metadata with the group's attributes. This feature enables applications to be described with user-defined details that are machine-readable, such as third-party integrations.

UPDATE aws.servicecatalog_appregistry.attribute_groups
SET
-- No updatable properties
WHERE
application = '{{ application }}' --required
AND attribute_group = '{{ attribute_group }}' --required
AND region = '{{ region }}' --required
RETURNING
application_arn,
attribute_group_arn;

DELETE examples

Deletes an attribute group, specified either by its attribute group ID, name, or ARN.

DELETE FROM aws.servicecatalog_appregistry.attribute_groups
WHERE attribute_group = '{{ attribute_group }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Disassociates an attribute group from an application to remove the extra attributes contained in the attribute group from the application's metadata. This operation reverts AssociateAttributeGroup.

EXEC aws.servicecatalog_appregistry.attribute_groups.disassociate_attribute_group
@application='{{ application }}' --required,
@attribute_group='{{ attribute_group }}' --required,
@region='{{ region }}' --required
;