published on Thursday, Sep 10, 2026 by Byteplus
published on Thursday, Sep 10, 2026 by Byteplus
Volcano Engine AutoScaling event notification configuration. Configure event notifications for scaling activities in a specified scaling group. When a scaling activity triggers a specified event type, notifications are sent via cloud monitoring. Only one event notification can be configured for each scaling group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const example = new bytepluscc.autoscaling.NotificationConfiguration("example", {
scalingGroupId: "scg-xxxxxxxxxxxxxxxxx",
notificationType: "cloudmonitor",
eventTypes: [
"ScaleOutSuccess",
"ScaleInSuccess",
"ScaleOutError",
"ScaleInError",
"ScaleOutWarn",
"ScaleInWarn",
"ScaleReject",
"ScaleOutStart",
"ScaleInStart",
"ScheduleTaskExpiring",
],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
example = bytepluscc.autoscaling.NotificationConfiguration("example",
scaling_group_id="scg-xxxxxxxxxxxxxxxxx",
notification_type="cloudmonitor",
event_types=[
"ScaleOutSuccess",
"ScaleInSuccess",
"ScaleOutError",
"ScaleInError",
"ScaleOutWarn",
"ScaleInWarn",
"ScaleReject",
"ScaleOutStart",
"ScaleInStart",
"ScheduleTaskExpiring",
])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/autoscaling"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := autoscaling.NewNotificationConfiguration(ctx, "example", &autoscaling.NotificationConfigurationArgs{
ScalingGroupId: pulumi.String("scg-xxxxxxxxxxxxxxxxx"),
NotificationType: pulumi.String("cloudmonitor"),
EventTypes: pulumi.StringArray{
pulumi.String("ScaleOutSuccess"),
pulumi.String("ScaleInSuccess"),
pulumi.String("ScaleOutError"),
pulumi.String("ScaleInError"),
pulumi.String("ScaleOutWarn"),
pulumi.String("ScaleInWarn"),
pulumi.String("ScaleReject"),
pulumi.String("ScaleOutStart"),
pulumi.String("ScaleInStart"),
pulumi.String("ScheduleTaskExpiring"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var example = new Bytepluscc.Autoscaling.NotificationConfiguration("example", new()
{
ScalingGroupId = "scg-xxxxxxxxxxxxxxxxx",
NotificationType = "cloudmonitor",
EventTypes = new[]
{
"ScaleOutSuccess",
"ScaleInSuccess",
"ScaleOutError",
"ScaleInError",
"ScaleOutWarn",
"ScaleInWarn",
"ScaleReject",
"ScaleOutStart",
"ScaleInStart",
"ScheduleTaskExpiring",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.autoscaling.NotificationConfiguration;
import com.byteplus.bytepluscc.autoscaling.NotificationConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new NotificationConfiguration("example", NotificationConfigurationArgs.builder()
.scalingGroupId("scg-xxxxxxxxxxxxxxxxx")
.notificationType("cloudmonitor")
.eventTypes(
"ScaleOutSuccess",
"ScaleInSuccess",
"ScaleOutError",
"ScaleInError",
"ScaleOutWarn",
"ScaleInWarn",
"ScaleReject",
"ScaleOutStart",
"ScaleInStart",
"ScheduleTaskExpiring")
.build());
}
}
resources:
example:
type: bytepluscc:autoscaling:NotificationConfiguration
properties:
scalingGroupId: scg-xxxxxxxxxxxxxxxxx
notificationType: cloudmonitor
eventTypes:
- ScaleOutSuccess
- ScaleInSuccess
- ScaleOutError
- ScaleInError
- ScaleOutWarn
- ScaleInWarn
- ScaleReject
- ScaleOutStart
- ScaleInStart
- ScheduleTaskExpiring
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_autoscaling_notificationconfiguration" "example" {
scaling_group_id = "scg-xxxxxxxxxxxxxxxxx"
notification_type = "cloudmonitor"
event_types = ["ScaleOutSuccess", "ScaleInSuccess", "ScaleOutError", "ScaleInError", "ScaleOutWarn", "ScaleInWarn", "ScaleReject", "ScaleOutStart", "ScaleInStart", "ScheduleTaskExpiring"]
}
Create NotificationConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotificationConfiguration(name: string, args: NotificationConfigurationArgs, opts?: CustomResourceOptions);@overload
def NotificationConfiguration(resource_name: str,
args: NotificationConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotificationConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_types: Optional[Sequence[str]] = None,
notification_type: Optional[str] = None,
scaling_group_id: Optional[str] = None)func NewNotificationConfiguration(ctx *Context, name string, args NotificationConfigurationArgs, opts ...ResourceOption) (*NotificationConfiguration, error)public NotificationConfiguration(string name, NotificationConfigurationArgs args, CustomResourceOptions? opts = null)
public NotificationConfiguration(String name, NotificationConfigurationArgs args)
public NotificationConfiguration(String name, NotificationConfigurationArgs args, CustomResourceOptions options)
type: bytepluscc:autoscaling:NotificationConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_autoscaling_notification_configuration" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args NotificationConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NotificationConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NotificationConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var notificationConfigurationResource = new Bytepluscc.Autoscaling.NotificationConfiguration("notificationConfigurationResource", new()
{
EventTypes = new[]
{
"string",
},
NotificationType = "string",
ScalingGroupId = "string",
});
example, err := autoscaling.NewNotificationConfiguration(ctx, "notificationConfigurationResource", &autoscaling.NotificationConfigurationArgs{
EventTypes: pulumi.StringArray{
pulumi.String("string"),
},
NotificationType: pulumi.String("string"),
ScalingGroupId: pulumi.String("string"),
})
resource "bytepluscc_autoscaling_notification_configuration" "notificationConfigurationResource" {
lifecycle {
create_before_destroy = true
}
event_types = ["string"]
notification_type = "string"
scaling_group_id = "string"
}
var notificationConfigurationResource = new NotificationConfiguration("notificationConfigurationResource", NotificationConfigurationArgs.builder()
.eventTypes("string")
.notificationType("string")
.scalingGroupId("string")
.build());
notification_configuration_resource = bytepluscc.autoscaling.NotificationConfiguration("notificationConfigurationResource",
event_types=["string"],
notification_type="string",
scaling_group_id="string")
const notificationConfigurationResource = new bytepluscc.autoscaling.NotificationConfiguration("notificationConfigurationResource", {
eventTypes: ["string"],
notificationType: "string",
scalingGroupId: "string",
});
type: bytepluscc:autoscaling:NotificationConfiguration
properties:
eventTypes:
- string
notificationType: string
scalingGroupId: string
NotificationConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NotificationConfiguration resource accepts the following input properties:
- Event
Types List<string> - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- Notification
Type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- Scaling
Group stringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- Event
Types []string - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- Notification
Type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- Scaling
Group stringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- event_
types list(string) - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification_
type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling_
group_ stringid - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- event
Types List<String> - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification
Type String - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling
Group StringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- event
Types string[] - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification
Type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling
Group stringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- event_
types Sequence[str] - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification_
type str - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling_
group_ strid - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- event
Types List<String> - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification
Type String - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling
Group StringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the NotificationConfiguration resource produces the following output properties:
- created_
at string - Event notification creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Event notification update time.
- created_
at str - Event notification creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Event notification update time.
Look up Existing NotificationConfiguration Resource
Get an existing NotificationConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NotificationConfigurationState, opts?: CustomResourceOptions): NotificationConfiguration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
event_types: Optional[Sequence[str]] = None,
notification_type: Optional[str] = None,
scaling_group_id: Optional[str] = None,
updated_at: Optional[str] = None) -> NotificationConfigurationfunc GetNotificationConfiguration(ctx *Context, name string, id IDInput, state *NotificationConfigurationState, opts ...ResourceOption) (*NotificationConfiguration, error)public static NotificationConfiguration Get(string name, Input<string> id, NotificationConfigurationState? state, CustomResourceOptions? opts = null)public static NotificationConfiguration get(String name, Output<String> id, NotificationConfigurationState state, CustomResourceOptions options)resources: _: type: bytepluscc:autoscaling:NotificationConfiguration get: id: ${id}import {
to = bytepluscc_autoscaling_notification_configuration.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - Event notification creation time.
- Event
Types List<string> - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- Notification
Type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- Scaling
Group stringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- Updated
At string - Event notification update time.
- Created
At string - Event notification creation time.
- Event
Types []string - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- Notification
Type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- Scaling
Group stringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- Updated
At string - Event notification update time.
- created_
at string - Event notification creation time.
- event_
types list(string) - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification_
type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling_
group_ stringid - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- updated_
at string - Event notification update time.
- created
At String - Event notification creation time.
- event
Types List<String> - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification
Type String - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling
Group StringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- updated
At String - Event notification update time.
- created
At string - Event notification creation time.
- event
Types string[] - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification
Type string - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling
Group stringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- updated
At string - Event notification update time.
- created_
at str - Event notification creation time.
- event_
types Sequence[str] - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification_
type str - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling_
group_ strid - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- updated_
at str - Event notification update time.
- created
At String - Event notification creation time.
- event
Types List<String> - Event notification type. Values: ScaleOutSuccess (successful scale-out activity), ScaleInSuccess (successful scale-in activity), ScaleOutError (failed scale-out activity), ScaleInError (failed scale-in activity), ScaleOutWarn (partially successful scale-out activity), ScaleInWarn (partially successful scale-in activity), ScaleReject (rejected scaling activity), ScaleOutStart (scaling group scale-out activity started), ScaleInStart (scaling group scale-in activity started), ScheduleTaskExpiring (scheduled rule expiration reminder).
- notification
Type String - Event notification method. Currently, only cloud monitoring notifications are supported. Value: cloudmonitor.
- scaling
Group StringId - Scaling group ID. You can call DescribeScalingGroups to query the scaling group ID.
- updated
At String - Event notification update time.
Import
$ pulumi import bytepluscc:autoscaling/notificationConfiguration:NotificationConfiguration example "scaling_group_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Thursday, Sep 10, 2026 by Byteplus