newrelic.NotificationDestination
Explore with Pulumi AI
Import
~> WARNING: Slack-based destinations can only be imported and destroyed; this resource does not support creating and updating Slack-based destinations, owing to the reasons stated above, under the Slack section.
Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
This example is especially useful for slack destinations which must be imported.
- Add an empty resource to your terraform file:
terraform
resource “newrelic_notification_destination” “foo” {
}
$ pulumi import newrelic:index/notificationDestination:NotificationDestination Run import command: `newrelic_notification_destination.foo <destination_id>`
Run the following command after the import successfully done and copy the information to your resource:
terraform state show newrelic_notification_destination.foo
Add
ignore_changes
attribute onall
in your imported resource:
terraform
lifecycle {
ignore_changes = all
}
Your imported destination should look like that:
terraform
resource “newrelic_notification_destination” “foo” {
lifecycle {
ignore_changes = all
}
name = “*********”
type = “SLACK”
auth_token {
prefix = "Bearer"
}
property {
key = "teamName"
label = "Team Name"
value = "******"
}
}
Create NotificationDestination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotificationDestination(name: string, args: NotificationDestinationArgs, opts?: CustomResourceOptions);
@overload
def NotificationDestination(resource_name: str,
args: NotificationDestinationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotificationDestination(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[Sequence[NotificationDestinationPropertyArgs]] = None,
type: Optional[str] = None,
account_id: Optional[str] = None,
active: Optional[bool] = None,
auth_basic: Optional[NotificationDestinationAuthBasicArgs] = None,
auth_custom_headers: Optional[Sequence[NotificationDestinationAuthCustomHeaderArgs]] = None,
auth_token: Optional[NotificationDestinationAuthTokenArgs] = None,
name: Optional[str] = None,
secure_url: Optional[NotificationDestinationSecureUrlArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var notificationDestinationResource = new NewRelic.NotificationDestination("notificationDestinationResource", new()
{
Properties = new[]
{
new NewRelic.Inputs.NotificationDestinationPropertyArgs
{
Key = "string",
Value = "string",
DisplayValue = "string",
Label = "string",
},
},
Type = "string",
AccountId = "string",
Active = false,
AuthBasic = new NewRelic.Inputs.NotificationDestinationAuthBasicArgs
{
Password = "string",
User = "string",
},
AuthCustomHeaders = new[]
{
new NewRelic.Inputs.NotificationDestinationAuthCustomHeaderArgs
{
Key = "string",
Value = "string",
},
},
AuthToken = new NewRelic.Inputs.NotificationDestinationAuthTokenArgs
{
Token = "string",
Prefix = "string",
},
Name = "string",
SecureUrl = new NewRelic.Inputs.NotificationDestinationSecureUrlArgs
{
Prefix = "string",
SecureSuffix = "string",
},
});
example, err := newrelic.NewNotificationDestination(ctx, "notificationDestinationResource", &newrelic.NotificationDestinationArgs{
Properties: newrelic.NotificationDestinationPropertyArray{
&newrelic.NotificationDestinationPropertyArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
DisplayValue: pulumi.String("string"),
Label: pulumi.String("string"),
},
},
Type: pulumi.String("string"),
AccountId: pulumi.String("string"),
Active: pulumi.Bool(false),
AuthBasic: &newrelic.NotificationDestinationAuthBasicArgs{
Password: pulumi.String("string"),
User: pulumi.String("string"),
},
AuthCustomHeaders: newrelic.NotificationDestinationAuthCustomHeaderArray{
&newrelic.NotificationDestinationAuthCustomHeaderArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
AuthToken: &newrelic.NotificationDestinationAuthTokenArgs{
Token: pulumi.String("string"),
Prefix: pulumi.String("string"),
},
Name: pulumi.String("string"),
SecureUrl: &newrelic.NotificationDestinationSecureUrlArgs{
Prefix: pulumi.String("string"),
SecureSuffix: pulumi.String("string"),
},
})
var notificationDestinationResource = new NotificationDestination("notificationDestinationResource", NotificationDestinationArgs.builder()
.properties(NotificationDestinationPropertyArgs.builder()
.key("string")
.value("string")
.displayValue("string")
.label("string")
.build())
.type("string")
.accountId("string")
.active(false)
.authBasic(NotificationDestinationAuthBasicArgs.builder()
.password("string")
.user("string")
.build())
.authCustomHeaders(NotificationDestinationAuthCustomHeaderArgs.builder()
.key("string")
.value("string")
.build())
.authToken(NotificationDestinationAuthTokenArgs.builder()
.token("string")
.prefix("string")
.build())
.name("string")
.secureUrl(NotificationDestinationSecureUrlArgs.builder()
.prefix("string")
.secureSuffix("string")
.build())
.build());
notification_destination_resource = newrelic.NotificationDestination("notificationDestinationResource",
properties=[newrelic.NotificationDestinationPropertyArgs(
key="string",
value="string",
display_value="string",
label="string",
)],
type="string",
account_id="string",
active=False,
auth_basic=newrelic.NotificationDestinationAuthBasicArgs(
password="string",
user="string",
),
auth_custom_headers=[newrelic.NotificationDestinationAuthCustomHeaderArgs(
key="string",
value="string",
)],
auth_token=newrelic.NotificationDestinationAuthTokenArgs(
token="string",
prefix="string",
),
name="string",
secure_url=newrelic.NotificationDestinationSecureUrlArgs(
prefix="string",
secure_suffix="string",
))
const notificationDestinationResource = new newrelic.NotificationDestination("notificationDestinationResource", {
properties: [{
key: "string",
value: "string",
displayValue: "string",
label: "string",
}],
type: "string",
accountId: "string",
active: false,
authBasic: {
password: "string",
user: "string",
},
authCustomHeaders: [{
key: "string",
value: "string",
}],
authToken: {
token: "string",
prefix: "string",
},
name: "string",
secureUrl: {
prefix: "string",
secureSuffix: "string",
},
});
type: newrelic:NotificationDestination
properties:
accountId: string
active: false
authBasic:
password: string
user: string
authCustomHeaders:
- key: string
value: string
authToken:
prefix: string
token: string
name: string
properties:
- displayValue: string
key: string
label: string
value: string
secureUrl:
prefix: string
secureSuffix: string
type: string
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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- Account
Id string - 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
Custom List<Pulumi.Headers New Relic. Inputs. Notification Destination Auth Custom Header> - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- Secure
Url Pulumi.New Relic. Inputs. Notification Destination Secure Url - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
- 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- Account
Id string - 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
Custom []NotificationHeaders Destination Auth Custom Header Args - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- Secure
Url NotificationDestination Secure Url Args - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
- 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id String - 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
Custom List<NotificationHeaders Destination Auth Custom Header> - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- secure
Url NotificationDestination Secure Url - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
- 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id string - 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
Custom NotificationHeaders Destination Auth Custom Header[] - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- secure
Url NotificationDestination Secure Url - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
- 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account_
id str - 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_
custom_ Sequence[Notificationheaders Destination Auth Custom Header Args] - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- secure_
url NotificationDestination Secure Url Args - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
- 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id String - 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
Custom List<Property Map>Headers - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- secure
Url Property Map - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
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[str] = None,
active: Optional[bool] = None,
auth_basic: Optional[NotificationDestinationAuthBasicArgs] = None,
auth_custom_headers: Optional[Sequence[NotificationDestinationAuthCustomHeaderArgs]] = None,
auth_token: Optional[NotificationDestinationAuthTokenArgs] = None,
guid: Optional[str] = None,
last_sent: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[Sequence[NotificationDestinationPropertyArgs]] = None,
secure_url: Optional[NotificationDestinationSecureUrlArgs] = 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 string - 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
Custom List<Pulumi.Headers New Relic. Inputs. Notification Destination Auth Custom Header> - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- Guid string
- The unique entity identifier of the destination in New Relic.
- 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.
- Secure
Url Pulumi.New Relic. Inputs. Notification Destination Secure Url - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- Account
Id string - 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
Custom []NotificationHeaders Destination Auth Custom Header Args - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- Guid string
- The unique entity identifier of the destination in New Relic.
- 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.
- Secure
Url NotificationDestination Secure Url Args - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id String - 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
Custom List<NotificationHeaders Destination Auth Custom Header> - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- guid String
- The unique entity identifier of the destination in New Relic.
- 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.
- secure
Url NotificationDestination Secure Url - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id string - 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
Custom NotificationHeaders Destination Auth Custom Header[] - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- guid string
- The unique entity identifier of the destination in New Relic.
- 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.
- secure
Url NotificationDestination Secure Url - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account_
id str - 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_
custom_ Sequence[Notificationheaders Destination Auth Custom Header Args] - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- guid str
- The unique entity identifier of the destination in New Relic.
- 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.
- secure_
url NotificationDestination Secure Url Args - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
- account
Id String - 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
Custom List<Property Map>Headers - A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header 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.
- guid String
- The unique entity identifier of the destination in New Relic.
- 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.
- secure
Url Property Map - A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url 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, SERVICE_NOW_APP, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
Supporting Types
NotificationDestinationAuthBasic, NotificationDestinationAuthBasicArgs
NotificationDestinationAuthCustomHeader, NotificationDestinationAuthCustomHeaderArgs
NotificationDestinationAuthToken, NotificationDestinationAuthTokenArgs
NotificationDestinationProperty, NotificationDestinationPropertyArgs
- Key string
- Notification property key.
- Value string
- Notification property value.
- Display
Value string - Notification property display key.
- Label string
- Notification property label.
- Key string
- Notification property key.
- Value string
- Notification property value.
- Display
Value string - Notification property display key.
- Label string
- Notification property label.
- key String
- Notification property key.
- value String
- Notification property value.
- display
Value String - Notification property display key.
- label String
- Notification property label.
- key string
- Notification property key.
- value string
- Notification property value.
- display
Value string - Notification property display key.
- label string
- Notification property label.
- key str
- Notification property key.
- value str
- Notification property value.
- display_
value str - Notification property display key.
- label str
- Notification property label.
- key String
- Notification property key.
- value String
- Notification property value.
- display
Value String - Notification property display key.
- label String
- Notification property label.
NotificationDestinationSecureUrl, NotificationDestinationSecureUrlArgs
- Prefix string
- The prefix of the URL.
- Secure
Suffix string - The suffix of the URL, which contains sensitive data.
- Prefix string
- The prefix of the URL.
- Secure
Suffix string - The suffix of the URL, which contains sensitive data.
- prefix String
- The prefix of the URL.
- secure
Suffix String - The suffix of the URL, which contains sensitive data.
- prefix string
- The prefix of the URL.
- secure
Suffix string - The suffix of the URL, which contains sensitive data.
- prefix str
- The prefix of the URL.
- secure_
suffix str - The suffix of the URL, which contains sensitive data.
- prefix String
- The prefix of the URL.
- secure
Suffix String - The suffix of the URL, which contains sensitive data.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.