harness.platform.DefaultNotificationTemplateSet
Explore with Pulumi AI
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:
- Event
Template List<DefaultConfiguration Sets Notification Template Set Event Template Configuration Set> - Set of event-template configurations
- Identifier string
- Identifier of Default Notification Template Set
- Notification
Channel stringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- Notification
Entity 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
- Dictionary<string, string>
- Key-value tags
- Event
Template []DefaultConfiguration Sets Notification Template Set Event Template Configuration Set Args - Set of event-template configurations
- Identifier string
- Identifier of Default Notification Template Set
- Notification
Channel stringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- Notification
Entity 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
- map[string]string
- Key-value tags
- event
Template List<DefaultConfiguration Sets Notification Template Set Event Template Configuration Set> - Set of event-template configurations
- identifier String
- Identifier of Default Notification Template Set
- notification
Channel StringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification
Entity 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
- Map<String,String>
- Key-value tags
- event
Template DefaultConfiguration Sets Notification Template Set Event Template Configuration Set[] - Set of event-template configurations
- identifier string
- Identifier of Default Notification Template Set
- notification
Channel stringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification
Entity 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
- {[key: string]: string}
- Key-value tags
- event_
template_ Sequence[Defaultconfiguration_ sets Notification Template Set Event Template Configuration Set Args] - Set of event-template configurations
- identifier str
- Identifier of Default Notification Template Set
- notification_
channel_ strtype - 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
- Mapping[str, str]
- Key-value tags
- event
Template List<Property Map>Configuration Sets - Set of event-template configurations
- identifier String
- Identifier of Default Notification Template Set
- notification
Channel StringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification
Entity 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
- 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.
- Last
Modified 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.
- Last
Modified 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.
- last
Modified 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.
- last
Modified 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.
- last
Modified 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.
- Created int
- Timestamp when the default notification template set was created.
- Description string
- Description for Default Notification Template Set
- Event
Template List<DefaultConfiguration Sets Notification Template Set Event Template Configuration Set> - Set of event-template configurations
- Identifier string
- Identifier of Default Notification Template Set
- Last
Modified int - Timestamp when the default notification template set was last modified.
- Name string
- Name of Default Notification Template Set
- Notification
Channel stringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- Notification
Entity string - Type of the entity (e.g. PIPELINE, SERVICE, etc.)
- 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
- Event
Template []DefaultConfiguration Sets Notification Template Set Event Template Configuration Set Args - Set of event-template configurations
- Identifier string
- Identifier of Default Notification Template Set
- Last
Modified int - Timestamp when the default notification template set was last modified.
- Name string
- Name of Default Notification Template Set
- Notification
Channel stringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- Notification
Entity string - Type of the entity (e.g. PIPELINE, SERVICE, etc.)
- 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
- event
Template List<DefaultConfiguration Sets Notification Template Set Event Template Configuration Set> - Set of event-template configurations
- identifier String
- Identifier of Default Notification Template Set
- last
Modified Integer - Timestamp when the default notification template set was last modified.
- name String
- Name of Default Notification Template Set
- notification
Channel StringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification
Entity String - Type of the entity (e.g. PIPELINE, SERVICE, etc.)
- 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
- event
Template DefaultConfiguration Sets Notification Template Set Event Template Configuration Set[] - Set of event-template configurations
- identifier string
- Identifier of Default Notification Template Set
- last
Modified number - Timestamp when the default notification template set was last modified.
- name string
- Name of Default Notification Template Set
- notification
Channel stringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification
Entity string - Type of the entity (e.g. PIPELINE, SERVICE, etc.)
- {[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_ Sequence[Defaultconfiguration_ sets Notification Template Set Event Template Configuration Set Args] - 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_ strtype - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification_
entity str - Type of the entity (e.g. PIPELINE, SERVICE, etc.)
- 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
- event
Template List<Property Map>Configuration Sets - Set of event-template configurations
- identifier String
- Identifier of Default Notification Template Set
- last
Modified Number - Timestamp when the default notification template set was last modified.
- name String
- Name of Default Notification Template Set
- notification
Channel StringType - Type of channel (e.g. SLACK, EMAIL, etc.)
- notification
Entity String - Type of the entity (e.g. PIPELINE, SERVICE, etc.)
- Map<String>
- Key-value tags
Supporting Types
DefaultNotificationTemplateSetEventTemplateConfigurationSet, DefaultNotificationTemplateSetEventTemplateConfigurationSetArgs
- Notification
Events List<string> - List of notification events like PIPELINE_START
- Template
Default
Notification Template Set Event Template Configuration Set Template - Template reference configuration
- Notification
Events []string - List of notification events like PIPELINE_START
- Template
Default
Notification Template Set Event Template Configuration Set Template - Template reference configuration
- notification
Events List<String> - List of notification events like PIPELINE_START
- template
Default
Notification Template Set Event Template Configuration Set Template - Template reference configuration
- notification
Events string[] - List of notification events like PIPELINE_START
- template
Default
Notification Template Set Event Template Configuration Set Template - Template reference configuration
- notification_
events Sequence[str] - List of notification events like PIPELINE_START
- template
Default
Notification Template Set Event Template Configuration Set Template - Template reference configuration
- notification
Events List<String> - List of notification events like PIPELINE_START
- template Property Map
- Template reference configuration
DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplate, DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateArgs
- Template
Ref string - Version
Label string - Variables
List<Default
Notification Template Set Event Template Configuration Set Template Variable> - List of variables passed to the template
- Template
Ref string - Version
Label string - Variables
[]Default
Notification Template Set Event Template Configuration Set Template Variable - List of variables passed to the template
- template
Ref String - version
Label String - variables
List<Default
Notification Template Set Event Template Configuration Set Template Variable> - List of variables passed to the template
- template
Ref string - version
Label string - variables
Default
Notification Template Set Event Template Configuration Set Template Variable[] - List of variables passed to the template
- template_
ref str - version_
label str - variables
Sequence[Default
Notification Template Set Event Template Configuration Set Template Variable] - List of variables passed to the template
- template
Ref String - version
Label String - variables List<Property Map>
- List of variables passed to the template
DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariable, DefaultNotificationTemplateSetEventTemplateConfigurationSetTemplateVariableArgs
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.