Negligible Participation Metric

    @cloudcomponents/cdk-codepipeline-check-parameter-action
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.0 • Public • Published

    cloudcomponents Logo

    @cloudcomponents/cdk-codepipeline-check-parameter-action

    Build Status cdkdx typescript python

    Cdk component that checks if system parameters are set correctly

    Install

    TypeScript/JavaScript:

    npm i @cloudcomponents/cdk-codepipeline-check-parameter-action

    Python:

    pip install cloudcomponents.cdk-codepipeline-check-parameter-action

    How to use

    import { CodePipelineCheckParameterAction } from '@cloudcomponents/cdk-codepipeline-check-parameter-action';
    import { Stack, StackProps } from 'aws-cdk-lib';
    import { Repository } from 'aws-cdk-lib/aws-codecommit';
    import { Pipeline, Artifact } from 'aws-cdk-lib/aws-codepipeline';
    import { CodeCommitSourceAction } from 'aws-cdk-lib/aws-codepipeline-actions';
    import { Construct } from 'constructs';
    
    export class CodePipelineCheckParameterActionStack extends Stack {
      constructor(scope: Construct, id: string, props?: StackProps) {
        super(scope, id, props);
    
        const repository = new Repository(this, 'Repository', {
          repositoryName: 'MyRepositoryName',
        });
    
        const sourceArtifact = new Artifact();
    
        const sourceAction = new CodeCommitSourceAction({
          actionName: 'CodeCommit',
          repository,
          output: sourceArtifact,
          branch: 'master',
        });
    
        const checkAction = new CodePipelineCheckParameterAction({
          actionName: 'Check',
          parameterName: '/test',
          regExp: /^The.*Spain$/,
          logParameter: true,
        });
    
        new Pipeline(this, 'MyPipeline', {
          pipelineName: 'MyPipeline',
          stages: [
            {
              stageName: 'Source',
              actions: [sourceAction],
            },
            {
              stageName: 'Check',
              actions: [checkAction],
            },
          ],
        });
      }
    }

    API Reference

    See API.md.

    Example

    See more complete examples.

    License

    MIT

    Install

    npm i @cloudcomponents/cdk-codepipeline-check-parameter-action

    DownloadsWeekly Downloads

    1

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    984 kB

    Total Files

    18

    Last publish

    Collaborators

    • hupe1980