# CrossRegionSupport

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.

- Source: [`aws-codepipeline/lib/pipeline.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-codepipeline/lib/pipeline.ts#L1469)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `replicationBucket`: [IBucket](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) (required) — The replication Bucket used by CodePipeline to operate in this region.

  Belongs to `stack`.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) (required) — The Stack that has been created to house the replication Bucket required for this region.
