Skip to main content

profile_associations

Creates, updates, deletes or gets a profile_association resource or lists profile_associations in a region

Overview

Nameprofile_associations
TypeResource
DescriptionResource Type definition for AWS::Route53Profiles::ProfileAssociation
Idaws.route53profiles.profile_associations

Fields

NameDatatypeDescription
resource_idstringThe resource that you associated the profile with.
profile_idstringThe ID of the profile that you associated with the resource that is specified by ResourceId.
idstringPrimary Identifier for Profile Association
namestringThe name of an association between a Profile and a VPC.
tagsarrayAn array of key-value pairs to apply to this resource.
arnstringThe Amazon Resource Name (ARN) of the profile association.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceId, ProfileId, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.route53profiles.profile_associations (
ResourceId,
ProfileId,
Name,
region
)
SELECT
'{{ ResourceId }}',
'{{ ProfileId }}',
'{{ Name }}',
'{{ region }}';

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