# CfnVPCPeeringConnectionProps

Properties for defining a `CfnVPCPeeringConnection`.

Extends: CfnVPCPeeringConnectionProps
Used as props by: CfnVPCPeeringConnection

- Source: Generated code
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPCPeeringConnectionProps: ec2.CfnVPCPeeringConnectionProps = {
  peerVpcId: 'peerVpcId',
  vpcId: 'vpcId',

  // the properties below are optional
  assumeRoleRegion: 'assumeRoleRegion',
  peerOwnerId: 'peerOwnerId',
  peerRegion: 'peerRegion',
  peerRoleArn: 'peerRoleArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `assumeRoleRegion`: string — The Region code to use when calling Security Token Service (STS) to assume the PeerRoleArn, if provided.

  You can update this property.

- `peerOwnerId`: string — The AWS account ID of the owner of the accepter VPC.

  Default: Your AWS account ID

- `peerRegion`: string — The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.

  Default: The Region in which you make the request.

- `peerRoleArn`: string — The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.

  This is required when you are peering a VPC in a different AWS account.

- `peerVpcId`: string | [IVPCRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCRef.html) (required) — The ID of the VPC with which you are creating the VPC peering connection.

  You must specify this parameter in the request.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Any tags assigned to the resource.

- `vpcId`: string | [IVPCRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCRef.html) (required) — The ID of the VPC.
