Skip to main content

profile_resource_associations

Creates, updates, deletes, gets or lists a profile_resource_associations resource.

Overview

Nameprofile_resource_associations
TypeResource
Idaws.route53profiles.profile_resource_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The date and time that the Profile resource association was created, in Unix time format and Coordinated Universal Time (UTC).
idstringID of the Profile resource association.
modification_timestring (date-time)The date and time that the Profile resource association was modified, in Unix time format and Coordinated Universal Time (UTC).
namestringName of the Profile resource association. (pattern: <code>^(?!^[0-9]+$)([a-zA-Z0-9-_' ']+)$</code>)
owner_idstringAmazon Web Services account ID of the Profile resource association owner.
profile_idstringProfile ID of the Profile that the resources are associated with.
resource_arnstringThe Amazon Resource Name (ARN) of the resource association.
resource_propertiesstringIf the DNS resource is a DNS Firewall rule group, this indicates the priority.
resource_typestringResource type, such as a private hosted zone, or DNS Firewall rule group.
statusstringStatus of the Profile resource association. (COMPLETE, DELETING, UPDATING, CREATING, DELETED, FAILED)
status_messagestringAdditional information about the Profile resource association.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_profile_resource_associationselectprofile_resource_association_id, regionReturns information about a specified Route 53 Profile resource association.
list_profile_resource_associationsselectprofile_id, regionmaxResults, nextToken, resourceTypeLists all the resource associations for the specified Route 53 Profile.
update_profile_resource_associationupdateprofile_resource_association_id, regionUpdates the specified Route 53 Profile resourse association.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
profile_idstringThe ID of the Profile.
profile_resource_association_idstringID of the resource association.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of objects that you want to return for this request. If more objects are available, in the response, a NextToken value, which you can use in a subsequent call to get the next batch of objects, is provided. If you don't specify a value for MaxResults, up to 100 objects are returned.
nextTokenstringFor the first call to this list request, omit this value. When you request a list of objects, at most the number of objects specified by MaxResults is returned. If more objects are available for retrieval, a NextToken value is returned in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.
resourceTypestringID of a resource if you want information on only one type.

SELECT examples

Returns information about a specified Route 53 Profile resource association.

SELECT
creation_time,
id,
modification_time,
name,
owner_id,
profile_id,
resource_arn,
resource_properties,
resource_type,
status,
status_message
FROM aws.route53profiles.profile_resource_associations
WHERE profile_resource_association_id = '{{ profile_resource_association_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the specified Route 53 Profile resourse association.

UPDATE aws.route53profiles.profile_resource_associations
SET
Name = '{{ Name }}',
ResourceProperties = '{{ ResourceProperties }}'
WHERE
profile_resource_association_id = '{{ profile_resource_association_id }}' --required
AND region = '{{ region }}' --required
RETURNING
profile_resource_association;