1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CtsEventNotificationV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.CtsEventNotificationV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for CTS event notification you can get at documentation portal

    Allows to send SMS, email, or HTTP/HTTPS notifications through pre-configured SMN topics to subscribers.

    Example Usage

    Event notification which delivers every tenant action to subscribers

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const topic1 = new opentelekomcloud.SmnTopicV2("topic1", {});
    const notificationV3 = new opentelekomcloud.CtsEventNotificationV3("notificationV3", {
        notificationName: "my_notification",
        operationType: "complete",
        topicId: topic1.smnTopicV2Id,
        status: "enabled",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    topic1 = opentelekomcloud.SmnTopicV2("topic1")
    notification_v3 = opentelekomcloud.CtsEventNotificationV3("notificationV3",
        notification_name="my_notification",
        operation_type="complete",
        topic_id=topic1.smn_topic_v2_id,
        status="enabled")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		topic1, err := opentelekomcloud.NewSmnTopicV2(ctx, "topic1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewCtsEventNotificationV3(ctx, "notificationV3", &opentelekomcloud.CtsEventNotificationV3Args{
    			NotificationName: pulumi.String("my_notification"),
    			OperationType:    pulumi.String("complete"),
    			TopicId:          topic1.SmnTopicV2Id,
    			Status:           pulumi.String("enabled"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var topic1 = new Opentelekomcloud.SmnTopicV2("topic1");
    
        var notificationV3 = new Opentelekomcloud.CtsEventNotificationV3("notificationV3", new()
        {
            NotificationName = "my_notification",
            OperationType = "complete",
            TopicId = topic1.SmnTopicV2Id,
            Status = "enabled",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.SmnTopicV2;
    import com.pulumi.opentelekomcloud.CtsEventNotificationV3;
    import com.pulumi.opentelekomcloud.CtsEventNotificationV3Args;
    import java.util.List;
    import java.util.ArrayList;
    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 topic1 = new SmnTopicV2("topic1");
    
            var notificationV3 = new CtsEventNotificationV3("notificationV3", CtsEventNotificationV3Args.builder()
                .notificationName("my_notification")
                .operationType("complete")
                .topicId(topic1.smnTopicV2Id())
                .status("enabled")
                .build());
    
        }
    }
    
    resources:
      topic1:
        type: opentelekomcloud:SmnTopicV2
      notificationV3:
        type: opentelekomcloud:CtsEventNotificationV3
        properties:
          notificationName: my_notification
          operationType: complete
          topicId: ${topic1.smnTopicV2Id}
          status: enabled
    

    Event notification with disabled SMN topic and filtering

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const topic1 = new opentelekomcloud.SmnTopicV2("topic1", {});
    const notificationV3 = new opentelekomcloud.CtsEventNotificationV3("notificationV3", {
        filter: {
            condition: "AND",
            rules: [
                "code = 200",
                "resource_name = test",
            ],
        },
        notificationName: "my_notification",
        operationType: "complete",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    topic1 = opentelekomcloud.SmnTopicV2("topic1")
    notification_v3 = opentelekomcloud.CtsEventNotificationV3("notificationV3",
        filter={
            "condition": "AND",
            "rules": [
                "code = 200",
                "resource_name = test",
            ],
        },
        notification_name="my_notification",
        operation_type="complete")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewSmnTopicV2(ctx, "topic1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewCtsEventNotificationV3(ctx, "notificationV3", &opentelekomcloud.CtsEventNotificationV3Args{
    			Filter: &opentelekomcloud.CtsEventNotificationV3FilterArgs{
    				Condition: pulumi.String("AND"),
    				Rules: pulumi.StringArray{
    					pulumi.String("code = 200"),
    					pulumi.String("resource_name = test"),
    				},
    			},
    			NotificationName: pulumi.String("my_notification"),
    			OperationType:    pulumi.String("complete"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var topic1 = new Opentelekomcloud.SmnTopicV2("topic1");
    
        var notificationV3 = new Opentelekomcloud.CtsEventNotificationV3("notificationV3", new()
        {
            Filter = new Opentelekomcloud.Inputs.CtsEventNotificationV3FilterArgs
            {
                Condition = "AND",
                Rules = new[]
                {
                    "code = 200",
                    "resource_name = test",
                },
            },
            NotificationName = "my_notification",
            OperationType = "complete",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.SmnTopicV2;
    import com.pulumi.opentelekomcloud.CtsEventNotificationV3;
    import com.pulumi.opentelekomcloud.CtsEventNotificationV3Args;
    import com.pulumi.opentelekomcloud.inputs.CtsEventNotificationV3FilterArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 topic1 = new SmnTopicV2("topic1");
    
            var notificationV3 = new CtsEventNotificationV3("notificationV3", CtsEventNotificationV3Args.builder()
                .filter(CtsEventNotificationV3FilterArgs.builder()
                    .condition("AND")
                    .rules(                
                        "code = 200",
                        "resource_name = test")
                    .build())
                .notificationName("my_notification")
                .operationType("complete")
                .build());
    
        }
    }
    
    resources:
      topic1:
        type: opentelekomcloud:SmnTopicV2
      notificationV3:
        type: opentelekomcloud:CtsEventNotificationV3
        properties:
          filter:
            condition: AND
            rules:
              - code = 200
              - resource_name = test
          notificationName: my_notification
          operationType: complete
    

    Event notification with selected operations and users

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const topic1 = new opentelekomcloud.SmnTopicV2("topic1", {});
    const notificationV3 = new opentelekomcloud.CtsEventNotificationV3("notificationV3", {
        notificationName: "test_user",
        operationType: "customized",
        topicId: topic1.smnTopicV2Id,
        status: "enabled",
        operations: [
            {
                resourceType: "vpc",
                serviceType: "VPC",
                traceNames: [
                    "deleteVpc",
                    "createVpc",
                ],
            },
            {
                resourceType: "evs",
                serviceType: "EVS",
                traceNames: [
                    "createVolume",
                    "deleteVolume",
                ],
            },
        ],
        notifyUserLists: [{
            userGroup: "user_group",
            userLists: [
                "user_one",
                "user_two",
            ],
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    topic1 = opentelekomcloud.SmnTopicV2("topic1")
    notification_v3 = opentelekomcloud.CtsEventNotificationV3("notificationV3",
        notification_name="test_user",
        operation_type="customized",
        topic_id=topic1.smn_topic_v2_id,
        status="enabled",
        operations=[
            {
                "resource_type": "vpc",
                "service_type": "VPC",
                "trace_names": [
                    "deleteVpc",
                    "createVpc",
                ],
            },
            {
                "resource_type": "evs",
                "service_type": "EVS",
                "trace_names": [
                    "createVolume",
                    "deleteVolume",
                ],
            },
        ],
        notify_user_lists=[{
            "user_group": "user_group",
            "user_lists": [
                "user_one",
                "user_two",
            ],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		topic1, err := opentelekomcloud.NewSmnTopicV2(ctx, "topic1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewCtsEventNotificationV3(ctx, "notificationV3", &opentelekomcloud.CtsEventNotificationV3Args{
    			NotificationName: pulumi.String("test_user"),
    			OperationType:    pulumi.String("customized"),
    			TopicId:          topic1.SmnTopicV2Id,
    			Status:           pulumi.String("enabled"),
    			Operations: opentelekomcloud.CtsEventNotificationV3OperationArray{
    				&opentelekomcloud.CtsEventNotificationV3OperationArgs{
    					ResourceType: pulumi.String("vpc"),
    					ServiceType:  pulumi.String("VPC"),
    					TraceNames: pulumi.StringArray{
    						pulumi.String("deleteVpc"),
    						pulumi.String("createVpc"),
    					},
    				},
    				&opentelekomcloud.CtsEventNotificationV3OperationArgs{
    					ResourceType: pulumi.String("evs"),
    					ServiceType:  pulumi.String("EVS"),
    					TraceNames: pulumi.StringArray{
    						pulumi.String("createVolume"),
    						pulumi.String("deleteVolume"),
    					},
    				},
    			},
    			NotifyUserLists: opentelekomcloud.CtsEventNotificationV3NotifyUserListArray{
    				&opentelekomcloud.CtsEventNotificationV3NotifyUserListArgs{
    					UserGroup: pulumi.String("user_group"),
    					UserLists: pulumi.StringArray{
    						pulumi.String("user_one"),
    						pulumi.String("user_two"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var topic1 = new Opentelekomcloud.SmnTopicV2("topic1");
    
        var notificationV3 = new Opentelekomcloud.CtsEventNotificationV3("notificationV3", new()
        {
            NotificationName = "test_user",
            OperationType = "customized",
            TopicId = topic1.SmnTopicV2Id,
            Status = "enabled",
            Operations = new[]
            {
                new Opentelekomcloud.Inputs.CtsEventNotificationV3OperationArgs
                {
                    ResourceType = "vpc",
                    ServiceType = "VPC",
                    TraceNames = new[]
                    {
                        "deleteVpc",
                        "createVpc",
                    },
                },
                new Opentelekomcloud.Inputs.CtsEventNotificationV3OperationArgs
                {
                    ResourceType = "evs",
                    ServiceType = "EVS",
                    TraceNames = new[]
                    {
                        "createVolume",
                        "deleteVolume",
                    },
                },
            },
            NotifyUserLists = new[]
            {
                new Opentelekomcloud.Inputs.CtsEventNotificationV3NotifyUserListArgs
                {
                    UserGroup = "user_group",
                    UserLists = new[]
                    {
                        "user_one",
                        "user_two",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.SmnTopicV2;
    import com.pulumi.opentelekomcloud.CtsEventNotificationV3;
    import com.pulumi.opentelekomcloud.CtsEventNotificationV3Args;
    import com.pulumi.opentelekomcloud.inputs.CtsEventNotificationV3OperationArgs;
    import com.pulumi.opentelekomcloud.inputs.CtsEventNotificationV3NotifyUserListArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 topic1 = new SmnTopicV2("topic1");
    
            var notificationV3 = new CtsEventNotificationV3("notificationV3", CtsEventNotificationV3Args.builder()
                .notificationName("test_user")
                .operationType("customized")
                .topicId(topic1.smnTopicV2Id())
                .status("enabled")
                .operations(            
                    CtsEventNotificationV3OperationArgs.builder()
                        .resourceType("vpc")
                        .serviceType("VPC")
                        .traceNames(                    
                            "deleteVpc",
                            "createVpc")
                        .build(),
                    CtsEventNotificationV3OperationArgs.builder()
                        .resourceType("evs")
                        .serviceType("EVS")
                        .traceNames(                    
                            "createVolume",
                            "deleteVolume")
                        .build())
                .notifyUserLists(CtsEventNotificationV3NotifyUserListArgs.builder()
                    .userGroup("user_group")
                    .userLists(                
                        "user_one",
                        "user_two")
                    .build())
                .build());
    
        }
    }
    
    resources:
      topic1:
        type: opentelekomcloud:SmnTopicV2
      notificationV3:
        type: opentelekomcloud:CtsEventNotificationV3
        properties:
          notificationName: test_user
          operationType: customized
          topicId: ${topic1.smnTopicV2Id}
          status: enabled
          operations:
            - resourceType: vpc
              serviceType: VPC
              traceNames:
                - deleteVpc
                - createVpc
            - resourceType: evs
              serviceType: EVS
              traceNames:
                - createVolume
                - deleteVolume
          notifyUserLists:
            - userGroup: user_group
              userLists:
                - user_one
                - user_two
    

    Create CtsEventNotificationV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CtsEventNotificationV3(name: string, args: CtsEventNotificationV3Args, opts?: CustomResourceOptions);
    @overload
    def CtsEventNotificationV3(resource_name: str,
                               args: CtsEventNotificationV3Args,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def CtsEventNotificationV3(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               notification_name: Optional[str] = None,
                               operation_type: Optional[str] = None,
                               cts_event_notification_v3_id: Optional[str] = None,
                               filter: Optional[CtsEventNotificationV3FilterArgs] = None,
                               notify_user_lists: Optional[Sequence[CtsEventNotificationV3NotifyUserListArgs]] = None,
                               operations: Optional[Sequence[CtsEventNotificationV3OperationArgs]] = None,
                               status: Optional[str] = None,
                               topic_id: Optional[str] = None)
    func NewCtsEventNotificationV3(ctx *Context, name string, args CtsEventNotificationV3Args, opts ...ResourceOption) (*CtsEventNotificationV3, error)
    public CtsEventNotificationV3(string name, CtsEventNotificationV3Args args, CustomResourceOptions? opts = null)
    public CtsEventNotificationV3(String name, CtsEventNotificationV3Args args)
    public CtsEventNotificationV3(String name, CtsEventNotificationV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CtsEventNotificationV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CtsEventNotificationV3Args
    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 CtsEventNotificationV3Args
    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 CtsEventNotificationV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CtsEventNotificationV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CtsEventNotificationV3Args
    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 ctsEventNotificationV3Resource = new Opentelekomcloud.CtsEventNotificationV3("ctsEventNotificationV3Resource", new()
    {
        NotificationName = "string",
        OperationType = "string",
        CtsEventNotificationV3Id = "string",
        Filter = new Opentelekomcloud.Inputs.CtsEventNotificationV3FilterArgs
        {
            Condition = "string",
            Rules = new[]
            {
                "string",
            },
        },
        NotifyUserLists = new[]
        {
            new Opentelekomcloud.Inputs.CtsEventNotificationV3NotifyUserListArgs
            {
                UserGroup = "string",
                UserLists = new[]
                {
                    "string",
                },
            },
        },
        Operations = new[]
        {
            new Opentelekomcloud.Inputs.CtsEventNotificationV3OperationArgs
            {
                ResourceType = "string",
                ServiceType = "string",
                TraceNames = new[]
                {
                    "string",
                },
            },
        },
        Status = "string",
        TopicId = "string",
    });
    
    example, err := opentelekomcloud.NewCtsEventNotificationV3(ctx, "ctsEventNotificationV3Resource", &opentelekomcloud.CtsEventNotificationV3Args{
    	NotificationName:         pulumi.String("string"),
    	OperationType:            pulumi.String("string"),
    	CtsEventNotificationV3Id: pulumi.String("string"),
    	Filter: &opentelekomcloud.CtsEventNotificationV3FilterArgs{
    		Condition: pulumi.String("string"),
    		Rules: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	NotifyUserLists: opentelekomcloud.CtsEventNotificationV3NotifyUserListArray{
    		&opentelekomcloud.CtsEventNotificationV3NotifyUserListArgs{
    			UserGroup: pulumi.String("string"),
    			UserLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Operations: opentelekomcloud.CtsEventNotificationV3OperationArray{
    		&opentelekomcloud.CtsEventNotificationV3OperationArgs{
    			ResourceType: pulumi.String("string"),
    			ServiceType:  pulumi.String("string"),
    			TraceNames: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Status:  pulumi.String("string"),
    	TopicId: pulumi.String("string"),
    })
    
    var ctsEventNotificationV3Resource = new CtsEventNotificationV3("ctsEventNotificationV3Resource", CtsEventNotificationV3Args.builder()
        .notificationName("string")
        .operationType("string")
        .ctsEventNotificationV3Id("string")
        .filter(CtsEventNotificationV3FilterArgs.builder()
            .condition("string")
            .rules("string")
            .build())
        .notifyUserLists(CtsEventNotificationV3NotifyUserListArgs.builder()
            .userGroup("string")
            .userLists("string")
            .build())
        .operations(CtsEventNotificationV3OperationArgs.builder()
            .resourceType("string")
            .serviceType("string")
            .traceNames("string")
            .build())
        .status("string")
        .topicId("string")
        .build());
    
    cts_event_notification_v3_resource = opentelekomcloud.CtsEventNotificationV3("ctsEventNotificationV3Resource",
        notification_name="string",
        operation_type="string",
        cts_event_notification_v3_id="string",
        filter={
            "condition": "string",
            "rules": ["string"],
        },
        notify_user_lists=[{
            "user_group": "string",
            "user_lists": ["string"],
        }],
        operations=[{
            "resource_type": "string",
            "service_type": "string",
            "trace_names": ["string"],
        }],
        status="string",
        topic_id="string")
    
    const ctsEventNotificationV3Resource = new opentelekomcloud.CtsEventNotificationV3("ctsEventNotificationV3Resource", {
        notificationName: "string",
        operationType: "string",
        ctsEventNotificationV3Id: "string",
        filter: {
            condition: "string",
            rules: ["string"],
        },
        notifyUserLists: [{
            userGroup: "string",
            userLists: ["string"],
        }],
        operations: [{
            resourceType: "string",
            serviceType: "string",
            traceNames: ["string"],
        }],
        status: "string",
        topicId: "string",
    });
    
    type: opentelekomcloud:CtsEventNotificationV3
    properties:
        ctsEventNotificationV3Id: string
        filter:
            condition: string
            rules:
                - string
        notificationName: string
        notifyUserLists:
            - userGroup: string
              userLists:
                - string
        operationType: string
        operations:
            - resourceType: string
              serviceType: string
              traceNames:
                - string
        status: string
        topicId: string
    

    CtsEventNotificationV3 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 CtsEventNotificationV3 resource accepts the following input properties:

    NotificationName string
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    OperationType string

    The operation type of event rules.

    Possible values:

    CtsEventNotificationV3Id string
    Filter CtsEventNotificationV3Filter
    Specifies the filtering rules for notification. The filter structure is documented below.
    NotifyUserLists List<CtsEventNotificationV3NotifyUserList>
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    Operations List<CtsEventNotificationV3Operation>
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    Status string
    Specifies whether SMN topic is enabled or disabled.
    TopicId string
    Specifies SMN topic URN that will be used for events notification.
    NotificationName string
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    OperationType string

    The operation type of event rules.

    Possible values:

    CtsEventNotificationV3Id string
    Filter CtsEventNotificationV3FilterArgs
    Specifies the filtering rules for notification. The filter structure is documented below.
    NotifyUserLists []CtsEventNotificationV3NotifyUserListArgs
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    Operations []CtsEventNotificationV3OperationArgs
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    Status string
    Specifies whether SMN topic is enabled or disabled.
    TopicId string
    Specifies SMN topic URN that will be used for events notification.
    notificationName String
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    operationType String

    The operation type of event rules.

    Possible values:

    ctsEventNotificationV3Id String
    filter CtsEventNotificationV3Filter
    Specifies the filtering rules for notification. The filter structure is documented below.
    notifyUserLists List<CtsEventNotificationV3NotifyUserList>
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operations List<CtsEventNotificationV3Operation>
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    status String
    Specifies whether SMN topic is enabled or disabled.
    topicId String
    Specifies SMN topic URN that will be used for events notification.
    notificationName string
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    operationType string

    The operation type of event rules.

    Possible values:

    ctsEventNotificationV3Id string
    filter CtsEventNotificationV3Filter
    Specifies the filtering rules for notification. The filter structure is documented below.
    notifyUserLists CtsEventNotificationV3NotifyUserList[]
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operations CtsEventNotificationV3Operation[]
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    status string
    Specifies whether SMN topic is enabled or disabled.
    topicId string
    Specifies SMN topic URN that will be used for events notification.
    notification_name str
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    operation_type str

    The operation type of event rules.

    Possible values:

    cts_event_notification_v3_id str
    filter CtsEventNotificationV3FilterArgs
    Specifies the filtering rules for notification. The filter structure is documented below.
    notify_user_lists Sequence[CtsEventNotificationV3NotifyUserListArgs]
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operations Sequence[CtsEventNotificationV3OperationArgs]
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    status str
    Specifies whether SMN topic is enabled or disabled.
    topic_id str
    Specifies SMN topic URN that will be used for events notification.
    notificationName String
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    operationType String

    The operation type of event rules.

    Possible values:

    ctsEventNotificationV3Id String
    filter Property Map
    Specifies the filtering rules for notification. The filter structure is documented below.
    notifyUserLists List<Property Map>
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operations List<Property Map>
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    status String
    Specifies whether SMN topic is enabled or disabled.
    topicId String
    Specifies SMN topic URN that will be used for events notification.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CtsEventNotificationV3 resource produces the following output properties:

    CreateTime double
    Specifies creation time of event notification rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    NotificationId string
    Unique event notification id.
    NotificationType string
    Specifies the notification type. Current cts version supports only smn type.
    ProjectId string
    Specifies project id of event notification rule.
    CreateTime float64
    Specifies creation time of event notification rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    NotificationId string
    Unique event notification id.
    NotificationType string
    Specifies the notification type. Current cts version supports only smn type.
    ProjectId string
    Specifies project id of event notification rule.
    createTime Double
    Specifies creation time of event notification rule.
    id String
    The provider-assigned unique ID for this managed resource.
    notificationId String
    Unique event notification id.
    notificationType String
    Specifies the notification type. Current cts version supports only smn type.
    projectId String
    Specifies project id of event notification rule.
    createTime number
    Specifies creation time of event notification rule.
    id string
    The provider-assigned unique ID for this managed resource.
    notificationId string
    Unique event notification id.
    notificationType string
    Specifies the notification type. Current cts version supports only smn type.
    projectId string
    Specifies project id of event notification rule.
    create_time float
    Specifies creation time of event notification rule.
    id str
    The provider-assigned unique ID for this managed resource.
    notification_id str
    Unique event notification id.
    notification_type str
    Specifies the notification type. Current cts version supports only smn type.
    project_id str
    Specifies project id of event notification rule.
    createTime Number
    Specifies creation time of event notification rule.
    id String
    The provider-assigned unique ID for this managed resource.
    notificationId String
    Unique event notification id.
    notificationType String
    Specifies the notification type. Current cts version supports only smn type.
    projectId String
    Specifies project id of event notification rule.

    Look up Existing CtsEventNotificationV3 Resource

    Get an existing CtsEventNotificationV3 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?: CtsEventNotificationV3State, opts?: CustomResourceOptions): CtsEventNotificationV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[float] = None,
            cts_event_notification_v3_id: Optional[str] = None,
            filter: Optional[CtsEventNotificationV3FilterArgs] = None,
            notification_id: Optional[str] = None,
            notification_name: Optional[str] = None,
            notification_type: Optional[str] = None,
            notify_user_lists: Optional[Sequence[CtsEventNotificationV3NotifyUserListArgs]] = None,
            operation_type: Optional[str] = None,
            operations: Optional[Sequence[CtsEventNotificationV3OperationArgs]] = None,
            project_id: Optional[str] = None,
            status: Optional[str] = None,
            topic_id: Optional[str] = None) -> CtsEventNotificationV3
    func GetCtsEventNotificationV3(ctx *Context, name string, id IDInput, state *CtsEventNotificationV3State, opts ...ResourceOption) (*CtsEventNotificationV3, error)
    public static CtsEventNotificationV3 Get(string name, Input<string> id, CtsEventNotificationV3State? state, CustomResourceOptions? opts = null)
    public static CtsEventNotificationV3 get(String name, Output<String> id, CtsEventNotificationV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CtsEventNotificationV3    get:      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.
    The following state arguments are supported:
    CreateTime double
    Specifies creation time of event notification rule.
    CtsEventNotificationV3Id string
    Filter CtsEventNotificationV3Filter
    Specifies the filtering rules for notification. The filter structure is documented below.
    NotificationId string
    Unique event notification id.
    NotificationName string
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    NotificationType string
    Specifies the notification type. Current cts version supports only smn type.
    NotifyUserLists List<CtsEventNotificationV3NotifyUserList>
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    OperationType string

    The operation type of event rules.

    Possible values:

    Operations List<CtsEventNotificationV3Operation>
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    ProjectId string
    Specifies project id of event notification rule.
    Status string
    Specifies whether SMN topic is enabled or disabled.
    TopicId string
    Specifies SMN topic URN that will be used for events notification.
    CreateTime float64
    Specifies creation time of event notification rule.
    CtsEventNotificationV3Id string
    Filter CtsEventNotificationV3FilterArgs
    Specifies the filtering rules for notification. The filter structure is documented below.
    NotificationId string
    Unique event notification id.
    NotificationName string
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    NotificationType string
    Specifies the notification type. Current cts version supports only smn type.
    NotifyUserLists []CtsEventNotificationV3NotifyUserListArgs
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    OperationType string

    The operation type of event rules.

    Possible values:

    Operations []CtsEventNotificationV3OperationArgs
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    ProjectId string
    Specifies project id of event notification rule.
    Status string
    Specifies whether SMN topic is enabled or disabled.
    TopicId string
    Specifies SMN topic URN that will be used for events notification.
    createTime Double
    Specifies creation time of event notification rule.
    ctsEventNotificationV3Id String
    filter CtsEventNotificationV3Filter
    Specifies the filtering rules for notification. The filter structure is documented below.
    notificationId String
    Unique event notification id.
    notificationName String
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    notificationType String
    Specifies the notification type. Current cts version supports only smn type.
    notifyUserLists List<CtsEventNotificationV3NotifyUserList>
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operationType String

    The operation type of event rules.

    Possible values:

    operations List<CtsEventNotificationV3Operation>
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    projectId String
    Specifies project id of event notification rule.
    status String
    Specifies whether SMN topic is enabled or disabled.
    topicId String
    Specifies SMN topic URN that will be used for events notification.
    createTime number
    Specifies creation time of event notification rule.
    ctsEventNotificationV3Id string
    filter CtsEventNotificationV3Filter
    Specifies the filtering rules for notification. The filter structure is documented below.
    notificationId string
    Unique event notification id.
    notificationName string
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    notificationType string
    Specifies the notification type. Current cts version supports only smn type.
    notifyUserLists CtsEventNotificationV3NotifyUserList[]
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operationType string

    The operation type of event rules.

    Possible values:

    operations CtsEventNotificationV3Operation[]
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    projectId string
    Specifies project id of event notification rule.
    status string
    Specifies whether SMN topic is enabled or disabled.
    topicId string
    Specifies SMN topic URN that will be used for events notification.
    create_time float
    Specifies creation time of event notification rule.
    cts_event_notification_v3_id str
    filter CtsEventNotificationV3FilterArgs
    Specifies the filtering rules for notification. The filter structure is documented below.
    notification_id str
    Unique event notification id.
    notification_name str
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    notification_type str
    Specifies the notification type. Current cts version supports only smn type.
    notify_user_lists Sequence[CtsEventNotificationV3NotifyUserListArgs]
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operation_type str

    The operation type of event rules.

    Possible values:

    operations Sequence[CtsEventNotificationV3OperationArgs]
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    project_id str
    Specifies project id of event notification rule.
    status str
    Specifies whether SMN topic is enabled or disabled.
    topic_id str
    Specifies SMN topic URN that will be used for events notification.
    createTime Number
    Specifies creation time of event notification rule.
    ctsEventNotificationV3Id String
    filter Property Map
    Specifies the filtering rules for notification. The filter structure is documented below.
    notificationId String
    Unique event notification id.
    notificationName String
    The name of event notification rule. Only letters, digits and underscores (_) are allowed.
    notificationType String
    Specifies the notification type. Current cts version supports only smn type.
    notifyUserLists List<Property Map>
    Specifies the list of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured. Supported fields:
    operationType String

    The operation type of event rules.

    Possible values:

    operations List<Property Map>
    Specifies an array of operations that will trigger notifications. The operations structure is documented below.
    projectId String
    Specifies project id of event notification rule.
    status String
    Specifies whether SMN topic is enabled or disabled.
    topicId String
    Specifies SMN topic URN that will be used for events notification.

    Supporting Types

    CtsEventNotificationV3Filter, CtsEventNotificationV3FilterArgs

    Condition string
    Specifies the relationship between multiple rules. The valid values are as follows:

    • AND: Effective after all filtering conditions are met.
    • OR: Effective when any one of the conditions is met.
    Rules List<string>

    Specifies an array of filtering rules. It consists of three parts, the first part is the key, the second part is the rule, and the third part is the value, the format is: key != value.

    • The key can be: api_version, code, trace_rating, trace_type, resource_id and resource_name. When the key is api_version, the value needs to follow the regular constraint: **^ (a-zA-Z0-9_ -.) {1,64}$**. When the key is **code**, the length range of value is from 1 to 256. When the key is **trace_rating**, the value can be **normal**, **warning** or **incident**. When the key is **trace_type**, the value can be **ConsoleAction**, **ApiCall** or **SystemAction**. When the key is **resource_id**, the length range of value is from 1 to 350. When the key is **resource_name**, the length range of value is from 1 to 256.
    • The rule can be: != or =.

    The operations block supports:

    Condition string
    Specifies the relationship between multiple rules. The valid values are as follows:

    • AND: Effective after all filtering conditions are met.
    • OR: Effective when any one of the conditions is met.
    Rules []string

    Specifies an array of filtering rules. It consists of three parts, the first part is the key, the second part is the rule, and the third part is the value, the format is: key != value.

    • The key can be: api_version, code, trace_rating, trace_type, resource_id and resource_name. When the key is api_version, the value needs to follow the regular constraint: **^ (a-zA-Z0-9_ -.) {1,64}$**. When the key is **code**, the length range of value is from 1 to 256. When the key is **trace_rating**, the value can be **normal**, **warning** or **incident**. When the key is **trace_type**, the value can be **ConsoleAction**, **ApiCall** or **SystemAction**. When the key is **resource_id**, the length range of value is from 1 to 350. When the key is **resource_name**, the length range of value is from 1 to 256.
    • The rule can be: != or =.

    The operations block supports:

    condition String
    Specifies the relationship between multiple rules. The valid values are as follows:

    • AND: Effective after all filtering conditions are met.
    • OR: Effective when any one of the conditions is met.
    rules List<String>

    Specifies an array of filtering rules. It consists of three parts, the first part is the key, the second part is the rule, and the third part is the value, the format is: key != value.

    • The key can be: api_version, code, trace_rating, trace_type, resource_id and resource_name. When the key is api_version, the value needs to follow the regular constraint: **^ (a-zA-Z0-9_ -.) {1,64}$**. When the key is **code**, the length range of value is from 1 to 256. When the key is **trace_rating**, the value can be **normal**, **warning** or **incident**. When the key is **trace_type**, the value can be **ConsoleAction**, **ApiCall** or **SystemAction**. When the key is **resource_id**, the length range of value is from 1 to 350. When the key is **resource_name**, the length range of value is from 1 to 256.
    • The rule can be: != or =.

    The operations block supports:

    condition string
    Specifies the relationship between multiple rules. The valid values are as follows:

    • AND: Effective after all filtering conditions are met.
    • OR: Effective when any one of the conditions is met.
    rules string[]

    Specifies an array of filtering rules. It consists of three parts, the first part is the key, the second part is the rule, and the third part is the value, the format is: key != value.

    • The key can be: api_version, code, trace_rating, trace_type, resource_id and resource_name. When the key is api_version, the value needs to follow the regular constraint: **^ (a-zA-Z0-9_ -.) {1,64}$**. When the key is **code**, the length range of value is from 1 to 256. When the key is **trace_rating**, the value can be **normal**, **warning** or **incident**. When the key is **trace_type**, the value can be **ConsoleAction**, **ApiCall** or **SystemAction**. When the key is **resource_id**, the length range of value is from 1 to 350. When the key is **resource_name**, the length range of value is from 1 to 256.
    • The rule can be: != or =.

    The operations block supports:

    condition str
    Specifies the relationship between multiple rules. The valid values are as follows:

    • AND: Effective after all filtering conditions are met.
    • OR: Effective when any one of the conditions is met.
    rules Sequence[str]

    Specifies an array of filtering rules. It consists of three parts, the first part is the key, the second part is the rule, and the third part is the value, the format is: key != value.

    • The key can be: api_version, code, trace_rating, trace_type, resource_id and resource_name. When the key is api_version, the value needs to follow the regular constraint: **^ (a-zA-Z0-9_ -.) {1,64}$**. When the key is **code**, the length range of value is from 1 to 256. When the key is **trace_rating**, the value can be **normal**, **warning** or **incident**. When the key is **trace_type**, the value can be **ConsoleAction**, **ApiCall** or **SystemAction**. When the key is **resource_id**, the length range of value is from 1 to 350. When the key is **resource_name**, the length range of value is from 1 to 256.
    • The rule can be: != or =.

    The operations block supports:

    condition String
    Specifies the relationship between multiple rules. The valid values are as follows:

    • AND: Effective after all filtering conditions are met.
    • OR: Effective when any one of the conditions is met.
    rules List<String>

    Specifies an array of filtering rules. It consists of three parts, the first part is the key, the second part is the rule, and the third part is the value, the format is: key != value.

    • The key can be: api_version, code, trace_rating, trace_type, resource_id and resource_name. When the key is api_version, the value needs to follow the regular constraint: **^ (a-zA-Z0-9_ -.) {1,64}$**. When the key is **code**, the length range of value is from 1 to 256. When the key is **trace_rating**, the value can be **normal**, **warning** or **incident**. When the key is **trace_type**, the value can be **ConsoleAction**, **ApiCall** or **SystemAction**. When the key is **resource_id**, the length range of value is from 1 to 350. When the key is **resource_name**, the length range of value is from 1 to 256.
    • The rule can be: != or =.

    The operations block supports:

    CtsEventNotificationV3NotifyUserList, CtsEventNotificationV3NotifyUserListArgs

    UserGroup string
    Specifies the IAM user group.
    UserLists List<string>

    Specifies the list with IAM users which belong to user_group.

    The filter block supports:

    UserGroup string
    Specifies the IAM user group.
    UserLists []string

    Specifies the list with IAM users which belong to user_group.

    The filter block supports:

    userGroup String
    Specifies the IAM user group.
    userLists List<String>

    Specifies the list with IAM users which belong to user_group.

    The filter block supports:

    userGroup string
    Specifies the IAM user group.
    userLists string[]

    Specifies the list with IAM users which belong to user_group.

    The filter block supports:

    user_group str
    Specifies the IAM user group.
    user_lists Sequence[str]

    Specifies the list with IAM users which belong to user_group.

    The filter block supports:

    userGroup String
    Specifies the IAM user group.
    userLists List<String>

    Specifies the list with IAM users which belong to user_group.

    The filter block supports:

    CtsEventNotificationV3Operation, CtsEventNotificationV3OperationArgs

    ResourceType string
    Specifies the resource type of custom operation.
    ServiceType string
    Specifies the cloud service. Every service should be provided separately, the value must be the acronym of a cloud service that has been connected with CTS.
    TraceNames List<string>
    Specifies the list with trace names of custom operation.
    ResourceType string
    Specifies the resource type of custom operation.
    ServiceType string
    Specifies the cloud service. Every service should be provided separately, the value must be the acronym of a cloud service that has been connected with CTS.
    TraceNames []string
    Specifies the list with trace names of custom operation.
    resourceType String
    Specifies the resource type of custom operation.
    serviceType String
    Specifies the cloud service. Every service should be provided separately, the value must be the acronym of a cloud service that has been connected with CTS.
    traceNames List<String>
    Specifies the list with trace names of custom operation.
    resourceType string
    Specifies the resource type of custom operation.
    serviceType string
    Specifies the cloud service. Every service should be provided separately, the value must be the acronym of a cloud service that has been connected with CTS.
    traceNames string[]
    Specifies the list with trace names of custom operation.
    resource_type str
    Specifies the resource type of custom operation.
    service_type str
    Specifies the cloud service. Every service should be provided separately, the value must be the acronym of a cloud service that has been connected with CTS.
    trace_names Sequence[str]
    Specifies the list with trace names of custom operation.
    resourceType String
    Specifies the resource type of custom operation.
    serviceType String
    Specifies the cloud service. Every service should be provided separately, the value must be the acronym of a cloud service that has been connected with CTS.
    traceNames List<String>
    Specifies the list with trace names of custom operation.

    Import

    CTS event notification can be imported using the notification_id/notification_name, e.g.

    $ pulumi import opentelekomcloud:index/ctsEventNotificationV3:CtsEventNotificationV3 notification c1881895-cdcb-4d23-96cb-032e6a3ee667/test_event
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud