Skip to content
v2.278.0

CrossRegionSupport Struct ​

An interface representing resources generated in order to support the cross-region capabilities of CodePipeline.

You get instances of this interface from the Pipeline#crossRegionSupport property.

Example ​

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

declare const bucket: s3.Bucket;
declare const stack: cdk.Stack;
const crossRegionSupport: codepipeline.CrossRegionSupport = {
  replicationBucket: bucket,
  stack: stack,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_codepipeline as codepipeline
from aws_cdk import aws_s3 as s3

# bucket: s3.Bucket
# stack: cdk.Stack

cross_region_support = codepipeline.CrossRegionSupport(
    replication_bucket=bucket,
    stack=stack
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.codepipeline.*;
import software.amazon.awscdk.services.s3.*;

Bucket bucket;
Stack stack;

CrossRegionSupport crossRegionSupport = CrossRegionSupport.builder()
        .replicationBucket(bucket)
        .stack(stack)
        .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;
using Amazon.CDK.AWS.CodePipeline;
using Amazon.CDK.AWS.S3;

Bucket bucket;
Stack stack;

var crossRegionSupport = new CrossRegionSupport {
    ReplicationBucket = bucket,
    Stack = stack
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var bucket Bucket
var stack Stack

crossRegionSupport := &CrossRegionSupport{
	ReplicationBucket: bucket,
	Stack: stack,
}

Properties ​

replicationBucketIBucketreplication_bucketIBucketreplicationBucketIBucketReplicationBucketIBucketReplicationBucketIBucket required #
The replication Bucket used by CodePipeline to operate in this region.

Belongs to stack.

stackStackstackStackstackStackStackStackStackStack required #
The Stack that has been created to house the replication Bucket required for this region.