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
-
arnoptional computed - string -
detail_typerequired - string -
event_type_idsrequired - set of string -
idoptional computed - string -
namerequired - string -
resourcerequired - string -
statusoptional - string -
tagsoptional - map from string to string -
targetset 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
-
EventTypeIdoptional - String -
CreatedByoptional - String -
TargetAddressoptional - String -
EventTypeIdsrequired - List -
Statusoptional - String -
DetailTyperequired - String -
Resourcerequired - String -
Targetsrequired - List of Target -
Tagsoptional - Json -
Namerequired - 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.