Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅
中国的 Amazon Web Services 服务入门
(PDF)。
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
将解析器查询日志配置关联到 Route 53 配置文件
有关如何创建 Resolver 查询日志配置的说明,请参阅,然后选择一个选项卡配置(Resolver 查询日志记录),使用 Route 53 控制台将解析器配置与 Route 53 配置文件关联起来,或者。 Amazon CLI
- Console
-
- CLI
-
通过运行如下 Amazon CLI 命令并使用自己的和值,可以将查询日志配置与配置文件相关联resource-arn。name profile-id
aws route53profiles associate-resource-to-profile --name
test-resource-association --profile-id
rp-4987774726example --resource-arn
arn:aws:route53resolver:us-east-1:123456789012:resolver-query-log-config/rqlc-cfe7f72example
以下是运行此命令后的示例输出。
{
"ProfileResourceAssociation": {
"CreationTime": 1710851226.613,
"Id": "rpr-001913120b8example",
"ModificationTime": 1710851226.613,
"Name": "test-resource-association",
"OwnerId": "123456789012",
"ProfileId": "rp-4987774726example",
"ResourceArn": "arn:aws:route53resolver:us-east-1:123456789012:resolver-query-log-config/rqlc-cfe7f72example",
"ResourceType": "RESOLVER_QUERY_LOG_CONFIG",
"Status": "CREATING",
"StatusMessage": "Creating rp-4987774726example to rqlc-cfe7f72example association"
}
}