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 | aws.route53profiles.profile_associations |
Fields
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. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ResourceId, ProfileId, Name, 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 profile_associations
in a region.
SELECT
region,
resource_id,
profile_id,
id,
name,
tags,
arn
FROM aws.route53profiles.profile_associations
WHERE region = 'us-east-1';
Gets all properties from an individual profile_association
.
SELECT
region,
resource_id,
profile_id,
id,
name,
tags,
arn
FROM aws.route53profiles.profile_associations
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
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 aws.route53profiles.profile_associations (
ResourceId,
ProfileId,
Name,
region
)
SELECT
'{{ ResourceId }}',
'{{ ProfileId }}',
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.route53profiles.profile_associations (
ResourceId,
ProfileId,
Name,
Tags,
Arn,
region
)
SELECT
'{{ ResourceId }}',
'{{ ProfileId }}',
'{{ 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: ResourceId
value: '{{ ResourceId }}'
- name: ProfileId
value: '{{ ProfileId }}'
- name: Name
value: '{{ Name }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: Arn
value: '{{ Arn }}'
DELETE
example
/*+ delete */
DELETE FROM aws.route53profiles.profile_associations
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the profile_associations
resource, the following permissions are required:
Create
route53profiles:AssociateProfile,
route53profiles:GetProfileAssociation,
ec2:DescribeVpcs,
route53profiles:TagResource
Update
route53profiles:GetProfileAssociation,
route53profiles:TagResource,
route53profiles:UntagResource,
route53profiles:ListTagsForResource
Read
route53profiles:GetProfileAssociation,
route53profiles:ListTagsForResource
Delete
route53profiles:DisassociateProfile,
route53profiles:GetProfileAssociation,
route53profiles:UntagResource
List
route53profiles:ListProfileAssociations,
route53profiles:ListTagsForResource