newrelic.NotificationDestination
Explore with Pulumi AI
Create NotificationDestination Resource
new NotificationDestination(name: string, args: NotificationDestinationArgs, opts?: CustomResourceOptions);
@overload
def NotificationDestination(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
active: Optional[bool] = None,
auth_basic: Optional[NotificationDestinationAuthBasicArgs] = None,
auth_token: Optional[NotificationDestinationAuthTokenArgs] = None,
name: Optional[str] = None,
properties: Optional[Sequence[NotificationDestinationPropertyArgs]] = None,
type: Optional[str] = None)
@overload
def NotificationDestination(resource_name: str,
args: NotificationDestinationArgs,
opts: Optional[ResourceOptions] = None)
func NewNotificationDestination(ctx *Context, name string, args NotificationDestinationArgs, opts ...ResourceOption) (*NotificationDestination, error)
public NotificationDestination(string name, NotificationDestinationArgs args, CustomResourceOptions? opts = null)
public NotificationDestination(String name, NotificationDestinationArgs args)
public NotificationDestination(String name, NotificationDestinationArgs args, CustomResourceOptions options)
type: newrelic:NotificationDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationDestinationArgs
- 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 NotificationDestinationArgs
- 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 NotificationDestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationDestinationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
NotificationDestination 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 NotificationDestination resource accepts the following input properties:
- Properties
List<Pulumi.
New Relic. Inputs. Notification Destination Property> A nested block that describes a notification destination property. See Nested property blocks below for details.
- Type string
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- Account
Id int Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the destination is active.
- Auth
Basic Pulumi.New Relic. Inputs. Notification Destination Auth Basic A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- Auth
Token Pulumi.New Relic. Inputs. Notification Destination Auth Token A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- Name string
The name of the destination.
- Properties
[]Notification
Destination Property Args A nested block that describes a notification destination property. See Nested property blocks below for details.
- Type string
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- Account
Id int Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the destination is active.
- Auth
Basic NotificationDestination Auth Basic Args A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- Auth
Token NotificationDestination Auth Token Args A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- Name string
The name of the destination.
- properties
List<Notification
Destination Property> A nested block that describes a notification destination property. See Nested property blocks below for details.
- type String
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id Integer Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the destination is active.
- auth
Basic NotificationDestination Auth Basic A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth
Token NotificationDestination Auth Token A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- name String
The name of the destination.
- properties
Notification
Destination Property[] A nested block that describes a notification destination property. See Nested property blocks below for details.
- type string
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id number Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active boolean
Indicates whether the destination is active.
- auth
Basic NotificationDestination Auth Basic A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth
Token NotificationDestination Auth Token A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- name string
The name of the destination.
- properties
Sequence[Notification
Destination Property Args] A nested block that describes a notification destination property. See Nested property blocks below for details.
- type str
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account_
id int Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active bool
Indicates whether the destination is active.
- auth_
basic NotificationDestination Auth Basic Args A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth_
token NotificationDestination Auth Token Args A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- name str
The name of the destination.
- properties List<Property Map>
A nested block that describes a notification destination property. See Nested property blocks below for details.
- type String
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id Number Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the destination is active.
- auth
Basic Property Map A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth
Token Property Map A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- name String
The name of the destination.
Outputs
All input properties are implicitly available as output properties. Additionally, the NotificationDestination resource produces the following output properties:
Look up Existing NotificationDestination Resource
Get an existing NotificationDestination 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?: NotificationDestinationState, opts?: CustomResourceOptions): NotificationDestination
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
active: Optional[bool] = None,
auth_basic: Optional[NotificationDestinationAuthBasicArgs] = None,
auth_token: Optional[NotificationDestinationAuthTokenArgs] = None,
last_sent: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[Sequence[NotificationDestinationPropertyArgs]] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> NotificationDestination
func GetNotificationDestination(ctx *Context, name string, id IDInput, state *NotificationDestinationState, opts ...ResourceOption) (*NotificationDestination, error)
public static NotificationDestination Get(string name, Input<string> id, NotificationDestinationState? state, CustomResourceOptions? opts = null)
public static NotificationDestination get(String name, Output<String> id, NotificationDestinationState 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 destination will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the destination is active.
- Auth
Basic Pulumi.New Relic. Inputs. Notification Destination Auth Basic A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- Auth
Token Pulumi.New Relic. Inputs. Notification Destination Auth Token A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- Last
Sent string The last time a notification was sent.
- Name string
The name of the destination.
- Properties
List<Pulumi.
New Relic. Inputs. Notification Destination Property> A nested block that describes a notification destination property. See Nested property blocks below for details.
- Status string
The status of the destination.
- Type string
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- Account
Id int Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- Active bool
Indicates whether the destination is active.
- Auth
Basic NotificationDestination Auth Basic Args A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- Auth
Token NotificationDestination Auth Token Args A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- Last
Sent string The last time a notification was sent.
- Name string
The name of the destination.
- Properties
[]Notification
Destination Property Args A nested block that describes a notification destination property. See Nested property blocks below for details.
- Status string
The status of the destination.
- Type string
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id Integer Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the destination is active.
- auth
Basic NotificationDestination Auth Basic A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth
Token NotificationDestination Auth Token A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- last
Sent String The last time a notification was sent.
- name String
The name of the destination.
- properties
List<Notification
Destination Property> A nested block that describes a notification destination property. See Nested property blocks below for details.
- status String
The status of the destination.
- type String
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id number Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active boolean
Indicates whether the destination is active.
- auth
Basic NotificationDestination Auth Basic A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth
Token NotificationDestination Auth Token A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- last
Sent string The last time a notification was sent.
- name string
The name of the destination.
- properties
Notification
Destination Property[] A nested block that describes a notification destination property. See Nested property blocks below for details.
- status string
The status of the destination.
- type string
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account_
id int Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active bool
Indicates whether the destination is active.
- auth_
basic NotificationDestination Auth Basic Args A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth_
token NotificationDestination Auth Token Args A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- last_
sent str The last time a notification was sent.
- name str
The name of the destination.
- properties
Sequence[Notification
Destination Property Args] A nested block that describes a notification destination property. See Nested property blocks below for details.
- status str
The status of the destination.
- type str
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id Number Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
- active Boolean
Indicates whether the destination is active.
- auth
Basic Property Map A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
- auth
Token Property Map A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
- last
Sent String The last time a notification was sent.
- name String
The name of the destination.
- properties List<Property Map>
A nested block that describes a notification destination property. See Nested property blocks below for details.
- status String
The status of the destination.
- type String
(Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
Supporting Types
NotificationDestinationAuthBasic, NotificationDestinationAuthBasicArgs
NotificationDestinationAuthToken, NotificationDestinationAuthTokenArgs
NotificationDestinationProperty, NotificationDestinationPropertyArgs
- Key string
The notification property key.
- Value string
The notification property value.
- Display
Value string The notification property display value.
Each notification destination type supports a specific set of arguments for the
property
block. See Additional Examples below for details:- 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.
Each notification destination type supports a specific set of arguments for the
property
block. See Additional Examples below for details:- 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.
Each notification destination type supports a specific set of arguments for the
property
block. See Additional Examples below for details:- 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.
Each notification destination type supports a specific set of arguments for the
property
block. See Additional Examples below for details:- 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.
Each notification destination type supports a specific set of arguments for the
property
block. See Additional Examples below for details:- 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.
Each notification destination type supports a specific set of arguments for the
property
block. See Additional Examples below for details:- 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.