The ALIYUN::RAM::AttachPolicyToUser resource attaches a policy to a specified user.
Syntax
{
"Type": "ALIYUN::RAM::AttachPolicyToUser",
"Properties": {
"PolicyType": String,
"UserName": String,
"PolicyName": String
}
}Properties
| Property Name | Type | Required | Update allowed | Description | Constraints |
| PolicyType | String | Yes | No | The type of the access policy. | Valid values:
|
| UserName | String | Yes | No | The username. | None. |
| PolicyName | String | Yes | No | The name of the access policy. | None. |
Return values
Fn::GetAtt
None.
Examples
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "AttachPolicyToUser": { "Type": "ALIYUN::RAM::AttachPolicyToUser", "Properties": { "PolicyType": "Custom", "UserName": "dev", "PolicyName": "TestPolicy" } } } }