DescribeTrustedAdvisorChecks与 a 一起使用 CLI - AWS Support

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

DescribeTrustedAdvisorChecks与 a 一起使用 CLI

以下代码示例演示如何使用 DescribeTrustedAdvisorChecks

CLI
AWS CLI

列出可用的 T AWS rusted Advisor 支票

以下describe-trusted-advisor-checks示例列出了您 AWS 账户中可用的 Trusted Advisor 支票。这些信息包括支票名称、ID、描述、类别和元数据。请注意,为了便于阅读,输出被缩短了。

aws support describe-trusted-advisor-checks \ --language "en"

输出:

{ "checks": [ { "id": "zXCkfM1nI3", "name": "IAM Use", "description": "Checks for your use of AWS Identity and Access Management (IAM). You can use IAM to create users, groups, and roles in AWS, and you can use permissions to control access to AWS resources. \n<br>\n<br>\n<b>Alert Criteria</b><br>\nYellow: No IAM users have been created for this account.\n<br>\n<br>\n<b>Recommended Action</b><br>\nCreate one or more IAM users and groups in your account. You can then create additional users whose permissions are limited to perform specific tasks in your AWS environment. For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/IAMGettingStarted.html\" target=\"_blank\">Getting Started</a>. \n<br><br>\n<b>Additional Resources</b><br>\n<a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_Introduction.html\" target=\"_blank\">What Is IAM?</a>", "category": "security", "metadata": [] } ] }

有关更多信息,请参阅《AWS 支持用户指南》中的 T AWS rusted Advisor

PowerShell
用于 PowerShell

示例 1:返回 Trusted Advisor 支票的集合。必须指定语言参数,该参数可以接受 “en” 表示英语输出,也可以接受 “ja” 表示日语输出。

Get-ASATrustedAdvisorCheck -Language "en"

有关 AWS SDK开发者指南和代码示例的完整列表,请参阅AWS Support 与 AWS SDK 一起使用。本主题还包括有关入门的信息以及有关先前SDK版本的详细信息。