ALIYUN::RAM::AttachPolicyToUser は、指定されたユーザーに権限を付与するために使用されます。
構文
{
"Type": "ALIYUN::RAM::AttachPolicyToUser",
"Properties": {
"PolicyType": String,
"UserName": String,
"PolicyName": String
}
}プロパティ
| パラメーター | 型 | 必須 | 編集可能 | 説明 | 制約 |
| PolicyType | String | はい | いいえ | 認証ポリシーのタイプ。 | 有効な値:
|
| UserName | String | はい | いいえ | ユーザー名。 | 該当なし |
| PolicyName | String | はい | いいえ | 認証ポリシー名。 | 該当なし |
エラーコード
Fn::GetAtt
なし。
例
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "AttachPolicyToUser": { "Type": "ALIYUN::RAM::AttachPolicyToUser", "Properties": { "PolicyType": "Custom", "UserName": "dev", "PolicyName": "TestPolicy" } } } }