func NewVpnGatewayConnection(ctx *pulumi.Context,
	name string, args *VpnGatewayConnectionArgs, opts ...pulumi.ResourceOption) (*VpnGatewayConnection, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.RemoteVpnSiteId == nil {
		return nil, errors.New("invalid value for required argument 'RemoteVpnSiteId'")
	}
	if args.VpnGatewayId == nil {
		return nil, errors.New("invalid value for required argument 'VpnGatewayId'")
	}
	if args.VpnLinks == nil {
		return nil, errors.New("invalid value for required argument 'VpnLinks'")
	}
	var resource VpnGatewayConnection
	err := ctx.RegisterResource("azure:network/vpnGatewayConnection:VpnGatewayConnection", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewVpnGatewayConnection registers a new resource with the given unique name, arguments, and options.
NewVpnGatewayConnection registers a new resource with the given unique name, arguments, and options.
// NewVpnGatewayConnection registers a new resource with the given unique name arguments and options .
func NewVpnGatewayConnection(ctx *pulumi.Context,
	name string, args *VpnGatewayConnectionArgs, opts ...pulumi.ResourceOption) (*VpnGatewayConnection, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.RemoteVpnSiteId == nil {
		return nil, errors.New("invalid value for required argument 'RemoteVpnSiteId'")
	}
	if args.VpnGatewayId == nil {
		return nil, errors.New("invalid value for required argument 'VpnGatewayId'")
	}
	if args.VpnLinks == nil {
		return nil, errors.New("invalid value for required argument 'VpnLinks'")
	}
	var resource VpnGatewayConnection
	err := ctx.RegisterResource("azure:network/vpnGatewayConnection:VpnGatewayConnection", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewVpnGatewayConnection ( ctx * pulumi . Context , name string , args * VpnGatewayConnectionArgs , opts ... pulumi . ResourceOption ) ( * VpnGatewayConnection , error ) { if args == nil { return nil , errors . New ( " " ) } if args . RemoteVpnSiteId == nil { return nil , errors . New ( " " ) } if args . VpnGatewayId == nil { return nil , errors . New ( " " ) } if args . VpnLinks == nil { return nil , errors . New ( " " ) } var resource VpnGatewayConnection err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewVpnGatewayConnection registers a new resource with the given unique name, arguments, and options.
NewVpnGatewayConnection registers a new resource with the given unique name arguments and options .