profile_associations
Creates, updates, deletes or gets a profile_association resource or lists profile_associations in a region
Overview
| Name | profile_associations |
| Type | Resource |
| Description | Resource Type definition for AWS::Route53Profiles::ProfileAssociation |
| Id | awscc.route53profiles.profile_associations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
resource_id | string | The resource that you associated the profile with. |
profile_id | string | The ID of the profile that you associated with the resource that is specified by ResourceId. |
id | string | Primary Identifier for Profile Association |
name | string | The name of an association between a Profile and a VPC. |
tags | array | An array of key-value pairs to apply to this resource. |
arn | string | The Amazon Resource Name (ARN) of the profile association. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | Primary Identifier for Profile Association |
region | string | AWS region. |
For more information, see AWS::Route53Profiles::ProfileAssociation.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | profile_associations | INSERT | ResourceId, ProfileId, Name, region |
delete_resource | profile_associations | DELETE | Identifier, region |
update_resource | profile_associations | UPDATE | Identifier, PatchDocument, region |
list_resources | profile_associations_list_only | SELECT | region |
get_resource | profile_associations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual profile_association.
SELECT
region,
resource_id,
profile_id,
id,
name,
tags,
arn
FROM awscc.route53profiles.profile_associations
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';
Lists all profile_associations in a region.
SELECT
region,
id
FROM awscc.route53profiles.profile_associations_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new profile_association resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.route53profiles.profile_associations (
ResourceId,
ProfileId,
Name,
region
)
SELECT
'{{ resource_id }}',
'{{ profile_id }}',
'{{ name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.route53profiles.profile_associations (
ResourceId,
ProfileId,
Name,
Tags,
Arn,
region
)
SELECT
'{{ resource_id }}',
'{{ profile_id }}',
'{{ name }}',
'{{ tags }}',
'{{ arn }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: profile_association
props:
- name: resource_id
value: '{{ resource_id }}'
- name: profile_id
value: '{{ profile_id }}'
- name: name
value: '{{ name }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: arn
value: '{{ arn }}'
UPDATE example
Use the following StackQL query and manifest file to update a profile_association resource, using stack-deploy.
/*+ update */
UPDATE awscc.route53profiles.profile_associations
SET PatchDocument = string('{{ {
"Tags": tags,
"Arn": arn
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';
DELETE example
/*+ delete */
DELETE FROM awscc.route53profiles.profile_associations
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';
Permissions
To operate on the profile_associations resource, the following permissions are required:
- Create
- Update
- Read
- Delete
- List
route53profiles:AssociateProfile,
route53profiles:GetProfileAssociation,
route53profiles:ListProfileAssociations,
ec2:DescribeVpcs,
route53profiles:TagResource,
route53profiles:ListTagsForResource
route53profiles:GetProfileAssociation,
route53profiles:TagResource,
route53profiles:UntagResource,
route53profiles:ListTagsForResource
route53profiles:GetProfileAssociation,
route53profiles:ListTagsForResource
route53profiles:DisassociateProfile,
route53profiles:GetProfileAssociation,
route53profiles:UntagResource,
route53profiles:ListTagsForResource
route53profiles:ListProfileAssociations,
route53profiles:ListTagsForResource