package awsec2alpha

import (
	_init_ "github.com/aws/aws-cdk-go/awsec2alpha/v2/jsii"
	_jsii_ "github.com/aws/jsii-runtime-go/runtime"

	"github.com/aws/aws-cdk-go/awscdk/v2"
	"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
	"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
	"github.com/aws/constructs-go/constructs/v10"
)

// This class provides a foundation for creating and configuring a VPC with advanced features such as IPAM (IP Address Management) and IPv6 support.
//
// For more information, see the {@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Vpc.html AWS CDK Documentation on VPCs}.
//
// Example:
//   stack := awscdk.Newstack()
//   myVpc := awsec2alpha.NewVpcV2(this, jsii.String("Vpc"), &VpcV2Props{
//   	PrimaryAddressBlock: awsec2alpha.IpAddresses_Ipv4(jsii.String("10.1.0.0/16")),
//   	SecondaryAddressBlocks: []iIpAddresses{
//   		awsec2alpha.IpAddresses_AmazonProvidedIpv6(&SecondaryAddressProps{
//   			CidrBlockName: jsii.String("AmazonProvided"),
//   		}),
//   	},
//   })
//
//   eigw := awsec2alpha.NewEgressOnlyInternetGateway(this, jsii.String("EIGW"), &EgressOnlyInternetGatewayProps{
//   	Vpc: myVpc,
//   })
//
//   routeTable := awsec2alpha.NewRouteTable(this, jsii.String("RouteTable"), &RouteTableProps{
//   	Vpc: myVpc,
//   })
//
//   routeTable.AddRoute(jsii.String("EIGW"), jsii.String("::/0"), map[string]iRouteTarget{
//   	"gateway": eigw,
//   })
//
// Experimental.
type VpcV2 interface {
	VpcV2Base
	// AZs for this VPC.
	// Experimental.
	AvailabilityZones() *[]*string
	// Indicates if instances launched in this VPC will have public DNS hostnames.
	// Experimental.
	DnsHostnamesEnabled() *bool
	// Indicates if DNS support is enabled for this VPC.
	// Experimental.
	DnsSupportEnabled() *bool
	// Returns the id of the Egress Only Internet Gateway (if enabled).
	// Experimental.
	EgressOnlyInternetGatewayId() *string
	// The environment this resource belongs to.
	//
	// For resources that are created and managed by the CDK
	// (generally, those created by creating new class instances like Role, Bucket, etc.),
	// this is always the same as the environment of the stack they belong to;
	// however, for imported resources
	// (those obtained from static methods like fromRoleArn, fromBucketName, etc.),
	// that might be different than the stack they were imported into.
	// Experimental.
	Env() *awscdk.ResourceEnvironment
	// If this is set to true, don't error out on trying to select subnets.
	// Experimental.
	IncompleteSubnetDefinition() *bool
	// Experimental.
	SetIncompleteSubnetDefinition(val *bool)
	// To define dependency on internet connectivity.
	// Experimental.
	InternetConnectivityEstablished() constructs.IDependable
	// Returns the id of the Internet Gateway (if enabled).
	// Experimental.
	InternetGatewayId() *string
	// The provider of ipv4 addresses.
	// Experimental.
	IpAddresses() IIpAddresses
	// The primary IPv4 CIDR block associated with the VPC.
	//
	// Needed in order to validate the vpc range of subnet
	// current prop vpcCidrBlock refers to the token value
	// For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-sizing-ipv4}.
	// Experimental.
	Ipv4CidrBlock() *string
	// IPv4 CIDR provisioned using IPAM pool Required to check for overlapping CIDRs after provisioning is complete under IPAM.
	// Experimental.
	Ipv4IpamProvisionedCidrs() *[]*string
	// The IPv6 CIDR blocks for the VPC.
	//
	// See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#aws-resource-ec2-vpc-return-values
	// Experimental.
	Ipv6CidrBlocks() *[]*string
	// Isolated Subnets that are part of this VPC.
	// Experimental.
	IsolatedSubnets() *[]awsec2.ISubnet
	// The tree node.
	// Experimental.
	Node() constructs.Node
	// Identifier of the owner for this VPC.
	// Experimental.
	OwnerAccountId() *string
	// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
	//
	// This value will resolve to one of the following:
	// - a concrete value (e.g. `"my-awesome-bucket"`)
	// - `undefined`, when a name should be generated by CloudFormation
	// - a concrete name generated automatically during synthesis, in
	//   cross-environment scenarios.
	// Experimental.
	PhysicalName() *string
	// Public Subnets that are part of this VPC.
	// Experimental.
	PrivateSubnets() *[]awsec2.ISubnet
	// Public Subnets that are part of this VPC.
	// Experimental.
	PublicSubnets() *[]awsec2.ISubnet
	// Region for this VPC.
	// Experimental.
	Region() *string
	// The AWS CloudFormation resource representing the VPC.
	// Experimental.
	Resource() awsec2.CfnVPC
	// reference to all secondary blocks attached.
	// Experimental.
	SecondaryCidrBlock() *[]IVPCCidrBlock
	// The stack in which this resource is defined.
	// Experimental.
	Stack() awscdk.Stack
	// For validation to define IPv6 subnets, set to true in case of Amazon Provided IPv6 cidr range if true, IPv6 addresses can be attached to the subnets.
	// Default: false.
	//
	// Experimental.
	UseIpv6() *bool
	// Arn of this VPC.
	// Experimental.
	VpcArn() *string
	// CIDR range for this VPC.
	// Experimental.
	VpcCidrBlock() *string
	// Identifier for this VPC.
	// Experimental.
	VpcId() *string
	// VpcName to be used for tagging its components.
	// Experimental.
	VpcName() *string
	// Experimental.
	VpcRef() *awsec2.VPCReference
	// Returns the id of the VPN Gateway (if enabled).
	// Experimental.
	VpnGatewayId() *string
	// Adds a new client VPN endpoint to this VPC.
	// Experimental.
	AddClientVpnEndpoint(id *string, options *awsec2.ClientVpnEndpointOptions) awsec2.ClientVpnEndpoint
	// Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.
	// Default: - in case of no input subnets, no route is created.
	//
	// Experimental.
	AddEgressOnlyInternetGateway(options *EgressOnlyInternetGatewayOptions) EgressOnlyInternetGateway
	// Adds a new flow log to this VPC.
	// Experimental.
	AddFlowLog(id *string, options *awsec2.FlowLogOptions) awsec2.FlowLog
	// Adds a new gateway endpoint to this VPC.
	// Experimental.
	AddGatewayEndpoint(id *string, options *awsec2.GatewayVpcEndpointOptions) awsec2.GatewayVpcEndpoint
	// Adds a new interface endpoint to this VPC.
	// Experimental.
	AddInterfaceEndpoint(id *string, options *awsec2.InterfaceVpcEndpointOptions) awsec2.InterfaceVpcEndpoint
	// Adds a new Internet Gateway to this VPC.
	// Default: - creates a new route for public subnets(with all outbound access) to the Internet Gateway.
	//
	// Experimental.
	AddInternetGateway(options *InternetGatewayOptions) InternetGateway
	// Adds a new NAT Gateway to the given subnet of this VPC of given subnets.
	// Experimental.
	AddNatGateway(options *NatGatewayOptions) NatGateway
	// Adds a new VPN connection to this VPC.
	// Experimental.
	AddVpnConnection(id *string, options *awsec2.VpnConnectionOptions) awsec2.VpnConnection
	// Apply the given removal policy to this resource.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	// Creates peering connection role for acceptor VPC.
	// Experimental.
	CreateAcceptorVpcRole(requestorAccountId *string) awsiam.Role
	// Creates a peering connection.
	// Experimental.
	CreatePeeringConnection(id *string, options *VPCPeeringConnectionOptions) VPCPeeringConnection
	// Adds a VPN Gateway to this VPC.
	// Deprecated: use enableVpnGatewayV2 for compatibility with VPCV2.Route
	EnableVpnGateway(options *awsec2.EnableVpnGatewayOptions)
	// Adds VPNGAtewayV2 to this VPC.
	// Experimental.
	EnableVpnGatewayV2(options *VPNGatewayV2Options) VPNGatewayV2
	// Experimental.
	GeneratePhysicalName() *string
	// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
	//
	// Normally, this token will resolve to `arnAttr`, but if the resource is
	// referenced across environments, `arnComponents` will be used to synthesize
	// a concrete ARN with the resource's physical name. Make sure to reference
	// `this.physicalName` in `arnComponents`.
	// Experimental.
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
	//
	// Normally, this token will resolve to `nameAttr`, but if the resource is
	// referenced across environments, it will be resolved to `this.physicalName`,
	// which will be a concrete name.
	// Experimental.
	GetResourceNameAttribute(nameAttr *string) *string
	// Return the subnets appropriate for the placement strategy.
	// Experimental.
	SelectSubnetObjects(selection *awsec2.SubnetSelection) *[]awsec2.ISubnet
	// Return information on the subnets appropriate for the given selection strategy.
	//
	// Requires that at least one subnet is matched, throws a descriptive
	// error message otherwise.
	// Experimental.
	SelectSubnets(selection *awsec2.SubnetSelection) *awsec2.SelectedSubnets
	// Returns a string representation of this construct.
	// Experimental.
	ToString() *string
}

// The jsii proxy struct for VpcV2
type jsiiProxy_VpcV2 struct {
	jsiiProxy_VpcV2Base
}

func (j *jsiiProxy_VpcV2) AvailabilityZones() *[]*string {
	var returns *[]*string
	_jsii_.Get(
		j,
		"availabilityZones",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) DnsHostnamesEnabled() *bool {
	var returns *bool
	_jsii_.Get(
		j,
		"dnsHostnamesEnabled",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) DnsSupportEnabled() *bool {
	var returns *bool
	_jsii_.Get(
		j,
		"dnsSupportEnabled",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) EgressOnlyInternetGatewayId() *string {
	var returns *string
	_jsii_.Get(
		j,
		"egressOnlyInternetGatewayId",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Env() *awscdk.ResourceEnvironment {
	var returns *awscdk.ResourceEnvironment
	_jsii_.Get(
		j,
		"env",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) IncompleteSubnetDefinition() *bool {
	var returns *bool
	_jsii_.Get(
		j,
		"incompleteSubnetDefinition",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) InternetConnectivityEstablished() constructs.IDependable {
	var returns constructs.IDependable
	_jsii_.Get(
		j,
		"internetConnectivityEstablished",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) InternetGatewayId() *string {
	var returns *string
	_jsii_.Get(
		j,
		"internetGatewayId",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) IpAddresses() IIpAddresses {
	var returns IIpAddresses
	_jsii_.Get(
		j,
		"ipAddresses",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Ipv4CidrBlock() *string {
	var returns *string
	_jsii_.Get(
		j,
		"ipv4CidrBlock",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Ipv4IpamProvisionedCidrs() *[]*string {
	var returns *[]*string
	_jsii_.Get(
		j,
		"ipv4IpamProvisionedCidrs",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Ipv6CidrBlocks() *[]*string {
	var returns *[]*string
	_jsii_.Get(
		j,
		"ipv6CidrBlocks",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) IsolatedSubnets() *[]awsec2.ISubnet {
	var returns *[]awsec2.ISubnet
	_jsii_.Get(
		j,
		"isolatedSubnets",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Node() constructs.Node {
	var returns constructs.Node
	_jsii_.Get(
		j,
		"node",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) OwnerAccountId() *string {
	var returns *string
	_jsii_.Get(
		j,
		"ownerAccountId",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) PhysicalName() *string {
	var returns *string
	_jsii_.Get(
		j,
		"physicalName",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) PrivateSubnets() *[]awsec2.ISubnet {
	var returns *[]awsec2.ISubnet
	_jsii_.Get(
		j,
		"privateSubnets",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) PublicSubnets() *[]awsec2.ISubnet {
	var returns *[]awsec2.ISubnet
	_jsii_.Get(
		j,
		"publicSubnets",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Region() *string {
	var returns *string
	_jsii_.Get(
		j,
		"region",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Resource() awsec2.CfnVPC {
	var returns awsec2.CfnVPC
	_jsii_.Get(
		j,
		"resource",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) SecondaryCidrBlock() *[]IVPCCidrBlock {
	var returns *[]IVPCCidrBlock
	_jsii_.Get(
		j,
		"secondaryCidrBlock",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) Stack() awscdk.Stack {
	var returns awscdk.Stack
	_jsii_.Get(
		j,
		"stack",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) UseIpv6() *bool {
	var returns *bool
	_jsii_.Get(
		j,
		"useIpv6",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) VpcArn() *string {
	var returns *string
	_jsii_.Get(
		j,
		"vpcArn",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) VpcCidrBlock() *string {
	var returns *string
	_jsii_.Get(
		j,
		"vpcCidrBlock",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) VpcId() *string {
	var returns *string
	_jsii_.Get(
		j,
		"vpcId",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) VpcName() *string {
	var returns *string
	_jsii_.Get(
		j,
		"vpcName",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) VpcRef() *awsec2.VPCReference {
	var returns *awsec2.VPCReference
	_jsii_.Get(
		j,
		"vpcRef",
		&returns,
	)
	return returns
}

func (j *jsiiProxy_VpcV2) VpnGatewayId() *string {
	var returns *string
	_jsii_.Get(
		j,
		"vpnGatewayId",
		&returns,
	)
	return returns
}


// Experimental.
func NewVpcV2(scope constructs.Construct, id *string, props *VpcV2Props) VpcV2 {
	_init_.Initialize()

	if err := validateNewVpcV2Parameters(scope, id, props); err != nil {
		panic(err)
	}
	j := jsiiProxy_VpcV2{}

	_jsii_.Create(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		[]interface{}{scope, id, props},
		&j,
	)

	return &j
}

// Experimental.
func NewVpcV2_Override(v VpcV2, scope constructs.Construct, id *string, props *VpcV2Props) {
	_init_.Initialize()

	_jsii_.Create(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		[]interface{}{scope, id, props},
		v,
	)
}

func (j *jsiiProxy_VpcV2)SetIncompleteSubnetDefinition(val *bool) {
	if err := j.validateSetIncompleteSubnetDefinitionParameters(val); err != nil {
		panic(err)
	}
	_jsii_.Set(
		j,
		"incompleteSubnetDefinition",
		val,
	)
}

// Create a VPC from existing attributes.
// Experimental.
func VpcV2_FromVpcV2Attributes(scope constructs.Construct, id *string, attrs *VpcV2Attributes) IVpcV2 {
	_init_.Initialize()

	if err := validateVpcV2_FromVpcV2AttributesParameters(scope, id, attrs); err != nil {
		panic(err)
	}
	var returns IVpcV2

	_jsii_.StaticInvoke(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		"fromVpcV2Attributes",
		[]interface{}{scope, id, attrs},
		&returns,
	)

	return returns
}

// Checks if `x` is a construct.
//
// Use this method instead of `instanceof` to properly detect `Construct`
// instances, even when the construct library is symlinked.
//
// Explanation: in JavaScript, multiple copies of the `constructs` library on
// disk are seen as independent, completely different libraries. As a
// consequence, the class `Construct` in each copy of the `constructs` library
// is seen as a different class, and an instance of one class will not test as
// `instanceof` the other class. `npm install` will not create installations
// like this, but users may manually symlink construct libraries together or
// use a monorepo tool: in those cases, multiple copies of the `constructs`
// library can be accidentally installed, and `instanceof` will behave
// unpredictably. It is safest to avoid using `instanceof`, and using
// this type-testing method instead.
//
// Returns: true if `x` is an object created from a class which extends `Construct`.
// Experimental.
func VpcV2_IsConstruct(x interface{}) *bool {
	_init_.Initialize()

	if err := validateVpcV2_IsConstructParameters(x); err != nil {
		panic(err)
	}
	var returns *bool

	_jsii_.StaticInvoke(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		"isConstruct",
		[]interface{}{x},
		&returns,
	)

	return returns
}

// Returns true if the construct was created by CDK, and false otherwise.
// Experimental.
func VpcV2_IsOwnedResource(construct constructs.IConstruct) *bool {
	_init_.Initialize()

	if err := validateVpcV2_IsOwnedResourceParameters(construct); err != nil {
		panic(err)
	}
	var returns *bool

	_jsii_.StaticInvoke(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		"isOwnedResource",
		[]interface{}{construct},
		&returns,
	)

	return returns
}

// Check whether the given construct is a Resource.
// Experimental.
func VpcV2_IsResource(construct constructs.IConstruct) *bool {
	_init_.Initialize()

	if err := validateVpcV2_IsResourceParameters(construct); err != nil {
		panic(err)
	}
	var returns *bool

	_jsii_.StaticInvoke(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		"isResource",
		[]interface{}{construct},
		&returns,
	)

	return returns
}

func VpcV2_PROPERTY_INJECTION_ID() *string {
	_init_.Initialize()
	var returns *string
	_jsii_.StaticGet(
		"@aws-cdk/aws-ec2-alpha.VpcV2",
		"PROPERTY_INJECTION_ID",
		&returns,
	)
	return returns
}

func (v *jsiiProxy_VpcV2) AddClientVpnEndpoint(id *string, options *awsec2.ClientVpnEndpointOptions) awsec2.ClientVpnEndpoint {
	if err := v.validateAddClientVpnEndpointParameters(id, options); err != nil {
		panic(err)
	}
	var returns awsec2.ClientVpnEndpoint

	_jsii_.Invoke(
		v,
		"addClientVpnEndpoint",
		[]interface{}{id, options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddEgressOnlyInternetGateway(options *EgressOnlyInternetGatewayOptions) EgressOnlyInternetGateway {
	if err := v.validateAddEgressOnlyInternetGatewayParameters(options); err != nil {
		panic(err)
	}
	var returns EgressOnlyInternetGateway

	_jsii_.Invoke(
		v,
		"addEgressOnlyInternetGateway",
		[]interface{}{options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddFlowLog(id *string, options *awsec2.FlowLogOptions) awsec2.FlowLog {
	if err := v.validateAddFlowLogParameters(id, options); err != nil {
		panic(err)
	}
	var returns awsec2.FlowLog

	_jsii_.Invoke(
		v,
		"addFlowLog",
		[]interface{}{id, options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddGatewayEndpoint(id *string, options *awsec2.GatewayVpcEndpointOptions) awsec2.GatewayVpcEndpoint {
	if err := v.validateAddGatewayEndpointParameters(id, options); err != nil {
		panic(err)
	}
	var returns awsec2.GatewayVpcEndpoint

	_jsii_.Invoke(
		v,
		"addGatewayEndpoint",
		[]interface{}{id, options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddInterfaceEndpoint(id *string, options *awsec2.InterfaceVpcEndpointOptions) awsec2.InterfaceVpcEndpoint {
	if err := v.validateAddInterfaceEndpointParameters(id, options); err != nil {
		panic(err)
	}
	var returns awsec2.InterfaceVpcEndpoint

	_jsii_.Invoke(
		v,
		"addInterfaceEndpoint",
		[]interface{}{id, options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddInternetGateway(options *InternetGatewayOptions) InternetGateway {
	if err := v.validateAddInternetGatewayParameters(options); err != nil {
		panic(err)
	}
	var returns InternetGateway

	_jsii_.Invoke(
		v,
		"addInternetGateway",
		[]interface{}{options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddNatGateway(options *NatGatewayOptions) NatGateway {
	if err := v.validateAddNatGatewayParameters(options); err != nil {
		panic(err)
	}
	var returns NatGateway

	_jsii_.Invoke(
		v,
		"addNatGateway",
		[]interface{}{options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) AddVpnConnection(id *string, options *awsec2.VpnConnectionOptions) awsec2.VpnConnection {
	if err := v.validateAddVpnConnectionParameters(id, options); err != nil {
		panic(err)
	}
	var returns awsec2.VpnConnection

	_jsii_.Invoke(
		v,
		"addVpnConnection",
		[]interface{}{id, options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) ApplyRemovalPolicy(policy awscdk.RemovalPolicy) {
	if err := v.validateApplyRemovalPolicyParameters(policy); err != nil {
		panic(err)
	}
	_jsii_.InvokeVoid(
		v,
		"applyRemovalPolicy",
		[]interface{}{policy},
	)
}

func (v *jsiiProxy_VpcV2) CreateAcceptorVpcRole(requestorAccountId *string) awsiam.Role {
	if err := v.validateCreateAcceptorVpcRoleParameters(requestorAccountId); err != nil {
		panic(err)
	}
	var returns awsiam.Role

	_jsii_.Invoke(
		v,
		"createAcceptorVpcRole",
		[]interface{}{requestorAccountId},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) CreatePeeringConnection(id *string, options *VPCPeeringConnectionOptions) VPCPeeringConnection {
	if err := v.validateCreatePeeringConnectionParameters(id, options); err != nil {
		panic(err)
	}
	var returns VPCPeeringConnection

	_jsii_.Invoke(
		v,
		"createPeeringConnection",
		[]interface{}{id, options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) EnableVpnGateway(options *awsec2.EnableVpnGatewayOptions) {
	if err := v.validateEnableVpnGatewayParameters(options); err != nil {
		panic(err)
	}
	_jsii_.InvokeVoid(
		v,
		"enableVpnGateway",
		[]interface{}{options},
	)
}

func (v *jsiiProxy_VpcV2) EnableVpnGatewayV2(options *VPNGatewayV2Options) VPNGatewayV2 {
	if err := v.validateEnableVpnGatewayV2Parameters(options); err != nil {
		panic(err)
	}
	var returns VPNGatewayV2

	_jsii_.Invoke(
		v,
		"enableVpnGatewayV2",
		[]interface{}{options},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) GeneratePhysicalName() *string {
	var returns *string

	_jsii_.Invoke(
		v,
		"generatePhysicalName",
		nil, // no parameters
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string {
	if err := v.validateGetResourceArnAttributeParameters(arnAttr, arnComponents); err != nil {
		panic(err)
	}
	var returns *string

	_jsii_.Invoke(
		v,
		"getResourceArnAttribute",
		[]interface{}{arnAttr, arnComponents},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) GetResourceNameAttribute(nameAttr *string) *string {
	if err := v.validateGetResourceNameAttributeParameters(nameAttr); err != nil {
		panic(err)
	}
	var returns *string

	_jsii_.Invoke(
		v,
		"getResourceNameAttribute",
		[]interface{}{nameAttr},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) SelectSubnetObjects(selection *awsec2.SubnetSelection) *[]awsec2.ISubnet {
	if err := v.validateSelectSubnetObjectsParameters(selection); err != nil {
		panic(err)
	}
	var returns *[]awsec2.ISubnet

	_jsii_.Invoke(
		v,
		"selectSubnetObjects",
		[]interface{}{selection},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) SelectSubnets(selection *awsec2.SubnetSelection) *awsec2.SelectedSubnets {
	if err := v.validateSelectSubnetsParameters(selection); err != nil {
		panic(err)
	}
	var returns *awsec2.SelectedSubnets

	_jsii_.Invoke(
		v,
		"selectSubnets",
		[]interface{}{selection},
		&returns,
	)

	return returns
}

func (v *jsiiProxy_VpcV2) ToString() *string {
	var returns *string

	_jsii_.Invoke(
		v,
		"toString",
		nil, // no parameters
		&returns,
	)

	return returns
}

