1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. CentralNotificationRule
Harness v0.7.7 published on Thursday, Jul 17, 2025 by Pulumi

harness.platform.CentralNotificationRule

Explore with Pulumi AI

harness logo
Harness v0.7.7 published on Thursday, Jul 17, 2025 by Pulumi

    Resource for creating a Harness Notification Rule

    Create CentralNotificationRule Resource

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

    Constructor syntax

    new CentralNotificationRule(name: string, args: CentralNotificationRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CentralNotificationRule(resource_name: str,
                                args: CentralNotificationRuleArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def CentralNotificationRule(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                identifier: Optional[str] = None,
                                notification_channel_refs: Optional[Sequence[str]] = None,
                                notification_conditions: Optional[Sequence[CentralNotificationRuleNotificationConditionArgs]] = None,
                                project: Optional[str] = None,
                                custom_notification_template_ref: Optional[CentralNotificationRuleCustomNotificationTemplateRefArgs] = None,
                                name: Optional[str] = None,
                                org: Optional[str] = None,
                                status: Optional[str] = None)
    func NewCentralNotificationRule(ctx *Context, name string, args CentralNotificationRuleArgs, opts ...ResourceOption) (*CentralNotificationRule, error)
    public CentralNotificationRule(string name, CentralNotificationRuleArgs args, CustomResourceOptions? opts = null)
    public CentralNotificationRule(String name, CentralNotificationRuleArgs args)
    public CentralNotificationRule(String name, CentralNotificationRuleArgs args, CustomResourceOptions options)
    
    type: harness:platform:CentralNotificationRule
    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 CentralNotificationRuleArgs
    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 CentralNotificationRuleArgs
    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 CentralNotificationRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CentralNotificationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CentralNotificationRuleArgs
    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 centralNotificationRuleResource = new Harness.Platform.CentralNotificationRule("centralNotificationRuleResource", new()
    {
        Identifier = "string",
        NotificationChannelRefs = new[]
        {
            "string",
        },
        NotificationConditions = new[]
        {
            new Harness.Platform.Inputs.CentralNotificationRuleNotificationConditionArgs
            {
                ConditionName = "string",
                NotificationEventConfigs = new[]
                {
                    new Harness.Platform.Inputs.CentralNotificationRuleNotificationConditionNotificationEventConfigArgs
                    {
                        NotificationEntity = "string",
                        NotificationEvent = "string",
                        EntityIdentifiers = new[]
                        {
                            "string",
                        },
                        NotificationEventData = 
                        {
                            { "string", "string" },
                        },
                    },
                },
            },
        },
        Project = "string",
        CustomNotificationTemplateRef = new Harness.Platform.Inputs.CentralNotificationRuleCustomNotificationTemplateRefArgs
        {
            TemplateRef = "string",
            VersionLabel = "string",
            Variables = new[]
            {
                new Harness.Platform.Inputs.CentralNotificationRuleCustomNotificationTemplateRefVariableArgs
                {
                    Name = "string",
                    Value = "string",
                    Type = "string",
                },
            },
        },
        Name = "string",
        Org = "string",
        Status = "string",
    });
    
    example, err := platform.NewCentralNotificationRule(ctx, "centralNotificationRuleResource", &platform.CentralNotificationRuleArgs{
    	Identifier: pulumi.String("string"),
    	NotificationChannelRefs: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationConditions: platform.CentralNotificationRuleNotificationConditionArray{
    		&platform.CentralNotificationRuleNotificationConditionArgs{
    			ConditionName: pulumi.String("string"),
    			NotificationEventConfigs: platform.CentralNotificationRuleNotificationConditionNotificationEventConfigArray{
    				&platform.CentralNotificationRuleNotificationConditionNotificationEventConfigArgs{
    					NotificationEntity: pulumi.String("string"),
    					NotificationEvent:  pulumi.String("string"),
    					EntityIdentifiers: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					NotificationEventData: pulumi.StringMap{
    						"string": pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    	Project: pulumi.String("string"),
    	CustomNotificationTemplateRef: &platform.CentralNotificationRuleCustomNotificationTemplateRefArgs{
    		TemplateRef:  pulumi.String("string"),
    		VersionLabel: pulumi.String("string"),
    		Variables: platform.CentralNotificationRuleCustomNotificationTemplateRefVariableArray{
    			&platform.CentralNotificationRuleCustomNotificationTemplateRefVariableArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    				Type:  pulumi.String("string"),
    			},
    		},
    	},
    	Name:   pulumi.String("string"),
    	Org:    pulumi.String("string"),
    	Status: pulumi.String("string"),
    })
    
    var centralNotificationRuleResource = new CentralNotificationRule("centralNotificationRuleResource", CentralNotificationRuleArgs.builder()
        .identifier("string")
        .notificationChannelRefs("string")
        .notificationConditions(CentralNotificationRuleNotificationConditionArgs.builder()
            .conditionName("string")
            .notificationEventConfigs(CentralNotificationRuleNotificationConditionNotificationEventConfigArgs.builder()
                .notificationEntity("string")
                .notificationEvent("string")
                .entityIdentifiers("string")
                .notificationEventData(Map.of("string", "string"))
                .build())
            .build())
        .project("string")
        .customNotificationTemplateRef(CentralNotificationRuleCustomNotificationTemplateRefArgs.builder()
            .templateRef("string")
            .versionLabel("string")
            .variables(CentralNotificationRuleCustomNotificationTemplateRefVariableArgs.builder()
                .name("string")
                .value("string")
                .type("string")
                .build())
            .build())
        .name("string")
        .org("string")
        .status("string")
        .build());
    
    central_notification_rule_resource = harness.platform.CentralNotificationRule("centralNotificationRuleResource",
        identifier="string",
        notification_channel_refs=["string"],
        notification_conditions=[{
            "condition_name": "string",
            "notification_event_configs": [{
                "notification_entity": "string",
                "notification_event": "string",
                "entity_identifiers": ["string"],
                "notification_event_data": {
                    "string": "string",
                },
            }],
        }],
        project="string",
        custom_notification_template_ref={
            "template_ref": "string",
            "version_label": "string",
            "variables": [{
                "name": "string",
                "value": "string",
                "type": "string",
            }],
        },
        name="string",
        org="string",
        status="string")
    
    const centralNotificationRuleResource = new harness.platform.CentralNotificationRule("centralNotificationRuleResource", {
        identifier: "string",
        notificationChannelRefs: ["string"],
        notificationConditions: [{
            conditionName: "string",
            notificationEventConfigs: [{
                notificationEntity: "string",
                notificationEvent: "string",
                entityIdentifiers: ["string"],
                notificationEventData: {
                    string: "string",
                },
            }],
        }],
        project: "string",
        customNotificationTemplateRef: {
            templateRef: "string",
            versionLabel: "string",
            variables: [{
                name: "string",
                value: "string",
                type: "string",
            }],
        },
        name: "string",
        org: "string",
        status: "string",
    });
    
    type: harness:platform:CentralNotificationRule
    properties:
        customNotificationTemplateRef:
            templateRef: string
            variables:
                - name: string
                  type: string
                  value: string
            versionLabel: string
        identifier: string
        name: string
        notificationChannelRefs:
            - string
        notificationConditions:
            - conditionName: string
              notificationEventConfigs:
                - entityIdentifiers:
                    - string
                  notificationEntity: string
                  notificationEvent: string
                  notificationEventData:
                    string: string
        org: string
        project: string
        status: string
    

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

    Outputs

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

    Account string
    Account identifier associated with this notification channel.
    Created int
    Timestamp when the notification rule was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified int
    Timestamp when the notification rule was last modified.
    Account string
    Account identifier associated with this notification channel.
    Created int
    Timestamp when the notification rule was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified int
    Timestamp when the notification rule was last modified.
    account String
    Account identifier associated with this notification channel.
    created Integer
    Timestamp when the notification rule was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified Integer
    Timestamp when the notification rule was last modified.
    account string
    Account identifier associated with this notification channel.
    created number
    Timestamp when the notification rule was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified number
    Timestamp when the notification rule was last modified.
    account str
    Account identifier associated with this notification channel.
    created int
    Timestamp when the notification rule was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified int
    Timestamp when the notification rule was last modified.
    account String
    Account identifier associated with this notification channel.
    created Number
    Timestamp when the notification rule was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified Number
    Timestamp when the notification rule was last modified.

    Look up Existing CentralNotificationRule Resource

    Get an existing CentralNotificationRule 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?: CentralNotificationRuleState, opts?: CustomResourceOptions): CentralNotificationRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account: Optional[str] = None,
            created: Optional[int] = None,
            custom_notification_template_ref: Optional[CentralNotificationRuleCustomNotificationTemplateRefArgs] = None,
            identifier: Optional[str] = None,
            last_modified: Optional[int] = None,
            name: Optional[str] = None,
            notification_channel_refs: Optional[Sequence[str]] = None,
            notification_conditions: Optional[Sequence[CentralNotificationRuleNotificationConditionArgs]] = None,
            org: Optional[str] = None,
            project: Optional[str] = None,
            status: Optional[str] = None) -> CentralNotificationRule
    func GetCentralNotificationRule(ctx *Context, name string, id IDInput, state *CentralNotificationRuleState, opts ...ResourceOption) (*CentralNotificationRule, error)
    public static CentralNotificationRule Get(string name, Input<string> id, CentralNotificationRuleState? state, CustomResourceOptions? opts = null)
    public static CentralNotificationRule get(String name, Output<String> id, CentralNotificationRuleState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:CentralNotificationRule    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:
    Account string
    Account identifier associated with this notification channel.
    Created int
    Timestamp when the notification rule was created.
    CustomNotificationTemplateRef CentralNotificationRuleCustomNotificationTemplateRef
    Identifier string
    LastModified int
    Timestamp when the notification rule was last modified.
    Name string
    NotificationChannelRefs List<string>
    NotificationConditions List<CentralNotificationRuleNotificationCondition>
    Org string
    Project string
    Status string
    Account string
    Account identifier associated with this notification channel.
    Created int
    Timestamp when the notification rule was created.
    CustomNotificationTemplateRef CentralNotificationRuleCustomNotificationTemplateRefArgs
    Identifier string
    LastModified int
    Timestamp when the notification rule was last modified.
    Name string
    NotificationChannelRefs []string
    NotificationConditions []CentralNotificationRuleNotificationConditionArgs
    Org string
    Project string
    Status string
    account String
    Account identifier associated with this notification channel.
    created Integer
    Timestamp when the notification rule was created.
    customNotificationTemplateRef CentralNotificationRuleCustomNotificationTemplateRef
    identifier String
    lastModified Integer
    Timestamp when the notification rule was last modified.
    name String
    notificationChannelRefs List<String>
    notificationConditions List<CentralNotificationRuleNotificationCondition>
    org String
    project String
    status String
    account string
    Account identifier associated with this notification channel.
    created number
    Timestamp when the notification rule was created.
    customNotificationTemplateRef CentralNotificationRuleCustomNotificationTemplateRef
    identifier string
    lastModified number
    Timestamp when the notification rule was last modified.
    name string
    notificationChannelRefs string[]
    notificationConditions CentralNotificationRuleNotificationCondition[]
    org string
    project string
    status string
    account str
    Account identifier associated with this notification channel.
    created int
    Timestamp when the notification rule was created.
    custom_notification_template_ref CentralNotificationRuleCustomNotificationTemplateRefArgs
    identifier str
    last_modified int
    Timestamp when the notification rule was last modified.
    name str
    notification_channel_refs Sequence[str]
    notification_conditions Sequence[CentralNotificationRuleNotificationConditionArgs]
    org str
    project str
    status str
    account String
    Account identifier associated with this notification channel.
    created Number
    Timestamp when the notification rule was created.
    customNotificationTemplateRef Property Map
    identifier String
    lastModified Number
    Timestamp when the notification rule was last modified.
    name String
    notificationChannelRefs List<String>
    notificationConditions List<Property Map>
    org String
    project String
    status String

    Supporting Types

    CentralNotificationRuleCustomNotificationTemplateRef, CentralNotificationRuleCustomNotificationTemplateRefArgs

    CentralNotificationRuleCustomNotificationTemplateRefVariable, CentralNotificationRuleCustomNotificationTemplateRefVariableArgs

    Name string
    Value string
    Type string
    Name string
    Value string
    Type string
    name String
    value String
    type String
    name string
    value string
    type string
    name str
    value str
    type str
    name String
    value String
    type String

    CentralNotificationRuleNotificationCondition, CentralNotificationRuleNotificationConditionArgs

    CentralNotificationRuleNotificationConditionNotificationEventConfig, CentralNotificationRuleNotificationConditionNotificationEventConfigArgs

    NotificationEntity string
    NotificationEvent string
    EntityIdentifiers List<string>
    NotificationEventData Dictionary<string, string>

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.7.7 published on Thursday, Jul 17, 2025 by Pulumi