newrelic logo
New Relic v5.3.0, Jan 26 23

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:

DestinationId string

The id of the destination.

Product string

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

Properties List<Pulumi.NewRelic.Inputs.NotificationChannelPropertyArgs>

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

AccountId 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.

DestinationId string

The id of the destination.

Product string

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

Properties []NotificationChannelPropertyArgs

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

AccountId 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.

destinationId String

The id of the destination.

product String

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

properties List<NotificationChannelPropertyArgs>

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

accountId 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.

destinationId string

The id of the destination.

product string

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

properties NotificationChannelPropertyArgs[]

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

accountId 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 or IINT (workflows).

properties Sequence[NotificationChannelPropertyArgs]

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_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.

destinationId String

The id of the destination.

product String

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

accountId 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:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the channel.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the channel.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the channel.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the channel.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the channel.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the channel.

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.
The following state arguments are supported:
AccountId 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.

DestinationId string

The id of the destination.

Name string

The name of the channel.

Product string

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

Properties List<Pulumi.NewRelic.Inputs.NotificationChannelPropertyArgs>

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

AccountId 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.

DestinationId string

The id of the destination.

Name string

The name of the channel.

Product string

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

Properties []NotificationChannelPropertyArgs

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

accountId 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.

destinationId String

The id of the destination.

name String

The name of the channel.

product String

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

properties List<NotificationChannelPropertyArgs>

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

accountId 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.

destinationId string

The id of the destination.

name string

The name of the channel.

product string

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (workflows).

properties NotificationChannelPropertyArgs[]

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_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 or IINT (workflows).

properties Sequence[NotificationChannelPropertyArgs]

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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

accountId 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.

destinationId String

The id of the destination.

name String

The name of the channel.

product String

The type of product. One of: DISCUSSIONS, ERROR_TRACKING or IINT (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 and SLACK_COLLABORATION, PAGERDUTY_ACCOUNT_INTEGRATION or PAGERDUTY_SERVICE_INTEGRATION.

Supporting Types

NotificationChannelProperty

Key string

The notification property key.

Value string

The notification property value.

DisplayValue string

The notification property display value.

Label string

The notification property label.

Key string

The notification property key.

Value string

The notification property value.

DisplayValue string

The notification property display value.

Label string

The notification property label.

key String

The notification property key.

value String

The notification property value.

displayValue String

The notification property display value.

label String

The notification property label.

key string

The notification property key.

value string

The notification property value.

displayValue 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.

displayValue 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.