ALIYUN::RAM::AttachPolicyToGroup は、ユーザー グループにポリシーをアタッチするために使用されます。
構文
{
"Type": "ALIYUN::RAM::AttachPolicyToGroup",
"Properties": {
"GroupName": String,
"PolicyType": String,
"PolicyName": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
GroupName | String | はい | いいえ | ユーザー グループの名前。 | なし。 |
PolicyType | String | はい | いいえ | ポリシー タイプ。 | 有効な値: |
PolicyName | String | はい | いいえ | ポリシーの名前。 | なし。 |
戻り値
Fn::GetAtt
GroupName: ユーザー グループの名前。
PolicyName: ポリシーの名前。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GroupName:
Type: String
Description:
en: User group name.
Required: true
PolicyType:
Type: String
Description:
en: 'Authorization policy type. Value: "System" or "Custom".'
AllowedValues:
- Custom
- System
Required: true
PolicyName:
Type: String
Description:
en: Authorization policy name.
Required: true
Resources:
AttachPolicyToGroup:
Type: ALIYUN::RAM::AttachPolicyToGroup
Properties:
GroupName:
Ref: GroupName
PolicyType:
Ref: PolicyType
PolicyName:
Ref: PolicyName
Outputs:
GroupName:
Description: ユーザー グループ名。
Value:
Fn::GetAtt:
- AttachPolicyToGroup
- GroupName
PolicyName:
Description: 認可ポリシー名。
Value:
Fn::GetAtt:
- AttachPolicyToGroup
- PolicyName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GroupName": {
"Type": "String",
"Description": {
"en": "User group name."
},
"Required": true
},
"PolicyType": {
"Type": "String",
"Description": {
"en": "Authorization policy type. Value: \"System\" or \"Custom\"."
},
"AllowedValues": [
"Custom",
"System"
],
"Required": true
},
"PolicyName": {
"Type": "String",
"Description": {
"en": "Authorization policy name."
},
"Required": true
}
},
"Resources": {
"AttachPolicyToGroup": {
"Type": "ALIYUN::RAM::AttachPolicyToGroup",
"Properties": {
"GroupName": {
"Ref": "GroupName"
},
"PolicyType": {
"Ref": "PolicyType"
},
"PolicyName": {
"Ref": "PolicyName"
}
}
}
},
"Outputs": {
"GroupName": {
"Description": "ユーザー グループ名。",
"Value": {
"Fn::GetAtt": [
"AttachPolicyToGroup",
"GroupName"
]
}
},
"PolicyName": {
"Description": "認可ポリシー名。",
"Value": {
"Fn::GetAtt": [
"AttachPolicyToGroup",
"PolicyName"
]
}
}
}
}