UNPKG

@cloudcomponents/cdk-pull-request-approval-rule

Version:

CodeCommit pull request approval rules to enforcing your pull request workflow

19 lines (18 loc) 766 B
import { IRepository } from 'aws-cdk-lib/aws-codecommit'; import { OnEventOptions, Rule } from 'aws-cdk-lib/aws-events'; import { Construct } from 'constructs'; export interface ApprovalRuleTemplateRepositoryAssociationProps { /** * The name of the template you want to associate with one or more repositories. */ readonly approvalRuleTemplateName: string; /** * The repository you want to associate with the template. */ readonly repository: IRepository; } export declare class ApprovalRuleTemplateRepositoryAssociation extends Construct { private repository; constructor(scope: Construct, id: string, props: ApprovalRuleTemplateRepositoryAssociationProps); onOverridden(id: string, options: OnEventOptions): Rule; }