ALIYUN::ESS::ScalingGroupEnable 型は、スケーリンググループを有効にする場合に使用できます。
構文
{ “Type” : “ALIYUN::ESS::ScalingGroupEnable”, “Properties” : { “ScalingGroupId” : Integer, “ScalingConfigurationId” : Integer, “InstanceIds” : String }}
プロパティ
名前 | データ型 | 必須/省略可能 | 更新可/不可 | 説明 | 制約 |
ScalingGroupId | String | 必須 | 不可 | スケーリンググループの ID | なし |
ScalingConfigurationId | String | 省略可能 | 不可 | スケーリンググループで有効にするスケーリング設定の ID | なし |
InstanceIds | List | 省略可能 | 不可 | 有効なスケーリンググループに追加する ECS インスタンスの ID | 最大 20 個の ID を入力できます。 |
レスポンス値
Fn::GetAtt
- LifecycleState: スケーリンググループのステータス
- ScalingInstances: 自動的に作成されたスケーリンググループのインスタンス
- ScalingGroupId: スケーリンググループの ID
コーディング例
{ “ROSTemplateFormatVersion” : “2015-09-01”, “Resources” : { “ScalingGroupEnable”: { “Type”: “ALIYUN::ESS::ScalingGroupEnable”, “Properties”: { “ScalingGroupId”: “r0HUqbJ411cc2eQw8bUwyXI”, “ScalingConfigurationId”: “bJlLfdexm77LdsyptmelVWdS”, “InstanceIds”: “”, } } }, “Outputs”: { “ScalingGroupEnable”: { “Value” : {“Fn::GetAtt”: [“ScalingGroupEnable”, “LifecycleState”]} } }}
</article>
</main>