newrelic.NotificationChannel
Create NotificationChannel Resource
new NotificationChannel(name: string, args: NotificationChannelArgs, opts?: CustomResourceOptions);
@overload
def NotificationChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
active: Optional[bool] = None,
destination_id: Optional[str] = None,
name: Optional[str] = None,
product: Optional[str] = None,
properties: Optional[Sequence[NotificationChannelPropertyArgs]] = None,
type: Optional[str] = None)
@overload
def NotificationChannel(resource_name: str,
args: NotificationChannelArgs,
opts: Optional[ResourceOptions] = None)
func NewNotificationChannel(ctx *Context, name string, args NotificationChannelArgs, opts ...ResourceOption) (*NotificationChannel, error)
public NotificationChannel(string name, NotificationChannelArgs args, CustomResourceOptions? opts = null)
public NotificationChannel(String name, NotificationChannelArgs args)
public NotificationChannel(String name, NotificationChannelArgs args, CustomResourceOptions options)
type: newrelic:NotificationChannel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationChannelArgs
- 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 NotificationChannelArgs
- 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 NotificationChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationChannelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
NotificationChannel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NotificationChannel resource accepts the following input properties:
- Destination
Id string The id of the destination.
- Product string
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- Properties
List<Pulumi.
New Relic. Inputs. Notification Channel Property Args> A nested block that describes a notification channel property. See Nested property blocks below for details.
- Type string
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.- Account
Id int Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the channel is active.
- Name string
The name of the channel.
- Destination
Id string The id of the destination.
- Product string
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- Properties
[]Notification
Channel Property Args A nested block that describes a notification channel property. See Nested property blocks below for details.
- Type string
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.- Account
Id int Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the channel is active.
- Name string
The name of the channel.
- destination
Id String The id of the destination.
- product String
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties
List<Notification
Channel Property Args> A nested block that describes a notification channel property. See Nested property blocks below for details.
- type String
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.- account
Id Integer Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the channel is active.
- name String
The name of the channel.
- destination
Id string The id of the destination.
- product string
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties
Notification
Channel Property Args[] A nested block that describes a notification channel property. See Nested property blocks below for details.
- type string
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.- account
Id number Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active boolean
Indicates whether the channel is active.
- name string
The name of the channel.
- destination_
id str The id of the destination.
- product str
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties
Sequence[Notification
Channel Property Args] A nested block that describes a notification channel property. See Nested property blocks below for details.
- type str
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.- account_
id int Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active bool
Indicates whether the channel is active.
- name str
The name of the channel.
- destination
Id String The id of the destination.
- product String
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties List<Property Map>
A nested block that describes a notification channel property. See Nested property blocks below for details.
- type String
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.- account
Id Number Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the channel is active.
- name String
The name of the channel.
Outputs
All input properties are implicitly available as output properties. Additionally, the NotificationChannel resource produces the following output properties:
Look up Existing NotificationChannel Resource
Get an existing NotificationChannel 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?: NotificationChannelState, opts?: CustomResourceOptions): NotificationChannel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
active: Optional[bool] = None,
destination_id: Optional[str] = None,
name: Optional[str] = None,
product: Optional[str] = None,
properties: Optional[Sequence[NotificationChannelPropertyArgs]] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> NotificationChannel
func GetNotificationChannel(ctx *Context, name string, id IDInput, state *NotificationChannelState, opts ...ResourceOption) (*NotificationChannel, error)
public static NotificationChannel Get(string name, Input<string> id, NotificationChannelState? state, CustomResourceOptions? opts = null)
public static NotificationChannel get(String name, Output<String> id, NotificationChannelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Id int Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the channel is active.
- Destination
Id string The id of the destination.
- Name string
The name of the channel.
- Product string
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- Properties
List<Pulumi.
New Relic. Inputs. Notification Channel Property Args> A nested block that describes a notification channel property. See Nested property blocks below for details.
- Status string
The status of the channel.
- Type string
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.
- Account
Id int Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the channel is active.
- Destination
Id string The id of the destination.
- Name string
The name of the channel.
- Product string
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- Properties
[]Notification
Channel Property Args A nested block that describes a notification channel property. See Nested property blocks below for details.
- Status string
The status of the channel.
- Type string
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.
- account
Id Integer Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the channel is active.
- destination
Id String The id of the destination.
- name String
The name of the channel.
- product String
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties
List<Notification
Channel Property Args> A nested block that describes a notification channel property. See Nested property blocks below for details.
- status String
The status of the channel.
- type String
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.
- account
Id number Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active boolean
Indicates whether the channel is active.
- destination
Id string The id of the destination.
- name string
The name of the channel.
- product string
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties
Notification
Channel Property Args[] A nested block that describes a notification channel property. See Nested property blocks below for details.
- status string
The status of the channel.
- type string
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.
- account_
id int Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active bool
Indicates whether the channel is active.
- destination_
id str The id of the destination.
- name str
The name of the channel.
- product str
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties
Sequence[Notification
Channel Property Args] A nested block that describes a notification channel property. See Nested property blocks below for details.
- status str
The status of the channel.
- type str
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.
- account
Id Number Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the channel is active.
- destination
Id String The id of the destination.
- name String
The name of the channel.
- product String
The type of product. One of:
DISCUSSIONS
,ERROR_TRACKING
orIINT
(workflows).- properties List<Property Map>
A nested block that describes a notification channel property. See Nested property blocks below for details.
- status String
The status of the channel.
- type String
The type of channel. One of:
EMAIL
,SERVICENOW_INCIDENTS
,WEBHOOK
,JIRA_CLASSIC
,MOBILE_PUSH
,EVENT_BRIDGE
,SLACK
andSLACK_COLLABORATION
,PAGERDUTY_ACCOUNT_INTEGRATION
orPAGERDUTY_SERVICE_INTEGRATION
.
Supporting Types
NotificationChannelProperty
- Key string
The notification property key.
- Value string
The notification property value.
- Display
Value string The notification property display value.
- Label string
The notification property label.
- Key string
The notification property key.
- Value string
The notification property value.
- Display
Value string The notification property display value.
- Label string
The notification property label.
- key String
The notification property key.
- value String
The notification property value.
- display
Value String The notification property display value.
- label String
The notification property label.
- key string
The notification property key.
- value string
The notification property value.
- display
Value string The notification property display value.
- label string
The notification property label.
- key str
The notification property key.
- value str
The notification property value.
- display_
value str The notification property display value.
- label str
The notification property label.
- key String
The notification property key.
- value String
The notification property value.
- display
Value String The notification property display value.
- label String
The notification property label.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
newrelic
Terraform Provider.