AWS SDK 또는 CLI로 ListUserTags with a CLI 사용하기

AWS SDK 또는 CLI로 ListUserTags with a CLI 사용하기

다음 코드 예시는 ListUserTags with a CLI을(를) 사용하는 방법을 보여줘요.

출처: 문서

본문

AWS CLI

사용자에 연결된 태그를 나열하려면

다음 list-user-tags 명령은 지정 IAM 사용자와 연결된 태그 목록을 가져와요.

aws iam list-user-tags \
    --user-name
alice

출력:

{

    "Tags": [

{

            "Key": "Department",
            "Value": "Accounting"
        },

{

            "Key": "DeptID",
            "Value": "12345"
        }
    ],
    "IsTruncated": false
}

더 자세한 내용은 AWS IAM 사용자 가이드의 'IAM 리소스 태깅' 문서를 참고하세요.

API 상세 내용은 AWS CLI Command Reference의 ListUserTags 문서를 참고하세요.

Tools for PowerShell V4

예시 1: 이 예시는 사용자와 연결된 태그를 가져와요.

Get-IAMUserTagList -UserName joe

API 상세 내용은 AWS Tools for PowerShell Cmdlet Reference (V4)의 ListUserTags 문서를 참고하세요.

Tools for PowerShell V5

예시 1: 이 예시는 사용자와 연결된 태그를 가져와요.

Get-IAMUserTagList -UserName joe

API 상세 내용은 AWS Tools for PowerShell Cmdlet Reference (V5)의 ListUserTags 문서를 참고하세요.

더 알아보기 (Learn more)