Doc AWS SDK 예제 GitHub 리포지토리에서 더 많은 SDK 예제를 사용할 수 있습니다. AWS
기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
CLI로 DeleteTags 사용
다음 코드 예시는 DeleteTags의 사용 방법을 보여 줍니다.
- CLI
-
- AWS CLI
-
WorkSpace에서 태그를 삭제하는 방법
다음
delete-tags예제에서는 지정된 WorkSpace에서 지정된 태그를 삭제합니다.aws workspaces delete-tags \ --resource-idws-dk1xzr417\ --tag-keysDepartment이 명령은 출력을 생성하지 않습니다.
자세한 내용은 Amazon WorkSpaces 관리 안내서의 WorkSpaces 리소스 태그를 참조하세요.
-
API 세부 정보는 AWS CLI 명령 참조의 DeleteTags
섹션을 참조하세요.
-
- PowerShell
-
- Tools for PowerShell V4
-
예제 1: 이 샘플에서는 Workspace와 연결된 태그를 제거합니다.
Remove-WKSTag -ResourceId ws-w10b3abcd -TagKey "Type"출력:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-WKSTag (DeleteTags)" on target "ws-w10b3abcd". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V4)의 DeleteTags를 참조하세요.
-
- Tools for PowerShell V5
-
예제 1: 이 샘플에서는 Workspace와 연결된 태그를 제거합니다.
Remove-WKSTag -ResourceId ws-w10b3abcd -TagKey "Type"출력:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-WKSTag (DeleteTags)" on target "ws-w10b3abcd". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V5)의 DeleteTags를 참조하세요.
-
CreateWorkspaces
DescribeTags