UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

88 lines (87 loc) 3.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource Type definition for AWS::EC2::VPCPeeringConnection */ export declare class VpcPeeringConnection extends pulumi.CustomResource { /** * Get an existing VpcPeeringConnection resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): VpcPeeringConnection; /** * Returns true if the given object is an instance of VpcPeeringConnection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VpcPeeringConnection; /** * The ID of the peering connection. */ readonly awsId: pulumi.Output<string>; /** * The AWS account ID of the owner of the accepter VPC. */ readonly peerOwnerId: pulumi.Output<string | undefined>; /** * 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. */ readonly peerRegion: pulumi.Output<string | undefined>; /** * The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account. */ readonly peerRoleArn: pulumi.Output<string | undefined>; /** * The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. */ readonly peerVpcId: pulumi.Output<string>; /** * Any tags assigned to the resource. */ readonly tags: pulumi.Output<outputs.Tag[] | undefined>; /** * The ID of the VPC. */ readonly vpcId: pulumi.Output<string>; /** * Create a VpcPeeringConnection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: VpcPeeringConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a VpcPeeringConnection resource. */ export interface VpcPeeringConnectionArgs { /** * The AWS account ID of the owner of the accepter VPC. */ peerOwnerId?: pulumi.Input<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. */ peerRegion?: pulumi.Input<string>; /** * The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account. */ peerRoleArn?: pulumi.Input<string>; /** * The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. */ peerVpcId: pulumi.Input<string>; /** * Any tags assigned to the resource. */ tags?: pulumi.Input<pulumi.Input<inputs.TagArgs>[]>; /** * The ID of the VPC. */ vpcId: pulumi.Input<string>; }