opentelekomcloud.CtsEventNotificationV3
Explore with Pulumi AI
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:
- Notification
Name string - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- Operation
Type string The operation type of event rules.
Possible values:
- Cts
Event stringNotification V3Id - Filter
Cts
Event Notification V3Filter - Specifies the filtering rules for notification. The filter structure is documented below.
- Notify
User List<CtsLists Event Notification V3Notify User List> - 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<Cts
Event Notification V3Operation> - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- Status string
- Specifies whether SMN topic is
enabled
ordisabled
. - Topic
Id string - Specifies SMN topic URN that will be used for events notification.
- Notification
Name string - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- Operation
Type string The operation type of event rules.
Possible values:
- Cts
Event stringNotification V3Id - Filter
Cts
Event Notification V3Filter Args - Specifies the filtering rules for notification. The filter structure is documented below.
- Notify
User []CtsLists Event Notification V3Notify User List Args - 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
[]Cts
Event Notification V3Operation Args - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- Status string
- Specifies whether SMN topic is
enabled
ordisabled
. - Topic
Id string - Specifies SMN topic URN that will be used for events notification.
- notification
Name String - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- operation
Type String The operation type of event rules.
Possible values:
- cts
Event StringNotification V3Id - filter
Cts
Event Notification V3Filter - Specifies the filtering rules for notification. The filter structure is documented below.
- notify
User List<CtsLists Event Notification V3Notify User List> - 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<Cts
Event Notification V3Operation> - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- status String
- Specifies whether SMN topic is
enabled
ordisabled
. - topic
Id String - Specifies SMN topic URN that will be used for events notification.
- notification
Name string - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- operation
Type string The operation type of event rules.
Possible values:
- cts
Event stringNotification V3Id - filter
Cts
Event Notification V3Filter - Specifies the filtering rules for notification. The filter structure is documented below.
- notify
User CtsLists Event Notification V3Notify User List[] - 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
Cts
Event Notification V3Operation[] - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- status string
- Specifies whether SMN topic is
enabled
ordisabled
. - topic
Id 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_ strnotification_ v3_ id - filter
Cts
Event Notification V3Filter Args - Specifies the filtering rules for notification. The filter structure is documented below.
- notify_
user_ Sequence[Ctslists Event Notification V3Notify User List Args] - 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[Cts
Event Notification V3Operation Args] - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- status str
- Specifies whether SMN topic is
enabled
ordisabled
. - topic_
id str - Specifies SMN topic URN that will be used for events notification.
- notification
Name String - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- operation
Type String The operation type of event rules.
Possible values:
- cts
Event StringNotification V3Id - filter Property Map
- Specifies the filtering rules for notification. The filter structure is documented below.
- notify
User List<Property Map>Lists - 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
ordisabled
. - topic
Id 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:
- Create
Time double - Specifies creation time of event notification rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Notification
Id string - Unique event notification id.
- Notification
Type string - Specifies the notification type. Current
cts
version supports onlysmn
type. - Project
Id string - Specifies project id of event notification rule.
- Create
Time float64 - Specifies creation time of event notification rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Notification
Id string - Unique event notification id.
- Notification
Type string - Specifies the notification type. Current
cts
version supports onlysmn
type. - Project
Id string - Specifies project id of event notification rule.
- create
Time Double - Specifies creation time of event notification rule.
- id String
- The provider-assigned unique ID for this managed resource.
- notification
Id String - Unique event notification id.
- notification
Type String - Specifies the notification type. Current
cts
version supports onlysmn
type. - project
Id String - Specifies project id of event notification rule.
- create
Time number - Specifies creation time of event notification rule.
- id string
- The provider-assigned unique ID for this managed resource.
- notification
Id string - Unique event notification id.
- notification
Type string - Specifies the notification type. Current
cts
version supports onlysmn
type. - project
Id 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 onlysmn
type. - project_
id str - Specifies project id of event notification rule.
- create
Time Number - Specifies creation time of event notification rule.
- id String
- The provider-assigned unique ID for this managed resource.
- notification
Id String - Unique event notification id.
- notification
Type String - Specifies the notification type. Current
cts
version supports onlysmn
type. - project
Id 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.
- Create
Time double - Specifies creation time of event notification rule.
- Cts
Event stringNotification V3Id - Filter
Cts
Event Notification V3Filter - Specifies the filtering rules for notification. The filter structure is documented below.
- Notification
Id string - Unique event notification id.
- Notification
Name string - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- Notification
Type string - Specifies the notification type. Current
cts
version supports onlysmn
type. - Notify
User List<CtsLists Event Notification V3Notify User List> - 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 string The operation type of event rules.
Possible values:
- Operations
List<Cts
Event Notification V3Operation> - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- Project
Id string - Specifies project id of event notification rule.
- Status string
- Specifies whether SMN topic is
enabled
ordisabled
. - Topic
Id string - Specifies SMN topic URN that will be used for events notification.
- Create
Time float64 - Specifies creation time of event notification rule.
- Cts
Event stringNotification V3Id - Filter
Cts
Event Notification V3Filter Args - Specifies the filtering rules for notification. The filter structure is documented below.
- Notification
Id string - Unique event notification id.
- Notification
Name string - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- Notification
Type string - Specifies the notification type. Current
cts
version supports onlysmn
type. - Notify
User []CtsLists Event Notification V3Notify User List Args - 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 string The operation type of event rules.
Possible values:
- Operations
[]Cts
Event Notification V3Operation Args - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- Project
Id string - Specifies project id of event notification rule.
- Status string
- Specifies whether SMN topic is
enabled
ordisabled
. - Topic
Id string - Specifies SMN topic URN that will be used for events notification.
- create
Time Double - Specifies creation time of event notification rule.
- cts
Event StringNotification V3Id - filter
Cts
Event Notification V3Filter - Specifies the filtering rules for notification. The filter structure is documented below.
- notification
Id String - Unique event notification id.
- notification
Name String - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- notification
Type String - Specifies the notification type. Current
cts
version supports onlysmn
type. - notify
User List<CtsLists Event Notification V3Notify User List> - 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 String The operation type of event rules.
Possible values:
- operations
List<Cts
Event Notification V3Operation> - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- project
Id String - Specifies project id of event notification rule.
- status String
- Specifies whether SMN topic is
enabled
ordisabled
. - topic
Id String - Specifies SMN topic URN that will be used for events notification.
- create
Time number - Specifies creation time of event notification rule.
- cts
Event stringNotification V3Id - filter
Cts
Event Notification V3Filter - Specifies the filtering rules for notification. The filter structure is documented below.
- notification
Id string - Unique event notification id.
- notification
Name string - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- notification
Type string - Specifies the notification type. Current
cts
version supports onlysmn
type. - notify
User CtsLists Event Notification V3Notify User List[] - 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 string The operation type of event rules.
Possible values:
- operations
Cts
Event Notification V3Operation[] - Specifies an array of operations that will trigger notifications. The operations structure is documented below.
- project
Id string - Specifies project id of event notification rule.
- status string
- Specifies whether SMN topic is
enabled
ordisabled
. - topic
Id string - Specifies SMN topic URN that will be used for events notification.
- create_
time float - Specifies creation time of event notification rule.
- cts_
event_ strnotification_ v3_ id - filter
Cts
Event Notification V3Filter Args - 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 onlysmn
type. - notify_
user_ Sequence[Ctslists Event Notification V3Notify User List Args] - 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[Cts
Event Notification V3Operation Args] - 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
ordisabled
. - topic_
id str - Specifies SMN topic URN that will be used for events notification.
- create
Time Number - Specifies creation time of event notification rule.
- cts
Event StringNotification V3Id - filter Property Map
- Specifies the filtering rules for notification. The filter structure is documented below.
- notification
Id String - Unique event notification id.
- notification
Name String - The name of event notification rule. Only letters, digits and underscores (_) are allowed.
- notification
Type String - Specifies the notification type. Current
cts
version supports onlysmn
type. - notify
User List<Property Map>Lists - 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 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.
- project
Id String - Specifies project id of event notification rule.
- status String
- Specifies whether SMN topic is
enabled
ordisabled
. - topic
Id 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
to256
. 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 from1
to350
. When the key is **resource_name**, the length range of value is from1
to256
. - The rule can be: != or =.
The
operations
block supports:- 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
- 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
to256
. 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 from1
to350
. When the key is **resource_name**, the length range of value is from1
to256
. - The rule can be: != or =.
The
operations
block supports:- 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
- 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
to256
. 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 from1
to350
. When the key is **resource_name**, the length range of value is from1
to256
. - The rule can be: != or =.
The
operations
block supports:- 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
- 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
to256
. 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 from1
to350
. When the key is **resource_name**, the length range of value is from1
to256
. - The rule can be: != or =.
The
operations
block supports:- 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
- 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
to256
. 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 from1
to350
. When the key is **resource_name**, the length range of value is from1
to256
. - The rule can be: != or =.
The
operations
block supports:- 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
- 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
to256
. 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 from1
to350
. When the key is **resource_name**, the length range of value is from1
to256
. - The rule can be: != or =.
The
operations
block supports:- 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
CtsEventNotificationV3NotifyUserList, CtsEventNotificationV3NotifyUserListArgs
- 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:
CtsEventNotificationV3Operation, CtsEventNotificationV3OperationArgs
- Resource
Type string - Specifies the resource type of custom operation.
- Service
Type 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.
- Trace
Names List<string> - Specifies the list with trace names of custom operation.
- Resource
Type string - Specifies the resource type of custom operation.
- Service
Type 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.
- Trace
Names []string - Specifies the list with trace names of custom operation.
- resource
Type String - Specifies the resource type of custom operation.
- service
Type 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.
- trace
Names List<String> - Specifies the list with trace names of custom operation.
- resource
Type string - Specifies the resource type of custom operation.
- service
Type 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.
- trace
Names 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.
- resource
Type String - Specifies the resource type of custom operation.
- service
Type 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.
- trace
Names 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.