attribute_groups
Creates, updates, deletes or gets an attribute_group resource or lists attribute_groups in a region
Overview
| Name | attribute_groups |
| Type | Resource |
| Description | Resource Schema for AWS::ServiceCatalogAppRegistry::AttributeGroup. |
| Id | awscc.servicecatalogappregistry.attribute_groups |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
id | string | |
arn | string | |
name | string | The name of the attribute group. |
description | string | The description of the attribute group. |
attributes | object | |
tags | object | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | |
region | string | AWS region. |
For more information, see AWS::ServiceCatalogAppRegistry::AttributeGroup.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | attribute_groups | INSERT | Name, Attributes, region |
delete_resource | attribute_groups | DELETE | Identifier, region |
update_resource | attribute_groups | UPDATE | Identifier, PatchDocument, region |
list_resources | attribute_groups_list_only | SELECT | region |
get_resource | attribute_groups | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual attribute_group.
SELECT
region,
id,
arn,
name,
description,
attributes,
tags
FROM awscc.servicecatalogappregistry.attribute_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';
Lists all attribute_groups in a region.
SELECT
region,
id
FROM awscc.servicecatalogappregistry.attribute_groups_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new attribute_group resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.servicecatalogappregistry.attribute_groups (
Name,
Attributes,
region
)
SELECT
'{{ name }}',
'{{ attributes }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.servicecatalogappregistry.attribute_groups (
Name,
Description,
Attributes,
Tags,
region
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ attributes }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: attribute_group
props:
- name: name
value: '{{ name }}'
- name: description
value: '{{ description }}'
- name: attributes
value: {}
- name: tags
value: {}
UPDATE example
Use the following StackQL query and manifest file to update a attribute_group resource, using stack-deploy.
/*+ update */
UPDATE awscc.servicecatalogappregistry.attribute_groups
SET PatchDocument = string('{{ {
"Name": name,
"Description": description,
"Attributes": attributes,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';
DELETE example
/*+ delete */
DELETE FROM awscc.servicecatalogappregistry.attribute_groups
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';
Permissions
To operate on the attribute_groups resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
servicecatalog:CreateAttributeGroup,
servicecatalog:TagResource
servicecatalog:GetAttributeGroup
servicecatalog:GetAttributeGroup,
servicecatalog:UpdateAttributeGroup,
servicecatalog:ListTagsForResource,
servicecatalog:TagResource,
servicecatalog:UntagResource
servicecatalog:DeleteAttributeGroup
servicecatalog:ListAttributeGroups