ALIYUN::ResourceManager::DelegatedAdministrator类型用于添加委派管理员账号
语法
{
"Type": "ALIYUN::ResourceManager::DelegatedAdministrator",
"Properties": {
"AccountId": String,
"ServicePrincipal": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
AccountId |
String |
是 |
否 |
资源目录中成员的阿里云账号ID。 |
无 |
|
ServicePrincipal |
String |
是 |
否 |
可信服务的标识符。 |
无 |
返回值
Fn::GetAtt
-
DelegationEnabledTime:设置为委托管理员账号的时间戳。
-
AccountId:资源目录中成员的阿里云账号ID。
-
ServicePrincipal:可信服务的标识符。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ServicePrincipal:
Type: String
Description:
en: The identifier of the trusted service.
Required: true
AccountId:
Type: String
Description:
en: The Alibaba Cloud account ID of the member in the resource directory.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ResourceManager::DelegatedAdministrator
Properties:
ServicePrincipal:
Ref: ServicePrincipal
AccountId:
Ref: AccountId
Outputs:
DelegationEnabledTime:
Value:
Fn::GetAtt:
- ExtensionResource
- DelegationEnabledTime
Description: Set as the timestamp of the delegated administrator account.
ServicePrincipal:
Value:
Fn::GetAtt:
- ExtensionResource
- ServicePrincipal
Description: The identifier of the trusted service.
AccountId:
Value:
Fn::GetAtt:
- ExtensionResource
- AccountId
Description: The Alibaba Cloud account ID of the member in the resource directory.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ServicePrincipal": {
"Type": "String",
"Description": {
"en": "The identifier of the trusted service."
},
"Required": true
},
"AccountId": {
"Type": "String",
"Description": {
"en": "The Alibaba Cloud account ID of the member in the resource directory."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ResourceManager::DelegatedAdministrator",
"Properties": {
"ServicePrincipal": {
"Ref": "ServicePrincipal"
},
"AccountId": {
"Ref": "AccountId"
}
}
}
},
"Outputs": {
"DelegationEnabledTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DelegationEnabledTime"
]
},
"Description": "Set as the timestamp of the delegated administrator account."
},
"ServicePrincipal": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ServicePrincipal"
]
},
"Description": "The identifier of the trusted service."
},
"AccountId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccountId"
]
},
"Description": "The Alibaba Cloud account ID of the member in the resource directory."
}
}
}该文章对您有帮助吗?