DATASOURCE::RAM::Role は、ロールに関する情報をクエリするために使用されます。
構文
{
"Type": "DATASOURCE::RAM::Role",
"Properties": {
"RoleName": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
RoleName | String | いいえ | はい | ロール名。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックの更新時のデータソースリソースのリフレッシュポリシー。 | 有効な値:
|
戻り値
Fn::GetAtt
MaxSessionDuration: ロールの最大セッション期間。
UpdateDate: ロールが更新された日時。
RoleName: ロール名。
Description: ロールの説明。
Arn: ロールのAlibaba Cloud Resource Name (ARN)。
RoleId: ロール ID。
CreateDate: ロールが作成された日時。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RoleName:
Type: String
Description:
en: RAM role name. If not specified, the current ram role will be used.
Required: false
AssociationProperty: ALIYUN::RAM::Role
Resources:
Role:
Type: DATASOURCE::RAM::Role
Properties:
RoleName:
Ref: RoleName
Outputs:
MaxSessionDuration:
Description: The maximum session duration of the RAM role.
Value:
Fn::GetAtt:
- Role
- MaxSessionDuration
UpdateDate:
Description: The time when the RAM role was last updated.
Value:
Fn::GetAtt:
- Role
- UpdateDate
RoleName:
Description: The name of the RAM role.
Value:
Fn::GetAtt:
- Role
- RoleName
Description:
Description: The description of the RAM role.
Value:
Fn::GetAtt:
- Role
- Description
Arn:
Description: The ARN of the RAM role.
Value:
Fn::GetAtt:
- Role
- Arn
RoleId:
Description: The ID of the RAM role.
Value:
Fn::GetAtt:
- Role
- RoleId
CreateDate:
Description: The time when the RAM role was created.
Value:
Fn::GetAtt:
- Role
- CreateDate
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RoleName": {
"Type": "String",
"Description": {
"en": "RAM role name. If not specified, the current ram role will be used."
},
"Required": false,
"AssociationProperty": "ALIYUN::RAM::Role"
}
},
"Resources": {
"Role": {
"Type": "DATASOURCE::RAM::Role",
"Properties": {
"RoleName": {
"Ref": "RoleName"
}
}
}
},
"Outputs": {
"MaxSessionDuration": {
"Description": "The maximum session duration of the RAM role.",
"Value": {
"Fn::GetAtt": [
"Role",
"MaxSessionDuration"
]
}
},
"UpdateDate": {
"Description": "The time when the RAM role was last updated.",
"Value": {
"Fn::GetAtt": [
"Role",
"UpdateDate"
]
}
},
"RoleName": {
"Description": "The name of the RAM role.",
"Value": {
"Fn::GetAtt": [
"Role",
"RoleName"
]
}
},
"Description": {
"Description": "The description of the RAM role.",
"Value": {
"Fn::GetAtt": [
"Role",
"Description"
]
}
},
"Arn": {
"Description": "The ARN of the RAM role.",
"Value": {
"Fn::GetAtt": [
"Role",
"Arn"
]
}
},
"RoleId": {
"Description": "The ID of the RAM role.",
"Value": {
"Fn::GetAtt": [
"Role",
"RoleId"
]
}
},
"CreateDate": {
"Description": "The time when the RAM role was created.",
"Value": {
"Fn::GetAtt": [
"Role",
"CreateDate"
]
}
}
}
}