attribute_group_associations
Creates, updates, deletes or gets an attribute_group_association
resource or lists attribute_group_associations
in a region
Overview
Name | attribute_group_associations |
Type | Resource |
Description | Resource Schema for AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation. |
Id | aws.servicecatalogappregistry.attribute_group_associations |
Fields
Name | Datatype | Description |
---|---|---|
application | string | The name or the Id of the Application. |
attribute_group | string | The name or the Id of the AttributeGroup. |
application_arn | string | |
attribute_group_arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Application, AttributeGroup, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all attribute_group_associations
in a region.
SELECT
region,
application,
attribute_group,
application_arn,
attribute_group_arn
FROM aws.servicecatalogappregistry.attribute_group_associations
WHERE region = 'us-east-1';
Gets all properties from an individual attribute_group_association
.
SELECT
region,
application,
attribute_group,
application_arn,
attribute_group_arn
FROM aws.servicecatalogappregistry.attribute_group_associations
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationArn>|<AttributeGroupArn>';
INSERT
example
Use the following StackQL query and manifest file to create a new attribute_group_association
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.servicecatalogappregistry.attribute_group_associations (
Application,
AttributeGroup,
region
)
SELECT
'{{ Application }}',
'{{ AttributeGroup }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.servicecatalogappregistry.attribute_group_associations (
Application,
AttributeGroup,
region
)
SELECT
'{{ Application }}',
'{{ AttributeGroup }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: attribute_group_association
props:
- name: Application
value: '{{ Application }}'
- name: AttributeGroup
value: '{{ AttributeGroup }}'
DELETE
example
/*+ delete */
DELETE FROM aws.servicecatalogappregistry.attribute_group_associations
WHERE data__Identifier = '<ApplicationArn|AttributeGroupArn>'
AND region = 'us-east-1';
Permissions
To operate on the attribute_group_associations
resource, the following permissions are required:
Create
servicecatalog:AssociateAttributeGroup
Read
servicecatalog:ListAttributeGroupsForApplication
Delete
servicecatalog:DisassociateAttributeGroup
List
servicecatalog:ListAttributeGroupsForApplication