We recommend new projects start with resources from the AWS provider.
aws-native.ec2.VpcPeeringConnection
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::VPCPeeringConnection
Create VpcPeeringConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcPeeringConnection(name: string, args: VpcPeeringConnectionArgs, opts?: CustomResourceOptions);
@overload
def VpcPeeringConnection(resource_name: str,
args: VpcPeeringConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcPeeringConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
peer_vpc_id: Optional[str] = None,
vpc_id: Optional[str] = None,
peer_owner_id: Optional[str] = None,
peer_region: Optional[str] = None,
peer_role_arn: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewVpcPeeringConnection(ctx *Context, name string, args VpcPeeringConnectionArgs, opts ...ResourceOption) (*VpcPeeringConnection, error)
public VpcPeeringConnection(string name, VpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
public VpcPeeringConnection(String name, VpcPeeringConnectionArgs args)
public VpcPeeringConnection(String name, VpcPeeringConnectionArgs args, CustomResourceOptions options)
type: aws-native:ec2:VpcPeeringConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcPeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcPeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcPeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcPeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcPeeringConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpcPeeringConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VpcPeeringConnection resource accepts the following input properties:
- Peer
Vpc stringId - The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
- Vpc
Id string - The ID of the VPC.
- Peer
Owner stringId - The AWS account ID of the owner of the accepter VPC.
- Peer
Region 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.
- Peer
Role stringArn - The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
- List<Pulumi.
Aws Native. Inputs. Tag> - Any tags assigned to the resource.
- Peer
Vpc stringId - The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
- Vpc
Id string - The ID of the VPC.
- Peer
Owner stringId - The AWS account ID of the owner of the accepter VPC.
- Peer
Region 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.
- Peer
Role stringArn - The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
- Tag
Args - Any tags assigned to the resource.
- peer
Vpc StringId - The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
- vpc
Id String - The ID of the VPC.
- peer
Owner StringId - The AWS account ID of the owner of the accepter VPC.
- peer
Region 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.
- peer
Role StringArn - The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
- List<Tag>
- Any tags assigned to the resource.
- peer
Vpc stringId - The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
- vpc
Id string - The ID of the VPC.
- peer
Owner stringId - The AWS account ID of the owner of the accepter VPC.
- peer
Region 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.
- peer
Role stringArn - The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
- Tag[]
- Any tags assigned to the resource.
- peer_
vpc_ strid - The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
- vpc_
id str - The ID of the VPC.
- peer_
owner_ strid - The AWS account ID of the owner of the accepter VPC.
- peer_
region str - 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.
- peer_
role_ strarn - The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
- Sequence[Tag
Args] - Any tags assigned to the resource.
- peer
Vpc StringId - The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.
- vpc
Id String - The ID of the VPC.
- peer
Owner StringId - The AWS account ID of the owner of the accepter VPC.
- peer
Region 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.
- peer
Role StringArn - The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
- List<Property Map>
- Any tags assigned to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcPeeringConnection resource produces the following output properties:
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.