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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ