ALIYUN::EMR::ClusterServiceConfigs は、クラスター内の指定されたサービスの構成を作成または変更するために使用されます。
構文
{
"Type": "ALIYUN::EMR::ClusterServiceConfigs",
"Properties": {
"ClusterId": String,
"ServiceConfigs": List
}
}プロパティ
| プロパティ | 型 | 必須 | 編集可能 | 説明 | 制約 |
| ClusterId | String | はい | いいえ | クラスターの ID です。 | なし |
| ServiceConfigs | List | はい | はい | サーバーの構成です。 | 詳細については、ServiceConfigs プロパティ をご参照ください。 |
ServiceConfigs 構文
"ServiceConfigs": [
{
"Comment": String,
"GatewayClusterIdList": List,
"ServiceName": String,
"CustomConfigParams": String,
"RefreshHostConfig": Boolean,
"HostInstanceId": String,
"ConfigType": String,
"ConfigParams": String,
"GroupId": String
}
]ServiceConfigs プロパティ
| プロパティ | 型 | 必須 | 編集可能 | 説明 | 制約 |
| Comment | String | いいえ | はい | サービスの説明です。 | なし |
| GatewayClusterIdList | List | いいえ | いいえ | ゲートウェイクラスター ID のリストです。 | 複数のゲートウェイクラスター ID はコンマ (,) で区切ります。 |
| ServiceName | String | はい | いいえ | サービスの名前です。 | なし |
| CustomConfigParams | String | いいえ | はい | カスタム構成です。 | なし |
| RefreshHostConfig | Boolean | いいえ | いいえ | 構成の作成または変更後すぐに構成コマンドを実行するかどうかを指定します。 | 有効な値:
|
| HostInstanceId | String | いいえ | はい | ホストインスタンスの ID です。ほとんどの場合、このパラメーターは Elastic Compute Service (ECS) インスタンスの ID に設定されます。 | なし |
| ConfigType | String | いいえ | いいえ | 構成のタイプです。 | なし |
| ConfigParams | String | はい | はい | 構成の指定されたコンテンツです。 | パラメーター値は JSON 文字列です。 |
| GroupId | String | いいえ | はい | ホストグループの ID です。 | なし |
レスポンスパラメーター
Fn::GetAtt
ClusterId: クラスターの ID です。
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ClusterId": {
"Type": "String",
"Description": "The ID of the cluster." // クラスターのID。
},
"ServiceConfigs": {
"Type": "Json",
"Description": "Server configs" // サーバー構成
}
},
"Resources": {
"EMRClusterServiceConfigs": {
"Type": "ALIYUN::EMR::ClusterServiceConfigs",
"Properties": {
"ClusterId": {
"Ref": "ClusterId"
},
"ServiceConfigs": {
"Ref": "ServiceConfigs"
}
}
}
},
"Outputs": {
"ClusterId": {
"Description": "The ID of the cluster.", // クラスターのID。
"Value": {
"Fn::GetAtt": [
"EMRClusterServiceConfigs",
"ClusterId"
]
}
}
}
}YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ClusterId:
Description: The ID of the cluster. # クラスターのID。
Type: String
ServiceConfigs:
Description: Server configs # サーバー構成
Type: Json
Resources:
EMRClusterServiceConfigs:
Properties:
ClusterId:
Ref: ClusterId
ServiceConfigs:
Ref: ServiceConfigs
Type: ALIYUN::EMR::ClusterServiceConfigs
Outputs:
ClusterId:
Description: The ID of the cluster. # クラスターのID。
Value:
Fn::GetAtt:
- EMRClusterServiceConfigs
- ClusterId