すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::RAM::AttachPolicyToUser

最終更新日:Jan 16, 2025

ALIYUN::RAM::AttachPolicyToUser は、指定されたユーザーに権限を付与するために使用されます。

構文

{
  "Type": "ALIYUN::RAM::AttachPolicyToUser",
  "Properties": {
    "PolicyType": String,
    "UserName": String,
    "PolicyName": String
  }
}

プロパティ

パラメーター必須編集可能説明制約
PolicyTypeStringはいいいえ認証ポリシーのタイプ。有効な値:
  • System
  • Custom
UserNameStringはいいいえユーザー名。該当なし
PolicyNameStringはいいいえ認証ポリシー名。該当なし

エラーコード

Fn::GetAtt

なし。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      AttachPolicyToUser:
        Type: ALIYUN::RAM::AttachPolicyToUser
        Properties:
          PolicyType: Custom
          UserName: dev
          PolicyName: TestPolicy
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "AttachPolicyToUser": {
          "Type": "ALIYUN::RAM::AttachPolicyToUser",
          "Properties": {
            "PolicyType": "Custom",
            "UserName": "dev",
            "PolicyName": "TestPolicy"
          }
        }
      }
    }