

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 檢視和更新與 Amazon Route 53 設定檔相關聯的 Route 53 資源 Amazon Route 53
<a name="profiles-resources-editing"></a>

選擇主控台索引標籤以檢視 Route 53 設定檔資源關聯，並選擇性地編輯 DNS 防火牆規則群組優先順序。選擇 CLI 標籤 AWS CLI 以列出資源關聯，並查看 DNS 防火牆規則群組的優先順序更新範例。
+ [主控台](#profile-list-resource-console)
+ [CLI](#profile-list-resource-CLI)

------
#### [ Console ]<a name="profile-resources-editing-procedure"></a>

**檢視和更新與設定檔相關聯的資源**

1. 登入 AWS 管理主控台 並開啟 Route 53 主控台，網址為 https：//[https://console.aws.amazon.com/route53/](https://console.aws.amazon.com/route53/)。

1. 在導覽窗格中，選擇**設定檔**。

1. 在導覽列上，選擇您建立設定檔的區域。

1. 選取您要檢視或編輯資源關聯的設定檔名稱旁的按鈕。

1. 在 **<Profile name>** 頁面上，選擇要檢視或編輯的資源索引標籤，可以是 、**DNS 防火牆規則群組**、**私有託管區域**、**解析程式規則**或 **VPC 端點**。

1. 在資源的索引標籤頁面上，您可以檢視相關資源的名稱、ARN 和狀態。您也可以選擇齒輪圖示來調整資源資料表中顯示的內容。

   在 **DNS 防火牆規則群組**索引標籤頁面上，您也可以選擇規則群組優先順序項目，並將其編輯為較小或較大的數字。規則群組會從最低優先順序數字開始，依序評估為最高優先順序數字。

------
#### [ CLI ]

您可以執行如下所示的 AWS CLI 命令，並使用您自己的 值來列出與設定檔相關聯的資源`profile-id`：

`aws route53profiles list-profile-resource-associations --profile-id rp-4987774726example`

以下是執行 命令之後的範例輸出：

```
{
    "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"
        }
    ]
}
```

您可以執行如下所示的 AWS CLI 命令，並使用 和 的自有值，以及 和 的自有值，來更新`profile-resource-association-id`與設定檔相關聯的 DNS 防火牆規則群組的優先順序`--resource-properties`：

`aws route53profiles update-profile-resource-association --profile-resource-association-id rpr-001913120a7example --resource-properties "{\"priority\": 105}"`

以下是執行 命令之後的範例輸出：

```
{
    "ProfileResourceAssociation": {
        "CreationTime": 1710851216.613,
        "Id": "rpr-001913120a7example",
        "ModificationTime": 1710852303.798,
        "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\":105}",
        "ResourceType": "FIREWALL_RULE_GROUP",
        "Status": "UPDATING",
        "StatusMessage": "Updating the Profile to DNS Firewall rule group association"
    }
}
```

------