Represents a {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel newrelic_alert_channel}.
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannel(
scope: Construct,
id: str,
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection] = None,
count: typing.Union[int, float] = None,
depends_on: typing.List[ITerraformDependable] = None,
for_each: ITerraformIterator = None,
lifecycle: TerraformResourceLifecycle = None,
provider: TerraformProvider = None,
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]] = None,
name: str,
type: str,
account_id: typing.Union[int, float] = None,
config: AlertChannelConfigA = None,
id: str = None
)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
The scope in which to define this construct. |
id |
str |
The scoped construct ID. |
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[int, float] |
No description. |
depends_on |
typing.List[cdktf.ITerraformDependable] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
name |
str |
(Required) The name of the channel. |
type |
str |
(Required) The type of channel. One of: (webhook, email, opsgenie, pagerduty, slack, user, victorops). |
account_id |
typing.Union[int, float] |
The New Relic account ID where you want to create alert channels. |
config |
AlertChannelConfigA |
config block. |
id |
str |
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#id AlertChannel#id}. |
- Type: constructs.Construct
The scope in which to define this construct.
- Type: str
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
- Type: typing.Union[int, float]
- Type: typing.List[cdktf.ITerraformDependable]
- Type: cdktf.ITerraformIterator
- Type: cdktf.TerraformResourceLifecycle
- Type: cdktf.TerraformProvider
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
- Type: str
(Required) The name of the channel.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#name AlertChannel#name}
- Type: str
(Required) The type of channel. One of: (webhook, email, opsgenie, pagerduty, slack, user, victorops).
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#type AlertChannel#type}
- Type: typing.Union[int, float]
The New Relic account ID where you want to create alert channels.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#account_id AlertChannel#account_id}
- Type: AlertChannelConfigA
config block.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#config AlertChannel#config}
- Type: str
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#id AlertChannel#id}.
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
add_override |
No description. |
override_logical_id |
Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id |
Resets a previously passed logical Id to use the auto-generated logical id again. |
to_metadata |
No description. |
to_terraform |
Adds this resource to the terraform JSON output. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
put_config |
No description. |
reset_account_id |
No description. |
reset_config |
No description. |
reset_id |
No description. |
def to_string() -> str
Returns a string representation of this construct.
def add_override(
path: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
def override_logical_id(
new_logical_id: str
) -> None
Overrides the auto-generated logical ID with a specific ID.
- Type: str
The new logical ID to use for this stack element.
def reset_override_logical_id() -> None
Resets a previously passed logical Id to use the auto-generated logical id again.
def to_metadata() -> typing.Any
def to_terraform() -> typing.Any
Adds this resource to the terraform JSON output.
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def put_config(
api_key: str = None,
auth_password: str = None,
auth_type: str = None,
auth_username: str = None,
base_url: str = None,
channel: str = None,
headers: typing.Mapping[str] = None,
headers_string: str = None,
include_json_attachment: str = None,
key: str = None,
payload: typing.Mapping[str] = None,
payload_string: str = None,
payload_type: str = None,
recipients: str = None,
region: str = None,
route_key: str = None,
service_key: str = None,
tags: str = None,
teams: str = None,
url: str = None,
user_id: str = None
) -> None
- Type: str
The API key for integrating with OpsGenie.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#api_key AlertChannel#api_key}
- Type: str
Specifies an authentication password for use with a channel. Supported by the webhook channel type.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#auth_password AlertChannel#auth_password}
- Type: str
Specifies an authentication method for use with a channel.
Supported by the webhook channel type. Only HTTP basic authentication is currently supported via the value BASIC.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#auth_type AlertChannel#auth_type}
- Type: str
Specifies an authentication username for use with a channel. Supported by the webhook channel type.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#auth_username AlertChannel#auth_username}
- Type: str
The base URL of the webhook destination.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#base_url AlertChannel#base_url}
- Type: str
The Slack channel to send notifications to.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#channel AlertChannel#channel}
- Type: typing.Mapping[str]
A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#headers AlertChannel#headers}
- Type: str
Use instead of headers if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with headers.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#headers_string AlertChannel#headers_string}
- Type: str
true or false.
Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#include_json_attachment AlertChannel#include_json_attachment}
- Type: str
The key for integrating with VictorOps.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#key AlertChannel#key}
- Type: typing.Mapping[str]
A map of key/value pairs that represents the webhook payload. Must provide payload_type if setting this argument.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#payload AlertChannel#payload}
- Type: str
Use instead of payload if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with payload.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#payload_string AlertChannel#payload_string}
- Type: str
Can either be application/json or application/x-www-form-urlencoded. The payload_type argument is required if payload is set.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#payload_type AlertChannel#payload_type}
- Type: str
A set of recipients for targeting notifications. Multiple values are comma separated.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#recipients AlertChannel#recipients}
- Type: str
The data center region to store your data. Valid values are US and EU. Default is US.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#region AlertChannel#region}
- Type: str
The route key for integrating with VictorOps.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#route_key AlertChannel#route_key}
- Type: str
Specifies the service key for integrating with Pagerduty.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#service_key AlertChannel#service_key}
- Type: str
A set of tags for targeting notifications. Multiple values are comma separated.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#tags AlertChannel#tags}
- Type: str
A set of teams for targeting notifications. Multiple values are comma separated.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#teams AlertChannel#teams}
- Type: str
Your organization's Slack URL.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#url AlertChannel#url}
- Type: str
The user ID for use with the user channel type.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#user_id AlertChannel#user_id}
def reset_account_id() -> None
def reset_config() -> None
def reset_id() -> None
Name | Description |
---|---|
is_construct |
Checks if x is a construct. |
is_terraform_element |
No description. |
is_terraform_resource |
No description. |
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannel.is_construct(
x: typing.Any
)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: typing.Any
Any object.
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannel.is_terraform_element(
x: typing.Any
)
- Type: typing.Any
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannel.is_terraform_resource(
x: typing.Any
)
- Type: typing.Any
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktf_stack |
cdktf.TerraformStack |
No description. |
fqn |
str |
No description. |
friendly_unique_id |
str |
No description. |
terraform_meta_arguments |
typing.Mapping[typing.Any] |
No description. |
terraform_resource_type |
str |
No description. |
terraform_generator_metadata |
cdktf.TerraformProviderGeneratorMetadata |
No description. |
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[int, float] |
No description. |
depends_on |
typing.List[str] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
config |
AlertChannelConfigAOutputReference |
No description. |
account_id_input |
typing.Union[int, float] |
No description. |
config_input |
AlertChannelConfigA |
No description. |
id_input |
str |
No description. |
name_input |
str |
No description. |
type_input |
str |
No description. |
account_id |
typing.Union[int, float] |
No description. |
id |
str |
No description. |
name |
str |
No description. |
type |
str |
No description. |
node: Node
- Type: constructs.Node
The tree node.
cdktf_stack: TerraformStack
- Type: cdktf.TerraformStack
fqn: str
- Type: str
friendly_unique_id: str
- Type: str
terraform_meta_arguments: typing.Mapping[typing.Any]
- Type: typing.Mapping[typing.Any]
terraform_resource_type: str
- Type: str
terraform_generator_metadata: TerraformProviderGeneratorMetadata
- Type: cdktf.TerraformProviderGeneratorMetadata
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
count: typing.Union[int, float]
- Type: typing.Union[int, float]
depends_on: typing.List[str]
- Type: typing.List[str]
for_each: ITerraformIterator
- Type: cdktf.ITerraformIterator
lifecycle: TerraformResourceLifecycle
- Type: cdktf.TerraformResourceLifecycle
provider: TerraformProvider
- Type: cdktf.TerraformProvider
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
config: AlertChannelConfigAOutputReference
account_id_input: typing.Union[int, float]
- Type: typing.Union[int, float]
config_input: AlertChannelConfigA
- Type: AlertChannelConfigA
id_input: str
- Type: str
name_input: str
- Type: str
type_input: str
- Type: str
account_id: typing.Union[int, float]
- Type: typing.Union[int, float]
id: str
- Type: str
name: str
- Type: str
type: str
- Type: str
Name | Type | Description |
---|---|---|
tfResourceType |
str |
No description. |
tfResourceType: str
- Type: str
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannelConfig(
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection] = None,
count: typing.Union[int, float] = None,
depends_on: typing.List[ITerraformDependable] = None,
for_each: ITerraformIterator = None,
lifecycle: TerraformResourceLifecycle = None,
provider: TerraformProvider = None,
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]] = None,
name: str,
type: str,
account_id: typing.Union[int, float] = None,
config: AlertChannelConfigA = None,
id: str = None
)
Name | Type | Description |
---|---|---|
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[int, float] |
No description. |
depends_on |
typing.List[cdktf.ITerraformDependable] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
name |
str |
(Required) The name of the channel. |
type |
str |
(Required) The type of channel. One of: (webhook, email, opsgenie, pagerduty, slack, user, victorops). |
account_id |
typing.Union[int, float] |
The New Relic account ID where you want to create alert channels. |
config |
AlertChannelConfigA |
config block. |
id |
str |
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#id AlertChannel#id}. |
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
count: typing.Union[int, float]
- Type: typing.Union[int, float]
depends_on: typing.List[ITerraformDependable]
- Type: typing.List[cdktf.ITerraformDependable]
for_each: ITerraformIterator
- Type: cdktf.ITerraformIterator
lifecycle: TerraformResourceLifecycle
- Type: cdktf.TerraformResourceLifecycle
provider: TerraformProvider
- Type: cdktf.TerraformProvider
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
name: str
- Type: str
(Required) The name of the channel.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#name AlertChannel#name}
type: str
- Type: str
(Required) The type of channel. One of: (webhook, email, opsgenie, pagerduty, slack, user, victorops).
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#type AlertChannel#type}
account_id: typing.Union[int, float]
- Type: typing.Union[int, float]
The New Relic account ID where you want to create alert channels.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#account_id AlertChannel#account_id}
config: AlertChannelConfigA
- Type: AlertChannelConfigA
config block.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#config AlertChannel#config}
id: str
- Type: str
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#id AlertChannel#id}.
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannelConfigA(
api_key: str = None,
auth_password: str = None,
auth_type: str = None,
auth_username: str = None,
base_url: str = None,
channel: str = None,
headers: typing.Mapping[str] = None,
headers_string: str = None,
include_json_attachment: str = None,
key: str = None,
payload: typing.Mapping[str] = None,
payload_string: str = None,
payload_type: str = None,
recipients: str = None,
region: str = None,
route_key: str = None,
service_key: str = None,
tags: str = None,
teams: str = None,
url: str = None,
user_id: str = None
)
Name | Type | Description |
---|---|---|
api_key |
str |
The API key for integrating with OpsGenie. |
auth_password |
str |
Specifies an authentication password for use with a channel. Supported by the webhook channel type. |
auth_type |
str |
Specifies an authentication method for use with a channel. |
auth_username |
str |
Specifies an authentication username for use with a channel. Supported by the webhook channel type. |
base_url |
str |
The base URL of the webhook destination. |
channel |
str |
The Slack channel to send notifications to. |
headers |
typing.Mapping[str] |
A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload. |
headers_string |
str |
Use instead of headers if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with headers. |
include_json_attachment |
str |
true or false. |
key |
str |
The key for integrating with VictorOps. |
payload |
typing.Mapping[str] |
A map of key/value pairs that represents the webhook payload. Must provide payload_type if setting this argument. |
payload_string |
str |
Use instead of payload if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with payload. |
payload_type |
str |
Can either be application/json or application/x-www-form-urlencoded. The payload_type argument is required if payload is set. |
recipients |
str |
A set of recipients for targeting notifications. Multiple values are comma separated. |
region |
str |
The data center region to store your data. Valid values are US and EU. Default is US. |
route_key |
str |
The route key for integrating with VictorOps. |
service_key |
str |
Specifies the service key for integrating with Pagerduty. |
tags |
str |
A set of tags for targeting notifications. Multiple values are comma separated. |
teams |
str |
A set of teams for targeting notifications. Multiple values are comma separated. |
url |
str |
Your organization's Slack URL. |
user_id |
str |
The user ID for use with the user channel type. |
api_key: str
- Type: str
The API key for integrating with OpsGenie.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#api_key AlertChannel#api_key}
auth_password: str
- Type: str
Specifies an authentication password for use with a channel. Supported by the webhook channel type.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#auth_password AlertChannel#auth_password}
auth_type: str
- Type: str
Specifies an authentication method for use with a channel.
Supported by the webhook channel type. Only HTTP basic authentication is currently supported via the value BASIC.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#auth_type AlertChannel#auth_type}
auth_username: str
- Type: str
Specifies an authentication username for use with a channel. Supported by the webhook channel type.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#auth_username AlertChannel#auth_username}
base_url: str
- Type: str
The base URL of the webhook destination.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#base_url AlertChannel#base_url}
channel: str
- Type: str
The Slack channel to send notifications to.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#channel AlertChannel#channel}
headers: typing.Mapping[str]
- Type: typing.Mapping[str]
A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#headers AlertChannel#headers}
headers_string: str
- Type: str
Use instead of headers if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with headers.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#headers_string AlertChannel#headers_string}
include_json_attachment: str
- Type: str
true or false.
Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#include_json_attachment AlertChannel#include_json_attachment}
key: str
- Type: str
The key for integrating with VictorOps.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#key AlertChannel#key}
payload: typing.Mapping[str]
- Type: typing.Mapping[str]
A map of key/value pairs that represents the webhook payload. Must provide payload_type if setting this argument.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#payload AlertChannel#payload}
payload_string: str
- Type: str
Use instead of payload if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with payload.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#payload_string AlertChannel#payload_string}
payload_type: str
- Type: str
Can either be application/json or application/x-www-form-urlencoded. The payload_type argument is required if payload is set.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#payload_type AlertChannel#payload_type}
recipients: str
- Type: str
A set of recipients for targeting notifications. Multiple values are comma separated.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#recipients AlertChannel#recipients}
region: str
- Type: str
The data center region to store your data. Valid values are US and EU. Default is US.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#region AlertChannel#region}
route_key: str
- Type: str
The route key for integrating with VictorOps.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#route_key AlertChannel#route_key}
service_key: str
- Type: str
Specifies the service key for integrating with Pagerduty.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#service_key AlertChannel#service_key}
tags: str
- Type: str
A set of tags for targeting notifications. Multiple values are comma separated.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#tags AlertChannel#tags}
teams: str
- Type: str
A set of teams for targeting notifications. Multiple values are comma separated.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#teams AlertChannel#teams}
url: str
- Type: str
Your organization's Slack URL.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#url AlertChannel#url}
user_id: str
- Type: str
The user ID for use with the user channel type.
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/newrelic/r/alert_channel#user_id AlertChannel#user_id}
from cdktf_cdktf_provider_newrelic import alert_channel
alertChannel.AlertChannelConfigAOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_api_key |
No description. |
reset_auth_password |
No description. |
reset_auth_type |
No description. |
reset_auth_username |
No description. |
reset_base_url |
No description. |
reset_channel |
No description. |
reset_headers |
No description. |
reset_headers_string |
No description. |
reset_include_json_attachment |
No description. |
reset_key |
No description. |
reset_payload |
No description. |
reset_payload_string |
No description. |
reset_payload_type |
No description. |
reset_recipients |
No description. |
reset_region |
No description. |
reset_route_key |
No description. |
reset_service_key |
No description. |
reset_tags |
No description. |
reset_teams |
No description. |
reset_url |
No description. |
reset_user_id |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_api_key() -> None
def reset_auth_password() -> None
def reset_auth_type() -> None
def reset_auth_username() -> None
def reset_base_url() -> None
def reset_channel() -> None
def reset_headers() -> None
def reset_headers_string() -> None
def reset_include_json_attachment() -> None
def reset_key() -> None
def reset_payload() -> None
def reset_payload_string() -> None
def reset_payload_type() -> None
def reset_recipients() -> None
def reset_region() -> None
def reset_route_key() -> None
def reset_service_key() -> None
def reset_tags() -> None
def reset_teams() -> None
def reset_url() -> None
def reset_user_id() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
api_key_input |
str |
No description. |
auth_password_input |
str |
No description. |
auth_type_input |
str |
No description. |
auth_username_input |
str |
No description. |
base_url_input |
str |
No description. |
channel_input |
str |
No description. |
headers_input |
typing.Mapping[str] |
No description. |
headers_string_input |
str |
No description. |
include_json_attachment_input |
str |
No description. |
key_input |
str |
No description. |
payload_input |
typing.Mapping[str] |
No description. |
payload_string_input |
str |
No description. |
payload_type_input |
str |
No description. |
recipients_input |
str |
No description. |
region_input |
str |
No description. |
route_key_input |
str |
No description. |
service_key_input |
str |
No description. |
tags_input |
str |
No description. |
teams_input |
str |
No description. |
url_input |
str |
No description. |
user_id_input |
str |
No description. |
api_key |
str |
No description. |
auth_password |
str |
No description. |
auth_type |
str |
No description. |
auth_username |
str |
No description. |
base_url |
str |
No description. |
channel |
str |
No description. |
headers |
typing.Mapping[str] |
No description. |
headers_string |
str |
No description. |
include_json_attachment |
str |
No description. |
key |
str |
No description. |
payload |
typing.Mapping[str] |
No description. |
payload_string |
str |
No description. |
payload_type |
str |
No description. |
recipients |
str |
No description. |
region |
str |
No description. |
route_key |
str |
No description. |
service_key |
str |
No description. |
tags |
str |
No description. |
teams |
str |
No description. |
url |
str |
No description. |
user_id |
str |
No description. |
internal_value |
AlertChannelConfigA |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
api_key_input: str
- Type: str
auth_password_input: str
- Type: str
auth_type_input: str
- Type: str
auth_username_input: str
- Type: str
base_url_input: str
- Type: str
channel_input: str
- Type: str
headers_input: typing.Mapping[str]
- Type: typing.Mapping[str]
headers_string_input: str
- Type: str
include_json_attachment_input: str
- Type: str
key_input: str
- Type: str
payload_input: typing.Mapping[str]
- Type: typing.Mapping[str]
payload_string_input: str
- Type: str
payload_type_input: str
- Type: str
recipients_input: str
- Type: str
region_input: str
- Type: str
route_key_input: str
- Type: str
service_key_input: str
- Type: str
tags_input: str
- Type: str
teams_input: str
- Type: str
url_input: str
- Type: str
user_id_input: str
- Type: str
api_key: str
- Type: str
auth_password: str
- Type: str
auth_type: str
- Type: str
auth_username: str
- Type: str
base_url: str
- Type: str
channel: str
- Type: str
headers: typing.Mapping[str]
- Type: typing.Mapping[str]
headers_string: str
- Type: str
include_json_attachment: str
- Type: str
key: str
- Type: str
payload: typing.Mapping[str]
- Type: typing.Mapping[str]
payload_string: str
- Type: str
payload_type: str
- Type: str
recipients: str
- Type: str
region: str
- Type: str
route_key: str
- Type: str
service_key: str
- Type: str
tags: str
- Type: str
teams: str
- Type: str
url: str
- Type: str
user_id: str
- Type: str
internal_value: AlertChannelConfigA
- Type: AlertChannelConfigA