How to use the @aws-cdk/aws-codepipeline.ActionCategory function in @aws-cdk/aws-codepipeline

To help you get started, we’ve selected a few @aws-cdk/aws-codepipeline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / ecs / deploy-action.ts View on Github external
constructor(props: EcsDeployActionProps) {
    super({
      ...props,
      category: codepipeline.ActionCategory.DEPLOY,
      provider: 'ECS',
      artifactBounds: deployArtifactBounds(),
      inputs: [determineInputArtifact(props)],
      resource: props.service
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / github / source-action.ts View on Github external
constructor(props: GitHubSourceActionProps) {
    super({
      ...props,
      category: codepipeline.ActionCategory.SOURCE,
      owner: 'ThirdParty',
      provider: 'GitHub',
      artifactBounds: sourceArtifactBounds(),
      outputs: [props.output],
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / manual-approval-action.ts View on Github external
constructor(props: ManualApprovalActionProps) {
    super({
      ...props,
      category: codepipeline.ActionCategory.APPROVAL,
      provider: 'Manual',
      artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 0, maxOutputs: 0 },
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / alexa-ask / deploy-action.ts View on Github external
constructor(props: AlexaSkillDeployActionProps) {
    super({
      ...props,
      category: codepipeline.ActionCategory.DEPLOY,
      owner: 'ThirdParty',
      provider: 'AlexaSkillsKit',
      artifactBounds: {
        minInputs: 1,
        maxInputs: 2,
        minOutputs: 0,
        maxOutputs: 0,
      },
      inputs: getInputs(props),
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / codedeploy / server-deploy-action.ts View on Github external
constructor(props: CodeDeployServerDeployActionProps) {
    super({
      ...props,
      resource: props.deploymentGroup,
      category: codepipeline.ActionCategory.DEPLOY,
      provider: 'CodeDeploy',
      artifactBounds: deployArtifactBounds(),
      inputs: [props.input],
    });

    this.deploymentGroup = props.deploymentGroup;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / codedeploy / ecs-deploy-action.ts View on Github external
inputs.push(determineAppSpecArtifact(props));

    if (props.containerImageInputs) {
      if (props.containerImageInputs.length > 4) {
        throw new Error(`Action cannot have more than 4 container image inputs, got: ${props.containerImageInputs.length}`);
      }

      for (const imageInput of props.containerImageInputs) {
        inputs.push(imageInput.input);
      }
    }

    super({
      ...props,
      resource: props.deploymentGroup,
      category: codepipeline.ActionCategory.DEPLOY,
      provider: 'CodeDeployToECS',
      artifactBounds: { minInputs: 1, maxInputs: 5, minOutputs: 0, maxOutputs: 0 },
      inputs,
    });

    this.actionProps = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / lambda / invoke-action.ts View on Github external
constructor(props: LambdaInvokeActionProps) {
    super({
      ...props,
      resource: props.lambda,
      category: codepipeline.ActionCategory.INVOKE,
      provider: 'Lambda',
      artifactBounds: {
        minInputs: 0,
        maxInputs: 5,
        minOutputs: 0,
        maxOutputs: 5,
      },
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / jenkins / jenkins-action.ts View on Github external
constructor(props: JenkinsActionProps) {
    super({
      ...props,
      category: props.type === JenkinsActionType.BUILD
        ? codepipeline.ActionCategory.BUILD
        : codepipeline.ActionCategory.TEST,
      provider: props.jenkinsProvider.providerName,
      owner: 'Custom',
      artifactBounds: jenkinsArtifactsBounds,
      version: props.jenkinsProvider.version,
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / ecr / source-action.ts View on Github external
constructor(props: EcrSourceActionProps) {
    super({
      ...props,
      resource: props.repository,
      category: codepipeline.ActionCategory.SOURCE,
      provider: 'ECR',
      artifactBounds: sourceArtifactBounds(),
      outputs: [props.output],
    });

    this.props = props;
  }
github aws / aws-cdk / packages / @aws-cdk / aws-codepipeline-actions / lib / s3 / deploy-action.ts View on Github external
constructor(props: S3DeployActionProps) {
    super({
      ...props,
      resource: props.bucket,
      category: codepipeline.ActionCategory.DEPLOY,
      provider: 'S3',
      artifactBounds: deployArtifactBounds(),
      inputs: [props.input],
    });

    this.props = props;
  }