CLI로 DescribeTrustedAdvisorChecks 사용 - AWS Support

CLI로 DescribeTrustedAdvisorChecks 사용

다음 코드 예시는 DescribeTrustedAdvisorChecks의 사용 방법을 보여 줍니다.

CLI
AWS CLI

사용 가능한 AWS Trusted 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 Support 사용자 안내서AWS Trusted Advisor를 참조하세요.

PowerShell
Tools for PowerShell V4

예제 1: Trusted Advisor 검사 컬렉션을 반환합니다. 영어 출력의 경우 "en", 일본어 출력의 경우 "ja"를 받을 수 있는 언어 파라미터를 지정해야 합니다.

Get-ASATrustedAdvisorCheck -Language "en"
Tools for PowerShell V5

예제 1: Trusted Advisor 검사 컬렉션을 반환합니다. 영어 출력의 경우 "en", 일본어 출력의 경우 "ja"를 받을 수 있는 언어 파라미터를 지정해야 합니다.

Get-ASATrustedAdvisorCheck -Language "en"

AWS SDK 개발자 가이드 및 코드 예시의 전체 목록은 AWS Support와 AWS SDK 사용 섹션을 참조하세요. 이 주제에는 시작하기에 대한 정보와 이전 SDK 버전에 대한 세부 정보도 포함되어 있습니다.