CmdID

CmdID / aws / aws route53profiles

aws route53profiles associate-resource-to-profile

Associates a DNS reource configuration to a Route 53 Profile. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To associate a resource to a Profile

The following associate-resource-to-profile example associates a DNS Firewall rule group with the priority of 102 to a Profile.

aws route53profiles associate-resource-to-profile --name test-resource-association --profile-id rp-4987774726example --resource-arn arn:aws:route53resolver:us-west-2:123456789012:firewall-rule-group/rslvr-frg-cfe7f72example --resource-properties "{\"priority\": 102}"Identify
--nameName for the resource association.
--profile-idID of the Profile.
--resource-arnAmazon resource number, ARN, of the DNS resource.
--resource-propertiesIf you are adding a DNS Firewall rule group, include also a priority.
Its output
{
    "ProfileResourceAssociation": {
        "CreationTime": 1710851216.613,
        "Id": "rpr-001913120a7example",
        "ModificationTime": 1710851216.613,
        "Name": "test-resource-association",
        "OwnerId": "123456789012",
        "ProfileId": "rp-4987774726example",
        "ResourceArn": "arn:aws:route53resolver:us-west-2:123456789012:firewall-rule-group/rslvr-frg-cfe7f72example",
        "ResourceProperties": "{\"priority\":102}",
        "ResourceType": "FIREWALL_RULE_GROUP",
        "Status": "UPDATING",
        "StatusMessage": "Updating the Profile to DNS Firewall rule group association"
    }
}

For more information, see Associate DNS Firewall rule groups to a Route 53 Profile in the Amazon Route 53 Developer Guide.

Options

4 in the AWS CLI reference
--nameName for the resource association.
--profile-idID of the Profile.
--resource-arnAmazon resource number, ARN, of the DNS resource.
--resource-propertiesIf you are adding a DNS Firewall rule group, include also a priority.