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

Resource Orchestration Service:データソース::RAM::ユーザー

最終更新日:Mar 17, 2025

DATASOURCE::RAM::User は、Resource Access Management (RAM) ユーザーに関する情報をクエリするために使用されます。

構文

{
  "Type": "DATASOURCE::RAM::User",
  "Properties": {
    "UserName": String,
    "UserId": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

UserName

String

いいえ

はい

RAM ユーザーのログイン名。

なし。

UserId

String

いいえ

はい

RAM ユーザーの ID。

なし。

RefreshOptions

String

いいえ

はい

スタックの更新時のデータソースリソースのリフレッシュポリシー。

有効な値:

  • Never (デフォルト): スタックの更新時にデータソースリソースをリフレッシュしません。

  • Always: スタックの更新時にデータソースリソースをリフレッシュします。

戻り値

Fn::GetAtt

  • UserName: RAM ユーザーのログイン名。

  • Email: RAM ユーザーのメールアドレス。

  • UserId: RAM ユーザーの ID。

  • Comments: コメント。

  • DisplayName: RAM ユーザーの表示名。

  • MobilePhone: RAM ユーザーの電話番号。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  UserName:
    Type: String
    Description:
      en: RAM user name. At most one UserName and UserId can be specified; if both are specified, UserName will be used. If neither is specified, the current user ID will be used.
    Required: false
  UserId:
    Type: String
    Description:
      en: RAM user ID. At most one UserName and UserId can be specified; if both are specified, UserName will be used. If neither is specified, the current user ID will be used.
    Required: false
Resources:
  User:
    Type: DATASOURCE::RAM::User
    Properties:
      UserName:
        Ref: UserName
      UserId:
        Ref: UserId
Outputs:
  UserName:
    Description: The name of the RAM user.
    Value:
      Fn::GetAtt:
        - User
        - UserName
  Email:
    Description: The email address of the RAM user.
    Value:
      Fn::GetAtt:
        - User
        - Email
  UserId:
    Description: The ID of the RAM user.
    Value:
      Fn::GetAtt:
        - User
        - UserId
  Comments:
    Description: The comments of the RAM user.
    Value:
      Fn::GetAtt:
        - User
        - Comments
  DisplayName:
    Description: The display name of the RAM user.
    Value:
      Fn::GetAtt:
        - User
        - DisplayName
  MobilePhone:
    Description: The mobile phone number of the RAM user.
    Value:
      Fn::GetAtt:
        - User
        - MobilePhone
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "UserName": {
      "Type": "String",
      "Description": {
        "en": "RAM user name. At most one UserName and UserId can be specified; if both are specified, UserName will be used. If neither is specified, the current user ID will be used."
      },
      "Required": false
    },
    "UserId": {
      "Type": "String",
      "Description": {
        "en": "RAM user ID. At most one UserName and UserId can be specified; if both are specified, UserName will be used. If neither is specified, the current user ID will be used."
      },
      "Required": false
    }
  },
  "Resources": {
    "User": {
      "Type": "DATASOURCE::RAM::User",
      "Properties": {
        "UserName": {
          "Ref": "UserName"
        },
        "UserId": {
          "Ref": "UserId"
        }
      }
    }
  },
  "Outputs": {
    "UserName": {
      "Description": "RAM ユーザーの名前。",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "UserName"
        ]
      }
    },
    "Email": {
      "Description": "RAM ユーザーのメールアドレス。",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "Email"
        ]
      }
    },
    "UserId": {
      "Description": "RAM ユーザーの ID。",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "UserId"
        ]
      }
    },
    "Comments": {
      "Description": "RAM ユーザーのコメント。",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "Comments"
        ]
      }
    },
    "DisplayName": {
      "Description": "RAM ユーザーの表示名。",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "DisplayName"
        ]
      }
    },
    "MobilePhone": {
      "Description": "RAM ユーザーの携帯電話番号。",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "MobilePhone"
        ]
      }
    }
  }
}