codepipeline/examples_pipeline.py [254:283]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            ],
        ),
    ],
)

notification_rule = notifications.CfnNotificationRule(
    stack,
    "CodePipelineNotifications",
    detail_type="FULL",
    event_type_ids=[
        "codepipeline-pipeline-pipeline-execution-failed",
        "codepipeline-pipeline-pipeline-execution-canceled",
        "codepipeline-pipeline-pipeline-execution-succeeded",
    ],
    name="aws-emr-launch-codepipeline-notifications",
    resource=pipeline.pipeline_arn,
    targets=[
        notifications.CfnNotificationRule.TargetProperty(
            target_address=core.Token.as_string(
                core.SecretValue.secrets_manager(
                    secret_id=deployment_secret["secret-id"],
                    json_field=deployment_secret["json-fields"]["slack-chatbot"],
                )
            ),
            target_type="AWSChatbotSlack",
        )
    ],
)

app.synth()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



codepipeline/release_pipeline.py [130:159]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            ],
        ),
    ],
)

notification_rule = notifications.CfnNotificationRule(
    stack,
    "CodePipelineNotifications",
    detail_type="FULL",
    event_type_ids=[
        "codepipeline-pipeline-pipeline-execution-failed",
        "codepipeline-pipeline-pipeline-execution-canceled",
        "codepipeline-pipeline-pipeline-execution-succeeded",
    ],
    name="aws-emr-launch-codepipeline-notifications",
    resource=pipeline.pipeline_arn,
    targets=[
        notifications.CfnNotificationRule.TargetProperty(
            target_address=core.Token.as_string(
                core.SecretValue.secrets_manager(
                    secret_id=deployment_secret["secret-id"],
                    json_field=deployment_secret["json-fields"]["slack-chatbot"],
                )
            ),
            target_type="AWSChatbotSlack",
        )
    ],
)

app.synth()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



