ListProfileResourceAssociations
Lists all the resource associations for the specified Route 53 Profile.
Request Syntax
GET /profileresourceassociations/profileid/ProfileId
?maxResults=MaxResults
&nextToken=NextToken
&resourceType=ResourceType
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- MaxResults
-
The 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.Valid Range: Minimum value of 1. Maximum value of 100.
- NextToken
-
For 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, aNextToken
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. - ProfileId
-
The ID of the Profile.
Length Constraints: Minimum length of 1. Maximum length of 64.
Required: Yes
- ResourceType
-
ID of a resource if you want information on only one type.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"NextToken": "string",
"ProfileResourceAssociations": [
{
"CreationTime": number,
"Id": "string",
"ModificationTime": number,
"Name": "string",
"OwnerId": "string",
"ProfileId": "string",
"ResourceArn": "string",
"ResourceProperties": "string",
"ResourceType": "string",
"Status": "string",
"StatusMessage": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- NextToken
-
If more than
MaxResults
resource associations match the specified criteria, you can submit anotherListProfileResourceAssociations
request to get the next group of results. In the next request, specify the value ofNextToken
from the previous response.Type: String
- ProfileResourceAssociations
-
Information about the profile resource association that you specified in a
GetProfileResourceAssociation
request.Type: Array of ProfileResourceAssociation objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
The current account doesn't have the IAM permissions required to perform the specified operation.
HTTP Status Code: 400
- InternalServiceErrorException
-
An internal server error occured. Retry your request.
HTTP Status Code: 400
- InvalidNextTokenException
-
The
NextToken
you provided isn;t valid.HTTP Status Code: 400
- InvalidParameterException
-
One or more parameters in this request are not valid.
HTTP Status Code: 400
- ResourceNotFoundException
-
The resource you are associating is not found.
HTTP Status Code: 400
- ThrottlingException
-
The request was throttled. Try again in a few minutes.
HTTP Status Code: 400
- ValidationException
-
You have provided an invalid command.
HTTP Status Code: 400
Examples
ListProfileResourceAssociations Example
This example illustrates one usage of ListProfileResourceAssociations.
Sample Request
GET /profileresourceassociations/profileid/rp-4987774726example HTTP/1.1
host:route53profiles.us-east-1.amazonaws.com
Accept-Encoding: identity
X-Amz-Date:20240319T231834Z
User-Agent: aws-cli/1.32.63 botocore/1.34.63 Python/3.8.18
Authorization: AWS4-HMAC-SHA256
Credential=AKIAJJ2SONIPEXAMPLE/20181101/us-east-1/route53profiles/aws4_request,
SignedHeaders=host;x-amz-date;x-amz-security-token
Signature=[calculated-signature]
{} # RequestBody is empty
Sample Response
HTTP/1.1 200 OK
Date: Tue, 19 Mar 2024 23:18:34 GMT
Content-Type: application/json
Content-Length: 520
Connection: keep-alive
x-amzn-RequestId: dcd9d91e-1a5a-481f-82b7-bafe7dexample
Access-Control-Allow-Origin: *
x-amz-apigw-id: U5eX0FdmIexample=
X-Amzn-Trace-Id: Root=1-65fa10fe-6e5a93a56a325ab8example
{
"ProfileResourceAssociations": [
{
"CreationTime": 1710851216.613,
"Id": "rpr-001913120a7example",
"ModificationTime": 1710851216.613,
"Name": "test-resource-association",
"OwnerId": "123456789012",
"ProfileId": "rp-4987774726example",
"ResourceArn": "arn:aws:route53resolver:us-east-1:123456789012:firewall-rule-group/rslvr-frg-cfe7f72example",
"ResourceProperties": "{\"priority\":102}",
"ResourceType": "FIREWALL_RULE_GROUP",
"Status": "COMPLETE",
"StatusMessage": "Completed creation of Profile to DNS Firewall rule group association"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: