ALIYUN::Config::Aggregator は、アカウントグループを作成するために使用されます。
構文
{
"Type": "ALIYUN::Config::Aggregator",
"Properties": {
"AggregatorName": String,
"Description": String,
"AggregatorAccounts": List,
"AggregatorType": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
AggregatorName | String | はい | はい | アカウントグループの名前。 | なし。 |
Description | String | はい | はい | アカウントグループの説明。 | なし。 |
AggregatorAccounts | List | いいえ | はい | アカウントグループのすべてのメンバーに関する情報。 | 詳細については、「AggregatorAccounts プロパティ」をご参照ください。 例: |
AggregatorType | String | いいえ | いいえ | アカウントグループのタイプ。 | 有効な値:
|
AggregatorAccounts 構文
"AggregatorAccounts": [
{
"AccountId": Number,
"AccountType": String,
"AccountName": String
}
]AggregatorAccounts プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
AccountId | Number | はい | はい | メンバーのアカウント ID。 | なし。 |
AccountName | String | はい | はい | メンバーのアカウント名。 | なし。 |
AccountType | String | いいえ | はい | メンバーのアカウントタイプ。 | 値を ResourceDirectory に設定します。 |
戻り値
Fn::GetAtt
AggregatorId: アカウントグループの ID。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AggregatorAccounts:
AssociationProperty: List[Parameters]
AssociationPropertyMetadata:
Parameters:
AccountId:
Description:
ja: アカウント ID。
Required: true
Type: Number
AccountName:
Description:
ja: アカウント名。
Required: true
Type: String
AccountType:
AllowedValues:
- ResourceDirectory
Default: ResourceDirectory
Description:
ja: 'アカウントタイプ。ResourceDirectory のみをサポートします。'
Required: false
Type: String
Description:
ja: アグリゲーターのメンバーアカウント。AggregatorType が RD の場合、このパラメーターは空にすることができます。これは、リソースディレクトリのすべてのアカウントがグローバルアカウントグループに追加されることを意味します。
Required: false
Type: Json
AggregatorName:
Description:
ja: アグリゲーターの名前。
Required: true
Type: String
AggregatorType:
AllowedValues:
- RD
- CUSTOM
Description:
ja: 'アカウントグループタイプ。値:
RD: グローバルアカウントグループ。CUSTOM: カスタムアカウントグループ (デフォルト値)。'
Required: false
Type: String
Description:
AssociationProperty: TextArea
Description:
ja: アグリゲーターの説明。
Required: true
Type: String
Resources:
Aggregator:
Properties:
AggregatorAccounts:
Ref: AggregatorAccounts
AggregatorName:
Ref: AggregatorName
AggregatorType:
Ref: AggregatorType
Description:
Ref: Description
Type: ALIYUN::Config::Aggregator
Outputs:
AggregatorId:
Description: 'アグリゲーターの ID。'
Value:
Fn::GetAtt:
- Aggregator
- AggregatorId
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AggregatorName": {
"Type": "String",
"Description": {
"ja": "アグリゲーターの名前。"
},
"Required": true
},
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"ja": "アグリゲーターの説明。"
},
"Required": true
},
"AggregatorAccounts": {
"AssociationPropertyMetadata": {
"Parameters": {
"AccountId": {
"Type": "Number",
"Description": {
"ja": "アカウント ID。"
},
"Required": true
},
"AccountType": {
"Type": "String",
"Description": {
"ja": "アカウントタイプ。ResourceDirectory のみをサポートします。"
},
"AllowedValues": [
"ResourceDirectory"
],
"Required": false,
"Default": "ResourceDirectory"
},
"AccountName": {
"Type": "String",
"Description": {
"ja": "アカウント名。"
},
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"ja": "アグリゲーターのメンバーアカウント。AggregatorType が RD の場合、このパラメーターは空にすることができます。これは、リソースディレクトリのすべてのアカウントがグローバルアカウントグループに追加されることを意味します。"
},
"Required": false
},
"AggregatorType": {
"Type": "String",
"Description": {
"ja": "アカウントグループタイプ。値:\nRD: グローバルアカウントグループ。CUSTOM: カスタムアカウントグループ (デフォルト値)。"
},
"AllowedValues": [
"RD",
"CUSTOM"
],
"Required": false
}
},
"Resources": {
"Aggregator": {
"Type": "ALIYUN::Config::Aggregator",
"Properties": {
"AggregatorName": {
"Ref": "AggregatorName"
},
"Description": {
"Ref": "Description"
},
"AggregatorAccounts": {
"Ref": "AggregatorAccounts"
},
"AggregatorType": {
"Ref": "AggregatorType"
}
}
}
},
"Outputs": {
"AggregatorId": {
"Description": "アグリゲーターの ID。",
"Value": {
"Fn::GetAtt": [
"Aggregator",
"AggregatorId"
]
}
}
}
}