Skip to content
v2.277.0

BindToCodePipelineOptions Struct ​

The extra options passed to the IProject.bindToCodePipeline method.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const bindToCodePipelineOptions: codebuild.BindToCodePipelineOptions = {
  artifactBucket: bucket,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
from aws_cdk import aws_s3 as s3

# bucket: s3.Bucket

bind_to_code_pipeline_options = codebuild.BindToCodePipelineOptions(
    artifact_bucket=bucket
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
import software.amazon.awscdk.services.s3.*;

Bucket bucket;

BindToCodePipelineOptions bindToCodePipelineOptions = BindToCodePipelineOptions.builder()
        .artifactBucket(bucket)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
using Amazon.CDK.AWS.S3;

Bucket bucket;

var bindToCodePipelineOptions = new BindToCodePipelineOptions {
    ArtifactBucket = bucket
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var bucket Bucket

bindToCodePipelineOptions := &BindToCodePipelineOptions{
	ArtifactBucket: bucket,
}

Properties ​

artifactBucketIBucketartifact_bucketIBucketartifactBucketIBucketArtifactBucketIBucketArtifactBucketIBucket required #
The artifact bucket that will be used by the action that invokes this project.