gpt4 book ai didi

c# - 来自 .NET SDK 的 AttachUserPolicy

转载 作者:太空宇宙 更新时间:2023-11-03 10:30:05 25 4
gpt4 key购买 nike

我正在使用 SDK 创建一个新的 AWS 用户。我能够创建它,并很好地检索访问和 secret key 。但我还想将现有策略附加到新用户,大概使用此命令

http://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html

此方法是否存在于 .NET SDK 中的某处?经过大量搜索后,我找不到它。

最佳答案

您正在寻找 AmazonIdentityManagementServiceClient.AttachUserPolicy .

签名:

public virtual AttachUserPolicyResponse AttachUserPolicy(AttachUserPolicyRequest request)

请求:

响应:

还有一个 async version ,如果您有兴趣的话。

关于c# - 来自 .NET SDK 的 AttachUserPolicy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30492843/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com