Lambda Function to detach policy from user

0

I have created an Cloudwatch Alarm which will trigger the Lambda Function where I need to create a lambda function to detach policy from IAM user.

2개 답변
2

Hi - Not very clear what your ask is but yes you can use like detach-user-policy which removes the specified managed policy from the specified user.

profile pictureAWS
전문가
답변함 2년 전
profile pictureAWS
전문가
검토됨 2년 전
1

The following document provides AWS SDK examples for detaching a policy from an IAM user - https://docs.aws.amazon.com/IAM/latest/UserGuide/example_iam_DetachUserPolicy_section.html

The example is only in Go, Python and Rust, but if you do not speak any of these languages, then you can find documentation details on the SDK in different langugages here - https://docs.aws.amazon.com/IAM/latest/APIReference/API_DetachUserPolicy.html

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠