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 | aws.servicecatalogappregistry.attribute_groups |
Fields
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. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, Attributes, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all attribute_groups
in a region.
SELECT
region,
id,
arn,
name,
description,
attributes,
tags
FROM aws.servicecatalogappregistry.attribute_groups
WHERE region = 'us-east-1';
Gets all properties from an individual attribute_group
.
SELECT
region,
id,
arn,
name,
description,
attributes,
tags
FROM aws.servicecatalogappregistry.attribute_groups
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
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 aws.servicecatalogappregistry.attribute_groups (
Name,
Attributes,
region
)
SELECT
'{{ Name }}',
'{{ Attributes }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.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: {}
DELETE
example
/*+ delete */
DELETE FROM aws.servicecatalogappregistry.attribute_groups
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the attribute_groups
resource, the following permissions are required:
Create
servicecatalog:CreateAttributeGroup,
servicecatalog:TagResource
Read
servicecatalog:GetAttributeGroup
Update
servicecatalog:GetAttributeGroup,
servicecatalog:UpdateAttributeGroup,
servicecatalog:ListTagsForResource,
servicecatalog:TagResource,
servicecatalog:UntagResource
Delete
servicecatalog:DeleteAttributeGroup
List
servicecatalog:ListAttributeGroups