Skip to main content

Alert

Resource Alert in pulumi-infisical.
8 min read

Resource Alert in pulumi-infisical.

Pulumi type: infisical:index/alert:Alert.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
channels{ [key: string]: AlertChannels (input) }yesThe channels the alert is delivered to, keyed by a name of your choosing. The key is what identifies a channel to Terraform and is never sent to Infisical, so renaming a channel updates it in place and it keeps the deliveries it has already made. Changing a key, on the other hand, deletes the channel and creates a new one, so the new channel notifies about everything that is still expiring, even if the old one already did. Each channel carries exactly one configuration block, and that block is what gives the channel its type. At least one and at most 10 channels are allowed.
descriptionstringnoAn optional description of the alert.
enabledbooleannoWhether the alert is evaluated. Defaults to true.
expiryAlertExpiry (input)noFires before the watched resource expires. Only for alerts on these resource types: identity.authentication.
namestringnoThe name of the alert.
projectIdstringnoThe ID of the project the resource belongs to. Required for project level resources, and must be omitted for organization level ones.
resourceIdstringyesThe ID of the resource to watch. For the identity.authentication resource type this is a machine identity's ID.
resourceTypestringyesThe type of the resource to watch. Options: identity.authentication.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
channels{ [key: string]: AlertChannels (output) }noThe channels the alert is delivered to, keyed by a name of your choosing. The key is what identifies a channel to Terraform and is never sent to Infisical, so renaming a channel updates it in place and it keeps the deliveries it has already made. Changing a key, on the other hand, deletes the channel and creates a new one, so the new channel notifies about everything that is still expiring, even if the old one already did. Each channel carries exactly one configuration block, and that block is what gives the channel its type. At least one and at most 10 channels are allowed.
descriptionstringnoAn optional description of the alert.
enabledbooleannoWhether the alert is evaluated. Defaults to true.
expiryAlertExpiry (output)noFires before the watched resource expires. Only for alerts on these resource types: identity.authentication.
namestringnoThe name of the alert.
orgIdstringyesThe ID of the organization the alert belongs to. Always set, whether the alert is scoped to the organization or to a project, so it is what tells you which organization a project level alert was created under.
projectIdstringnoThe ID of the project the resource belongs to. Required for project level resources, and must be omitted for organization level ones.
resourceIdstringnoThe ID of the resource to watch. For the identity.authentication resource type this is a machine identity's ID.
resourceTypestringnoThe type of the resource to watch. Options: identity.authentication.

AlertChannels (input)#

Input object AlertChannels. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
emailAlertChannelsEmail (input)noNotifies principals of your organization or project by email.
enabledbooleannoWhether the channel delivers notifications. Defaults to true.
idstringnoThe ID of the channel in Infisical.
namestringyesThe name the channel is shown under in Infisical.
pagerdutyAlertChannelsPagerduty (input)noCreates PagerDuty incidents through the Events API v2.
slackAlertChannelsSlack (input)noPosts notifications to a Slack channel through an incoming webhook.
webhookAlertChannelsWebhook (input)noSends notifications to an HTTPS endpoint as a CloudEvents payload.

AlertChannelsEmail (input)#

Input object AlertChannelsEmail. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
recipientsAlertChannelsEmailRecipient (input)[]yesThe principals to notify. At least one and at most 20 are allowed.

AlertChannelsEmailRecipient (input)#

Input object AlertChannelsEmailRecipient. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
idstringyesThe ID of the recipient user or group. The principal must belong to the scope the alert is created in.
typestringyesThe type of the recipient. Options: user, group.

AlertChannelsPagerduty (input)#

Input object AlertChannelsPagerduty. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
integrationKeystringyesThe PagerDuty Events API v2 integration key incidents are created with, a 32 character hex string. Write-only: it is never returned by the API, so it cannot be imported.

AlertChannelsSlack (input)#

Input object AlertChannelsSlack. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
webhookUrlstringyesThe Slack incoming webhook URL notifications are posted to. Must be a https://hooks.slack.com URL. Write-only: it is never returned by the API, so it cannot be imported.

AlertChannelsWebhook (input)#

Input object AlertChannelsWebhook. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
signingSecretstringnoThe secret used to sign the payload so the receiver can verify it. Write-only: it is never returned by the API, so an imported channel keeps the secret it was created with until one is set here.
urlstringyesThe HTTPS URL the CloudEvents payload is sent to.

AlertExpiry (input)#

Input object AlertExpiry. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
alertBeforeDaysnumberyesHow many days before the watched resource expires the alert fires. Must be between 1 and 90.
dailyReminderbooleannoWhether to keep notifying once a day until the watched resource expires, instead of notifying once. Defaults to false.

AlertChannels (output)#

Output object AlertChannels. Fields below belong to this object.

PropertyTypeAlways presentDescription
emailAlertChannelsEmail (output)noNotifies principals of your organization or project by email.
enabledbooleanyesWhether the channel delivers notifications. Defaults to true.
idstringyesThe ID of the channel in Infisical.
namestringyesThe name the channel is shown under in Infisical.
pagerdutyAlertChannelsPagerduty (output)noCreates PagerDuty incidents through the Events API v2.
slackAlertChannelsSlack (output)noPosts notifications to a Slack channel through an incoming webhook.
webhookAlertChannelsWebhook (output)noSends notifications to an HTTPS endpoint as a CloudEvents payload.

AlertChannelsEmail (output)#

Output object AlertChannelsEmail. Fields below belong to this object.

PropertyTypeAlways presentDescription
recipientsAlertChannelsEmailRecipient (output)[]yesThe principals to notify. At least one and at most 20 are allowed.

AlertChannelsEmailRecipient (output)#

Output object AlertChannelsEmailRecipient. Fields below belong to this object.

PropertyTypeAlways presentDescription
idstringyesThe ID of the recipient user or group. The principal must belong to the scope the alert is created in.
typestringyesThe type of the recipient. Options: user, group.

AlertChannelsPagerduty (output)#

Output object AlertChannelsPagerduty. Fields below belong to this object.

PropertyTypeAlways presentDescription
integrationKeystringyesThe PagerDuty Events API v2 integration key incidents are created with, a 32 character hex string. Write-only: it is never returned by the API, so it cannot be imported.

AlertChannelsSlack (output)#

Output object AlertChannelsSlack. Fields below belong to this object.

PropertyTypeAlways presentDescription
webhookUrlstringyesThe Slack incoming webhook URL notifications are posted to. Must be a https://hooks.slack.com URL. Write-only: it is never returned by the API, so it cannot be imported.

AlertChannelsWebhook (output)#

Output object AlertChannelsWebhook. Fields below belong to this object.

PropertyTypeAlways presentDescription
signingSecretstringnoThe secret used to sign the payload so the receiver can verify it. Write-only: it is never returned by the API, so an imported channel keeps the secret it was created with until one is set here.
urlstringyesThe HTTPS URL the CloudEvents payload is sent to.

AlertExpiry (output)#

Output object AlertExpiry. Fields below belong to this object.

PropertyTypeAlways presentDescription
alertBeforeDaysnumberyesHow many days before the watched resource expires the alert fires. Must be between 1 and 90.
dailyReminderbooleanyesWhether to keep notifying once a day until the watched resource expires, instead of notifying once. Defaults to false.