harness.platform.CentralNotificationRule
Explore with Pulumi AI
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:
- identifier String
- notification
Channel List<String>Refs - notification
Conditions List<Property Map> - project String
- custom
Notification Property MapTemplate Ref - name String
- org String
- status String
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.
- Last
Modified 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.
- Last
Modified 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.
- last
Modified 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.
- last
Modified 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.
- last
Modified 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.
- Account string
- Account identifier associated with this notification channel.
- Created int
- Timestamp when the notification rule was created.
- Custom
Notification CentralTemplate Ref Notification Rule Custom Notification Template Ref - Identifier string
- Last
Modified int - Timestamp when the notification rule was last modified.
- Name string
- Notification
Channel List<string>Refs - Notification
Conditions List<CentralNotification Rule Notification Condition> - Org string
- Project string
- Status string
- Account string
- Account identifier associated with this notification channel.
- Created int
- Timestamp when the notification rule was created.
- Custom
Notification CentralTemplate Ref Notification Rule Custom Notification Template Ref Args - Identifier string
- Last
Modified int - Timestamp when the notification rule was last modified.
- Name string
- Notification
Channel []stringRefs - Notification
Conditions []CentralNotification Rule Notification Condition Args - Org string
- Project string
- Status string
- account String
- Account identifier associated with this notification channel.
- created Integer
- Timestamp when the notification rule was created.
- custom
Notification CentralTemplate Ref Notification Rule Custom Notification Template Ref - identifier String
- last
Modified Integer - Timestamp when the notification rule was last modified.
- name String
- notification
Channel List<String>Refs - notification
Conditions List<CentralNotification Rule Notification Condition> - org String
- project String
- status String
- account string
- Account identifier associated with this notification channel.
- created number
- Timestamp when the notification rule was created.
- custom
Notification CentralTemplate Ref Notification Rule Custom Notification Template Ref - identifier string
- last
Modified number - Timestamp when the notification rule was last modified.
- name string
- notification
Channel string[]Refs - notification
Conditions CentralNotification Rule Notification Condition[] - 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_ Centraltemplate_ ref Notification Rule Custom Notification Template Ref Args - identifier str
- last_
modified int - Timestamp when the notification rule was last modified.
- name str
- notification_
channel_ Sequence[str]refs - notification_
conditions Sequence[CentralNotification Rule Notification Condition Args] - org str
- project str
- status str
- account String
- Account identifier associated with this notification channel.
- created Number
- Timestamp when the notification rule was created.
- custom
Notification Property MapTemplate Ref - identifier String
- last
Modified Number - Timestamp when the notification rule was last modified.
- name String
- notification
Channel List<String>Refs - notification
Conditions List<Property Map> - org String
- project String
- status String
Supporting Types
CentralNotificationRuleCustomNotificationTemplateRef, CentralNotificationRuleCustomNotificationTemplateRefArgs
- template
Ref String - version
Label String - variables List<Property Map>
CentralNotificationRuleCustomNotificationTemplateRefVariable, CentralNotificationRuleCustomNotificationTemplateRefVariableArgs
CentralNotificationRuleNotificationCondition, CentralNotificationRuleNotificationConditionArgs
CentralNotificationRuleNotificationConditionNotificationEventConfig, CentralNotificationRuleNotificationConditionNotificationEventConfigArgs
- Notification
Entity string - Notification
Event string - Entity
Identifiers List<string> - Notification
Event Dictionary<string, string>Data
- Notification
Entity string - Notification
Event string - Entity
Identifiers []string - Notification
Event map[string]stringData
- notification
Entity String - notification
Event String - entity
Identifiers List<String> - notification
Event Map<String,String>Data
- notification
Entity string - notification
Event string - entity
Identifiers string[] - notification
Event {[key: string]: string}Data
- notification_
entity str - notification_
event str - entity_
identifiers Sequence[str] - notification_
event_ Mapping[str, str]data
- notification
Entity String - notification
Event String - entity
Identifiers List<String> - notification
Event Map<String>Data
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.