AWS CodeStar Notifications Notifications Notification Rule

This page shows how to write Terraform and CloudFormation for AWS CodeStar Notifications Notifications Notification Rule and write them securely.

aws_codestarnotifications_notification_rule (Terraform)

The Notifications Notification Rule in AWS CodeStar Notifications can be configured in Terraform with the resource name aws_codestarnotifications_notification_rule. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconEqualsGroup/bulk-email-node
resource "aws_codestarnotifications_notification_rule" "pipeline" {
  detail_type = "FULL"
  event_type_ids = [
    "codepipeline-pipeline-manual-approval-needed",
    "codepipeline-pipeline-action-execution-failed",
    # "codepipeline-pipeline-manual-approval-succeeded",
github-iconKazuyaMiyagi/terraform-aws-rocket-chat-notifier
resource "aws_codestarnotifications_notification_rule" "codepipeline" {
  detail_type = "BASIC"

  event_type_ids = [
    "codepipeline-pipeline-action-execution-succeeded",
    "codepipeline-pipeline-action-execution-failed",
github-iconwand2016/twitter-counter-api-generator-deploy-pipeline
resource "aws_codestarnotifications_notification_rule" "commits" {
  detail_type = "FULL"
  event_type_ids = [
    "codepipeline-pipeline-pipeline-execution-failed",
    "codepipeline-pipeline-pipeline-execution-canceled",
    "codepipeline-pipeline-pipeline-execution-started",

Parameters

Explanation in Terraform Registry

Provides a CodeStar Notifications Rule.

AWS::CodeStarNotifications::NotificationRule (CloudFormation)

The NotificationRule in CodeStarNotifications can be configured in CloudFormation with the resource name AWS::CodeStarNotifications::NotificationRule. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as AWS Chatbot topics or AWS Chatbot clients configured for Slack) where you want to receive them.

Frequently asked questions

What is AWS CodeStar Notifications Notifications Notification Rule?

AWS CodeStar Notifications Notifications Notification Rule is a resource for CodeStar Notifications of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS CodeStar Notifications Notifications Notification Rule?

For Terraform, the EqualsGroup/bulk-email-node, KazuyaMiyagi/terraform-aws-rocket-chat-notifier and wand2016/twitter-counter-api-generator-deploy-pipeline source code examples are useful. See the Terraform Example section for further details.