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
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",
resource "aws_codestarnotifications_notification_rule" "codepipeline" {
detail_type = "BASIC"
event_type_ids = [
"codepipeline-pipeline-action-execution-succeeded",
"codepipeline-pipeline-action-execution-failed",
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
-
arn
optional computed - string -
detail_type
required - string -
event_type_ids
required - set of string -
id
optional computed - string -
name
required - string -
resource
required - string -
status
optional - string -
tags
optional - map from string to string -
target
set block
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.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
EventTypeId
optional - String -
CreatedBy
optional - String -
TargetAddress
optional - String -
EventTypeIds
required - List -
Status
optional - String -
DetailType
required - String -
Resource
required - String -
Targets
required - List of Target -
Tags
optional - Json -
Name
required - String
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.