@gammarers/aws-codepipeline-execution-state-change-notification-stack
Version:
This AWS CDK Construct Stack receives all state changes of CodePipeline and sends a message to the specified notification destination when the CodePipeline is tagged with a specified tag. Therefore, you can send messages simply by adding tags without need
29 lines (28 loc) • 1.38 kB
TypeScript
import { ResourceAutoNaming, ResourceDefaultNaming, ResourceNamingType } from '@gammarers/aws-resource-naming';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export { ResourceAutoNaming, ResourceDefaultNaming, ResourceNamingType as CodePipelineExecutionStateChangeNotificationStackResourceNamingType };
export interface TargetResourceProperty {
readonly tagKey: string;
readonly tagValues: string[];
}
export interface NotificationsProperty {
readonly emails?: string[];
}
export interface CodePipelineExecutionStateChangeNotificationStackProps extends StackProps {
readonly targetResource: TargetResourceProperty;
readonly enabled?: boolean;
readonly notifications: NotificationsProperty;
readonly resourceNamingOption?: ResourceNamingOption;
}
export interface CustomNaming {
readonly type: ResourceNamingType.CUSTOM;
readonly stateMachineName: string;
readonly notificationTopicName: string;
readonly notificationTopicDisplayName: string;
readonly pipelineEventDetectionRuleName: string;
}
export type ResourceNamingOption = ResourceDefaultNaming | ResourceAutoNaming | CustomNaming;
export declare class CodePipelineExecutionStateChangeNotificationStack extends Stack {
constructor(scope: Construct, id: string, props: CodePipelineExecutionStateChangeNotificationStackProps);
}