1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. DefaultNotificationTemplateSet
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

harness.platform.DefaultNotificationTemplateSet

Explore with Pulumi AI

harness logo
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

    Resource for creating a Harness Default Notification Template Set

    Create DefaultNotificationTemplateSet Resource

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

    Constructor syntax

    new DefaultNotificationTemplateSet(name: string, args: DefaultNotificationTemplateSetArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultNotificationTemplateSet(resource_name: str,
                                       args: DefaultNotificationTemplateSetArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultNotificationTemplateSet(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       event_template_configuration_sets: Optional[Sequence[DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs]] = None,
                                       identifier: Optional[str] = None,
                                       notification_channel_type: Optional[str] = None,
                                       notification_entity: Optional[str] = None,
                                       description: Optional[str] = None,
                                       name: Optional[str] = None,
                                       tags: Optional[Mapping[str, str]] = None)
    func NewDefaultNotificationTemplateSet(ctx *Context, name string, args DefaultNotificationTemplateSetArgs, opts ...ResourceOption) (*DefaultNotificationTemplateSet, error)
    public DefaultNotificationTemplateSet(string name, DefaultNotificationTemplateSetArgs args, CustomResourceOptions? opts = null)
    public DefaultNotificationTemplateSet(String name, DefaultNotificationTemplateSetArgs args)
    public DefaultNotificationTemplateSet(String name, DefaultNotificationTemplateSetArgs args, CustomResourceOptions options)
    
    type: harness:platform:DefaultNotificationTemplateSet
    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 DefaultNotificationTemplateSetArgs
    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 DefaultNotificationTemplateSetArgs
    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 DefaultNotificationTemplateSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultNotificationTemplateSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultNotificationTemplateSetArgs
    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 defaultNotificationTemplateSetResource = new Harness.Platform.DefaultNotificationTemplateSet("defaultNotificationTemplateSetResource", new()
    {
        EventTemplateConfigurationSets = new[]
        {
            new Harness.Platform.Inputs.DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs
            {
                NotificationEvents = new[]
                {
                    "string",
                },
                Template = new Harness.Platform.Inputs.DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateArgs
                {
                    TemplateRef = "string",
                    VersionLabel = "string",
                    Variables = new[]
                    {
                        new Harness.Platform.Inputs.DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariableArgs
                        {
                            Name = "string",
                            Type = "string",
                            Value = "string",
                        },
                    },
                },
            },
        },
        Identifier = "string",
        NotificationChannelType = "string",
        NotificationEntity = "string",
        Description = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := platform.NewDefaultNotificationTemplateSet(ctx, "defaultNotificationTemplateSetResource", &platform.DefaultNotificationTemplateSetArgs{
    	EventTemplateConfigurationSets: platform.DefaultNotificationTemplateSetEventTemplateConfigurationSetArray{
    		&platform.DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs{
    			NotificationEvents: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Template: &platform.DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateArgs{
    				TemplateRef:  pulumi.String("string"),
    				VersionLabel: pulumi.String("string"),
    				Variables: platform.DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariableArray{
    					&platform.DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariableArgs{
    						Name:  pulumi.String("string"),
    						Type:  pulumi.String("string"),
    						Value: pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    	Identifier:              pulumi.String("string"),
    	NotificationChannelType: pulumi.String("string"),
    	NotificationEntity:      pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var defaultNotificationTemplateSetResource = new DefaultNotificationTemplateSet("defaultNotificationTemplateSetResource", DefaultNotificationTemplateSetArgs.builder()
        .eventTemplateConfigurationSets(DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs.builder()
            .notificationEvents("string")
            .template(DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateArgs.builder()
                .templateRef("string")
                .versionLabel("string")
                .variables(DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariableArgs.builder()
                    .name("string")
                    .type("string")
                    .value("string")
                    .build())
                .build())
            .build())
        .identifier("string")
        .notificationChannelType("string")
        .notificationEntity("string")
        .description("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    default_notification_template_set_resource = harness.platform.DefaultNotificationTemplateSet("defaultNotificationTemplateSetResource",
        event_template_configuration_sets=[{
            "notification_events": ["string"],
            "template": {
                "template_ref": "string",
                "version_label": "string",
                "variables": [{
                    "name": "string",
                    "type": "string",
                    "value": "string",
                }],
            },
        }],
        identifier="string",
        notification_channel_type="string",
        notification_entity="string",
        description="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const defaultNotificationTemplateSetResource = new harness.platform.DefaultNotificationTemplateSet("defaultNotificationTemplateSetResource", {
        eventTemplateConfigurationSets: [{
            notificationEvents: ["string"],
            template: {
                templateRef: "string",
                versionLabel: "string",
                variables: [{
                    name: "string",
                    type: "string",
                    value: "string",
                }],
            },
        }],
        identifier: "string",
        notificationChannelType: "string",
        notificationEntity: "string",
        description: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: harness:platform:DefaultNotificationTemplateSet
    properties:
        description: string
        eventTemplateConfigurationSets:
            - notificationEvents:
                - string
              template:
                templateRef: string
                variables:
                    - name: string
                      type: string
                      value: string
                versionLabel: string
        identifier: string
        name: string
        notificationChannelType: string
        notificationEntity: string
        tags:
            string: string
    

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

    EventTemplateConfigurationSets List<DefaultNotificationTemplateSetEventTemplateConfigurationSet>
    Set of event-template configurations
    Identifier string
    Identifier of Default Notification Template Set
    NotificationChannelType string
    Type of channel (e.g. SLACK, EMAIL, etc.)
    NotificationEntity string
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    Description string
    Description for Default Notification Template Set
    Name string
    Name of Default Notification Template Set
    Tags Dictionary<string, string>
    Key-value tags
    EventTemplateConfigurationSets []DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs
    Set of event-template configurations
    Identifier string
    Identifier of Default Notification Template Set
    NotificationChannelType string
    Type of channel (e.g. SLACK, EMAIL, etc.)
    NotificationEntity string
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    Description string
    Description for Default Notification Template Set
    Name string
    Name of Default Notification Template Set
    Tags map[string]string
    Key-value tags
    eventTemplateConfigurationSets List<DefaultNotificationTemplateSetEventTemplateConfigurationSet>
    Set of event-template configurations
    identifier String
    Identifier of Default Notification Template Set
    notificationChannelType String
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notificationEntity String
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    description String
    Description for Default Notification Template Set
    name String
    Name of Default Notification Template Set
    tags Map<String,String>
    Key-value tags
    eventTemplateConfigurationSets DefaultNotificationTemplateSetEventTemplateConfigurationSet[]
    Set of event-template configurations
    identifier string
    Identifier of Default Notification Template Set
    notificationChannelType string
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notificationEntity string
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    description string
    Description for Default Notification Template Set
    name string
    Name of Default Notification Template Set
    tags {[key: string]: string}
    Key-value tags
    event_template_configuration_sets Sequence[DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs]
    Set of event-template configurations
    identifier str
    Identifier of Default Notification Template Set
    notification_channel_type str
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notification_entity str
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    description str
    Description for Default Notification Template Set
    name str
    Name of Default Notification Template Set
    tags Mapping[str, str]
    Key-value tags
    eventTemplateConfigurationSets List<Property Map>
    Set of event-template configurations
    identifier String
    Identifier of Default Notification Template Set
    notificationChannelType String
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notificationEntity String
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    description String
    Description for Default Notification Template Set
    name String
    Name of Default Notification Template Set
    tags Map<String>
    Key-value tags

    Outputs

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

    Created int
    Timestamp when the default notification template set was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified int
    Timestamp when the default notification template set was last modified.
    Created int
    Timestamp when the default notification template set was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified int
    Timestamp when the default notification template set was last modified.
    created Integer
    Timestamp when the default notification template set was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified Integer
    Timestamp when the default notification template set was last modified.
    created number
    Timestamp when the default notification template set was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified number
    Timestamp when the default notification template set was last modified.
    created int
    Timestamp when the default notification template set was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified int
    Timestamp when the default notification template set was last modified.
    created Number
    Timestamp when the default notification template set was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified Number
    Timestamp when the default notification template set was last modified.

    Look up Existing DefaultNotificationTemplateSet Resource

    Get an existing DefaultNotificationTemplateSet 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?: DefaultNotificationTemplateSetState, opts?: CustomResourceOptions): DefaultNotificationTemplateSet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[int] = None,
            description: Optional[str] = None,
            event_template_configuration_sets: Optional[Sequence[DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs]] = None,
            identifier: Optional[str] = None,
            last_modified: Optional[int] = None,
            name: Optional[str] = None,
            notification_channel_type: Optional[str] = None,
            notification_entity: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> DefaultNotificationTemplateSet
    func GetDefaultNotificationTemplateSet(ctx *Context, name string, id IDInput, state *DefaultNotificationTemplateSetState, opts ...ResourceOption) (*DefaultNotificationTemplateSet, error)
    public static DefaultNotificationTemplateSet Get(string name, Input<string> id, DefaultNotificationTemplateSetState? state, CustomResourceOptions? opts = null)
    public static DefaultNotificationTemplateSet get(String name, Output<String> id, DefaultNotificationTemplateSetState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:DefaultNotificationTemplateSet    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:
    Created int
    Timestamp when the default notification template set was created.
    Description string
    Description for Default Notification Template Set
    EventTemplateConfigurationSets List<DefaultNotificationTemplateSetEventTemplateConfigurationSet>
    Set of event-template configurations
    Identifier string
    Identifier of Default Notification Template Set
    LastModified int
    Timestamp when the default notification template set was last modified.
    Name string
    Name of Default Notification Template Set
    NotificationChannelType string
    Type of channel (e.g. SLACK, EMAIL, etc.)
    NotificationEntity string
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    Tags Dictionary<string, string>
    Key-value tags
    Created int
    Timestamp when the default notification template set was created.
    Description string
    Description for Default Notification Template Set
    EventTemplateConfigurationSets []DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs
    Set of event-template configurations
    Identifier string
    Identifier of Default Notification Template Set
    LastModified int
    Timestamp when the default notification template set was last modified.
    Name string
    Name of Default Notification Template Set
    NotificationChannelType string
    Type of channel (e.g. SLACK, EMAIL, etc.)
    NotificationEntity string
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    Tags map[string]string
    Key-value tags
    created Integer
    Timestamp when the default notification template set was created.
    description String
    Description for Default Notification Template Set
    eventTemplateConfigurationSets List<DefaultNotificationTemplateSetEventTemplateConfigurationSet>
    Set of event-template configurations
    identifier String
    Identifier of Default Notification Template Set
    lastModified Integer
    Timestamp when the default notification template set was last modified.
    name String
    Name of Default Notification Template Set
    notificationChannelType String
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notificationEntity String
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    tags Map<String,String>
    Key-value tags
    created number
    Timestamp when the default notification template set was created.
    description string
    Description for Default Notification Template Set
    eventTemplateConfigurationSets DefaultNotificationTemplateSetEventTemplateConfigurationSet[]
    Set of event-template configurations
    identifier string
    Identifier of Default Notification Template Set
    lastModified number
    Timestamp when the default notification template set was last modified.
    name string
    Name of Default Notification Template Set
    notificationChannelType string
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notificationEntity string
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    tags {[key: string]: string}
    Key-value tags
    created int
    Timestamp when the default notification template set was created.
    description str
    Description for Default Notification Template Set
    event_template_configuration_sets Sequence[DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs]
    Set of event-template configurations
    identifier str
    Identifier of Default Notification Template Set
    last_modified int
    Timestamp when the default notification template set was last modified.
    name str
    Name of Default Notification Template Set
    notification_channel_type str
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notification_entity str
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    tags Mapping[str, str]
    Key-value tags
    created Number
    Timestamp when the default notification template set was created.
    description String
    Description for Default Notification Template Set
    eventTemplateConfigurationSets List<Property Map>
    Set of event-template configurations
    identifier String
    Identifier of Default Notification Template Set
    lastModified Number
    Timestamp when the default notification template set was last modified.
    name String
    Name of Default Notification Template Set
    notificationChannelType String
    Type of channel (e.g. SLACK, EMAIL, etc.)
    notificationEntity String
    Type of the entity (e.g. PIPELINE, SERVICE, etc.)
    tags Map<String>
    Key-value tags

    Supporting Types

    DefaultNotificationTemplateSetEventTemplateConfigurationSet, DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs

    NotificationEvents List<string>
    List of notification events like PIPELINE_START
    Template DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate
    Template reference configuration
    NotificationEvents []string
    List of notification events like PIPELINE_START
    Template DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate
    Template reference configuration
    notificationEvents List<String>
    List of notification events like PIPELINE_START
    template DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate
    Template reference configuration
    notificationEvents string[]
    List of notification events like PIPELINE_START
    template DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate
    Template reference configuration
    notification_events Sequence[str]
    List of notification events like PIPELINE_START
    template DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate
    Template reference configuration
    notificationEvents List<String>
    List of notification events like PIPELINE_START
    template Property Map
    Template reference configuration

    DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate, DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateArgs

    templateRef String
    versionLabel String
    variables List<Property Map>
    List of variables passed to the template

    DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariable, DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariableArgs

    Name string
    Type string
    Value string
    Name string
    Type string
    Value string
    name String
    type String
    value String
    name string
    type string
    value string
    name str
    type str
    value str
    name String
    type String
    value 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.8.4 published on Thursday, Sep 11, 2025 by Pulumi