我正在使用开发工具包创建一个新的 AWS 用户。我能够创建它,并检索访问 key 和 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/